My keyboard repeat & delay settings are occasionaly reverted to slow (apparently default) values under Xorg in Ubuntu 18.04.
In this situation, the actual values (as obtained by xset q
) are
auto repeat delay: 500 repeat rate: 30
whereas gsettings get org.gnome.desktop.peripherals.keyboard delay
returns:
uint32 250
If I afterwards run gsettings set org.gnome.desktop.peripherals.keyboard delay 250
, the keyboard delay / repeat settings are correctly set (xset q
then returns auto repeat delay: 250
).
There seem to be several triggers for the behavior, one reproducibly being a suspend & wakeup cycle; I wasn't able to reproduce others yet.
My system is a rather freshly installed Ubuntu 18.04 on an A10-5800K with an A78M-E35 board in BIOS (non EFI) mode.
Any hints would be highly appreciated.
Best Answer
You can create a script to automatically reset keyboard repeat rate during resume:
Place the script in
/lib/systemd/system-sleep
.Make it executable with:
Reboot and then every resume after suspend the command:
is automatically run.