My Lenovo Thinkbook keyboard backlight always turns on when booting then after it gets to the desktop it turns off after a minute. You have to turn it back on with the Fn space bar. Then you can also adjust the brightness with fn keys.
You can also use a userspace application like brightnessctl to do this.
Make sure you have it installed.
$ sudo pacman -S brightnessctl
To list all devices that brightnessctl can control, run
$ brightnessctl --list
That command should return a list of devices. Each entry in the list should have a format that looks something like this:
Device 'vendorname::devicename' of class 'backlight':
... a list of attributes
Scroll through the list and look for the device name kbd_backlight. Take note of its vendor name as well. To know what settings/values are available, run
$ brightnessctl --device="vendorname::kbd_backlight" info
Obviously, you must substitute vendorname with the actual vendor name.
To set a value, just run
$ brightnessctl --device="vendorname::kbd_backlight" set some_value
If everything works, include the last command in your init scripts to run at boot.
I don’t use any brightness app on my Lenovo Thinkbook. When it boots the keyboards light up to show you it’s working and then go out. After it’s booted to the desktop you turn it on with Fn spacebar. That is the lowest level of brightness. Then you hit that again for the highest level of brightness and again to turn it off. If you leave it turned on then on subsequent reboots it’s stays on.
brightnessctl --list
rightnessctl --device="asus::kbd_backlight" info
which gave:
Device 'asus::kbd_backlight' of class 'leds':
Current brightness: 2 (67%)
Max brightness: 3
I was just looking into making a systemd unit like suggested, but I have hardly any experience so any help would be helpful.
(I tried to make a unit file for getting my network shares mounted at boot [in stead of fstab entries); but that never really worked well, so I abandoned the idea.)
Just write a script containing the brightnessctl command and point the GUI to the script. The downside to this approach is that the script will only be run after you log in.
My Lenovo Thinkbook keyboard backlight turns on when booting and stays on to whatever it was set to using the Fn space bar at that time and cares over on each fresh install or boot.
My question is why? Why if these laptops come with backlit keyboards why does one have to do this. Mine automatically works on my Thinkbook as i would expect it to.