Providing a keyboard backlight timeout for laptops that don't have the option available.
Requirements:
System running d-bus, upower and X11 based Desktop Environment. Also, obviously, a laptop with a keyboard backlight.
First make sure xprintidle is installed:
sudo apt install xprintidleSave kbd-light-idle-timer.sh in any appropriate location. Make sure the permissions are set to allow execution.
For SystemD service:
Download and edit kbd-light-idle-timer.service with your details. Then move/copy file to /lib/systemd/system/
and activate it:
sudo systemctl enable --now kbd-light-idle-timerNote: daemon-reload might be required first with systemctl
Alternatively it might run ok as a startup program, when you login. (not tested it this way)
Big thanks to Setting Keyboard Backlight Timeout (on Linux) and Theluga/Keyboard-light-timeout, code and ideas came together from both of these.
Currently using this on a MacBookPro9,2 13" (mid-2012).