Views:
2,257
Votes: 6
Tags:
gnome
18.04
keyboard
xorg
Link:
🔍 See Original Answer on Ask Ubuntu ⧉ 🔗
URL:
https://askubuntu.com/q/1156053
Title:
Keyboard repeat/delay is reset occasionally in Ubuntu 18.04
ID:
/2019/07/05/Keyboard-repeat_delay-is-reset-occasionally-in-Ubuntu-18.04
Created:
July 5, 2019
Upload:
September 15, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
You can create a script to automatically reset keyboard repeat rate during resume:
#!/bin/bash
# NAME: keyrepeat
# PATH: /lib/systemd/system-sleep
# CALL: Called from SystemD automatically
# DATE: July 4, 2019.
# NOTE: https://askubuntu.com/questions/1086780/keyboard-repeat-delay-is-reset-occasionally-in-ubuntu-18-04
case $1/$2 in
pre/*)
echo "$0: Going to $2..."
;;
post/*)
echo "$0: Waking up from $2..."
gsettings set org.gnome.desktop.peripherals.keyboard delay 250
;;
esac
Place the script in /lib/systemd/system-sleep
.
Make it executable with:
chmod a+x /lib/systemd/system-sleep/keyrepeat
Reboot and then every resume after suspend the command:
gsettings set org.gnome.desktop.peripherals.keyboard delay 250
is automatically run.