Alex A. Naanou 82f428e7a8 tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-04-07 01:48:47 +03:00
2024-04-07 01:06:34 +03:00
2024-04-06 22:29:33 +03:00
2024-04-07 01:10:17 +03:00
2024-04-07 01:14:35 +03: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

License

BSD 3-Clause 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.
Readme BSD-3-Clause 42 KiB
Languages
Makefile 50.3%
Shell 49.7%