r/Ubuntu • u/worldgnat • 8d ago
Occasional Duplicate Keystrokes
I'll be typing along and suddenly I get a duplicate keystroke. This only happens on Ubuntu (I'm dual-booting Windows.) I've tried enabling "Bounce Keys" in the Accessibility settings, which seems to help a bit. However, sometimes the phantom keystroke comes after I've already typed a few letters. (e.g. "aftaer" rather than "aafter") That doesn't get caught by the debounce settings.
What could even be doing this? I don't understand Ubuntu's input architecture well enough to know what the culprit could be. Can anyone shed some light on this? Do you have any ideas on how to fix it? I'm running 26.04.1.
5
u/GiggleSamurai 7d ago
To see which layer adds it, install libinput-tools, run "sudo libinput debug-events --show-keycodes" and type until it happens: if the extra letter shows up there as a second KEY_ press, it's coming from the keyboard or its connection, and if it doesn't, it's being added further up (key repeat, IBus or the app).
3
u/Monoyo- 8d ago
does it happen with an external keyboard too, or only the built-in one? if you can reproduce it from a live usb, that might help tell whether it's tied to the current install or follows the hardware.
2
u/Smugness1917 8d ago
Is it a wireless keyboard?
1
u/illegal_appendix 8d ago
Does it happen in every app or mostly in one, like the browser? If the terminal and the text editor are fine and only Chrome or Discord does it, that points more at the app than the keyboard.