Skip to content

Providing a keyboard backlight timeout for laptops that don't have the option available.

Notifications You must be signed in to change notification settings

RPMozley/Kbd-Backlight-Idle-Timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Kbd-Backlight-Idle-Timer

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 xprintidle

Save 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-timer

Note: 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).

About

Providing a keyboard backlight timeout for laptops that don't have the option available.

Resources

Stars

Watchers

Forks

Languages