mirror of
https://github.com/flynx/thinkpad-keyboard-brightness.git
synced 2025-10-28 10:40:10 +00:00
Thinkpad keyboard backlight brightness
This systemd service will set the keyboard backlight brightness based on ambient light levels.
This is initially designed for Thinkpad X1 Yoga (gen3) but should work on other devices with minor configuration tweaks.
Install
$ sudo make install
Configure
$ sudo systemctl edit thinkpad-keyboard-brightness.service
Variables that can change depending on device
[Service]
Environment=SENSOR=/sys/bus/iio/devices/iio:device2/in_illuminance_raw
Environment=TRIGGER=/sys/class/leds/tpacpi::kbd_backlight/brightness
Environment=THRESHOLD=1500
Environment=VALUE=1
Uninstall
$ sudo make uninstall
Note that the above will not uninstall user configuration files, for a full uninstall run:
$ sudo make full-uninstall
License
Copyright (c) 2024, Alex A. Naanou,
All rights reserved.
Description
This systemd service will set the keyboard backlight brightness based on ambient light levels.
Languages
Makefile
50.3%
Shell
49.7%