Random Stuck Keys and trackpad mouse disappears on Fedora Laptops

There was a previous similar thread under

We’re seeing the same issue on two different laptops, and across a range of Fedora versions from 30 right upto 41.

  • Lenovo T14s
  • Dell Latitiude 7285

Main issue is a random key will appear to be stuck and fill up the screen with repeat presses. It doesn’t appear to be a physical issue as it occurs with the local keyboard or when using a remote Logitech keyboard via a Unified USB dongle.
This problem does appear to occur a lot more with the physical keyboard on the DELL laptop.

We’ve tried switching between Wayland and Xorg and the problem is still present, plus both of the machines use Gnome as their desktop.

Second, and possibly related, issue is sometimes the trackpad doesn’t work as a mouse pointer for a period of time, but mouse clicks still work. It hasn’t been disabled via a hot key or anywhere in gnome. ‘xev’ doesn’t show any mouse events when this occurs. Again this occurs a lot more with the Dell than the Thinkpad, but it has occured on both machines.

There doesn’t appear to be anything useful in the system logs - so I’d appreciate any guidance on how to troubleshoot.

On the Dell laptop we sometime see the following system error log. We’ve tried using the debounce accessibility option under Accessibility to mitigate the issue, but it slows down typing speed too much.

gnome-shell[1857]: Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!

Nudge @alciregi - I’d like to know if you’re still seeing the issue

Added f39, f40, f41, gnome, keyboard, wayland

I eventually solved the issue in this way:

:smiley:

My issues are definately not physical

Maybe your issue is different.
I believed the same thing: it can’t be a physical issue. But even if you attach an external keyboard, the local one is still working, so if there are physical issues (electrical contacts, stuck keys) they can happens as well.
What you can try is: live boot an iso, also another distribution, try what happens in a vtty.
But yeah, your issue can be different. Also, in my case it ended up that log messages looked unrelated to the issue.