Fix for keyboard not working after suspend in Arch Linux and Arch-based distros
Clone the repo
git clone https://github.com/TheDragonary/Arch-Keyboard-Fix.git && cd Arch-Keyboard-Fix
and run
./arch-keyboard-fix.sh
WARNING: note that the current working directory must be the directory where arch-keyboard-fix.sh
and the other files are located.
Or you can execute all commands at once:
git clone https://github.com/TheDragonary/Arch-Keyboard-Fix.git && cd Arch-Keyboard-Fix && ./arch-keyboard-fix.sh && cd && rm -rf ~/Arch-Keyboard-Fix
The fix involves three files:
- arch-keyboard-fix.sh is the installation script. It copies reset-input-devices-after-sleep.service and reset-input-devices.sh where they belong.
- reset-input-devices-after-sleep.service is a systemd service file. It executes reset-input-devices.sh after every suspend/hibernate.
- reset-input-devices.sh resets
- the atkbd Linux kernel which is responsible for the built-in keyboard of laptops.
- all USB human interface devices.