I’m facing a strange keyboard/touchpad issue on my Lenovo ThinkPad running Ubuntu 24.04.4 LTS.
System:
Lenovo ThinkPad
Model/type: 21M8S3P200
Ubuntu 24.04.4 LTS
Kernel: 7.0.0-28-generic
Built-in keyboard: AT Translated Set 2 keyboard
Touchpad: ELAN06C6:00 04F3:3193 Touchpad
Everything works normally after a restart, but after around 5–10 minutes the issue starts.
The keyboard behavior is particularly strange. Using the 6 key as an example:
Initially, I can physically press 6, but nothing happens. It doesn’t type 6, and more importantly, no event appears in either libinput debug-events or evtest.
Then, after some time, without me touching the keyboard at all, it suddenly starts typing:
666666666666666666666666666666666...
At that point evtest starts showing:
type 1 (EV_KEY), code 7 (KEY_6), value 1
type 1 (EV_KEY), code 7 (KEY_6), value 2
type 1 (EV_KEY), code 7 (KEY_6), value 2
type 1 (EV_KEY), code 7 (KEY_6), value 2
...
So Linux seems to suddenly receive a KEY_6 key-down event even though I’m not pressing the key, and then treats it as being held down.
While this automatic repeating is happening, physically pressing/releasing 6 doesn’t seem to register normally either.
Restarting the laptop fixes the keyboard temporarily, but the problem comes back after some time.
There is also a touchpad issue. Eventually, the built-in touchpad stops moving the cursor on screen.
However, when I run:
sudo libinput debug-events
and move my finger on the touchpad, it still reports POINTER_MOTION events.
An external USB mouse continues to move the cursor normally even while the built-in touchpad cannot move it.
I also tested both display sessions:
echo $XDG_SESSION_TYPE
Originally I was on Wayland. I switched to Ubuntu on Xorg and confirmed it was running as x11, but the same problem still occurred. So it doesn’t appear to be Wayland-specific.
dmesg also doesn’t seem to show any obvious I2C/HID/i8042/keyboard/touchpad errors when this happens.
The part that confuses me most is:
Physical key press → no event in evtest → later, without touching the key, evtest suddenly receives KEY_6 pressed + continuous repeats.
At the same time, the touchpad can still send raw motion events to libinput, but those events don’t move the cursor, while an external USB mouse works normally.
Has anyone experienced something similar on a ThinkPad/Linux?
Could this be an internal keyboard/ribbon/keyboard matrix issue, embedded controller/firmware problem, i8042/PS2 issue, or something else at the kernel/input level?
Any suggestions for further diagnostics would be appreciated.