This is one of the wackiest and weirdest problems I have ever encountered. My keyboard was working absolutely fine untill yesterday on Ubuntu 13.04. However, when I boot to Ubuntu today, I suddenly find that all the keys work, but I have to press and keep on holding them for about a second for them to work.
This behavior is true for all the keys except for Num Lock, Caps Lock and Scroll Lock keys, the indicator for them on my keyboard lights up as soon as I press those keys.
The keyboard works fine at the login screen where I put my password.
The keyboard also works normally if I use the Guest session instead of my normal user account.
I have not done any key-remappings and using the standard English (US) keyboard layout.
I have fiddled around with the settings for Keyboard in System Settings, but to no avail.
I have Windows 7 as dual-boot and the keyboard works perfectly well on it.
Why am I facing such a behavior and how to normalize this?
PS: Using Logitech Classic Keyboard K100 (USB Model).
Because probably you put on the Slow Keys option from System Settings → Universal Access → Typing. Turn it off:
I had a similar problem. I stumbled on the answer while trying the solution here. Somehow the screen reader was turned on and was causing erratic behaviour. Check it under System Settings → Universal Access → Seeing. Make sure Screen Reader is set to OFF. Screen Reader OFF
Ubuntu has apparently mirrored the "slow keys" functionality in Windows, and by default set this up so it's enabled by holding down Shift key for too long automatically turns on this setting!
The appearance of this setting in recent years has been driving many people nuts, and the habit of holding down Shift while thinking of what to type means that it's easy to turn on this setting by accident.
The accepted answer does not work anymore in latest version of Ubuntu, there is no "Slow Keys" option anymore in
gnome-control-center
.The only way I've found to reliably disable this is via command line:
I can not post a proper answer with images and all cause I am on a windows only public computer right now but, try going to the keyboard settings and check to see if there is a key sensitivity setting, then maybe you can adjust it there...also try unplugging keyboard and then plugging it back in. Maybe this will reset it... Just suggestions!
Hope it helps... Good Luck!
This could happen when there is a daemon program catching keystrokes (like onboard). As a trial, open
gnome-system-monitor
and look if there is any bash script or even python scripts running. Try closing onboard if it's running.I know that what I will recommend is almost the most easy and ugly solution out there:
Move the
.*
directories to somewhere else:now restart your session. The problem should have go away. If the issue goes away, you can restore back one by one the innocent with
Restart the session, issue is there again? Remove the directory and copy instead one by one the contents of the subdirectories. Same with the other 2 directories.
I know is quite brutish the method, but since I couldn't find the exact file/dconf/gconf/xinput that could cause this, a little quick hack should suffice.
There is one more reason of delay while switching keyboard layout. According to issue #1370953 (and #1370953) such behavior may be related with poor disk performance. See Maxim Kravets comment:
There is one thing (not only one) to step over disk issue - to change disk queue scheduler. By default Ubuntu configured to use deadline scheduler, for slow HDD its better to use cfq scheduler instead.
See instruction.
The problem of that inacceptable text entry lag might also have a completely different reason than the ones stated here before (Sticky Keys), an I found it:
By mistake I had the option 'Screen Magnifier' (Accessability Options) switched on. - And man, does that thing slow texting down if you are running a low spec Netbook, like I do (ASUS X206HA)... made me half crazy. - But by mere chance I finally found this out, switched the Magnifier off and everything is back to quick and smooth again.
As described in the question, in the login screen I had no delay but in the window manager (awesome wm), there was an irregular keyboard lag (sometimes short/long delay). Before, I had put the following code in
/etc/X11/xorg.conf
to make
xbacklight
work. It turned out that the the above lines caused the keyboard delay in my case.TL&DR: Turn of Screen Reader through the Univcersal Access options in Ubuntu 20.04+.
Instructions:
Open the Activities overview and start typing "Accessibility".
Click Univcersal Access to open the menu.
Click Screen Reader in the Seeing section, then switch Screen Reader on in the dialog.
Explanation: The Screen Reader feature is really meant for those who have trouble reading, or are visually impaired. This has been shown to cause delays in keyboard presses.