Comment 167 for bug 124406

Revision history for this message
Doughy (doughywilson) wrote : Re: Keyboard keys get stuck and repeat (Feisty, Gutsy)

I had a similar issue. When I would type things, sometimes the keys would get stuck so that certain letters were repeated: like thiiiiiiiiiiiiiiiiis. The issue would not go away until I reboot.

I believe I have found a workaround for this issue. When it started happening earlier today, I ran the command "dmesg" to see if anything suspicious was going on. I found multiple lines that looked like this:

[ 6632.422317] usb 1-4: reset low speed USB device using ohci_hcd and address 3
[ 6658.325791] usb 1-4: reset low speed USB device using ohci_hcd and address 3
[ 6692.222563] usb 1-4: reset low speed USB device using ohci_hcd and address 3
[ 6707.261239] usb 1-4: reset low speed USB device using ohci_hcd and address 3
[ 6712.747699] usb 1-4: reset low speed USB device using ohci_hcd and address 3
[ 6718.085649] usb 1-4: reset low speed USB device using ohci_hcd and address 3
[ 6724.837559] usb 1-4: reset low speed USB device using ohci_hcd and address 3
[ 6736.435365] usb 1-4: reset low speed USB device using ohci_hcd and address 3
[ 6762.038942] usb 1-4: reset low speed USB device using ohci_hcd and address 3
[ 6765.228902] usb 1-4: reset low speed USB device using ohci_hcd and address 3
[ 6829.364829] usb 1-4: reset low speed USB device using ohci_hcd and address 3
[ 6850.711037] usb 1-4: reset low speed USB device using ohci_hcd and address 3
[ 6887.346695] usb 1-4: reset low speed USB device using ohci_hcd and address 3
[ 6898.207438] usb 1-4: reset low speed USB device using ohci_hcd and address 3

I noticed that the USB port in question was my MOUSE port, not the keyboard. I unplugged the mouse and put it into a different USB port (on a different controller as well, sometimes multiple ports can go out at once if the controller is bad).

The issue is now fixed for me. It's like the mouse being constantly reset was causing a lag in the system, and if you happened to be typing while the lag occurred, a queue would fill up with your last keystroke. The queue would then "dump" everything after the lag.

It's possible that USB ports being used by other devices, not just the mouse, may be causing the resets to occur. Check your dmesg and see if anything is repeatedly being reset.