The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

Views: 1,862     Votes:  4 
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: November 24, 2022    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.

⇧ Ubuntu 18.04 brightness/backlight command How can screen recording software record the call audio of both the local person (on the mic) and the remote person (on the speakers)?  ⇩