]> git.ipfire.org Git - thirdparty/systemd.git/commit
backlight: reduce clamp to 1%
authorDavid SantamarĂ­a Rogado <howl.nsp@gmail.com>
Mon, 29 Dec 2025 16:29:37 +0000 (17:29 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 16 Feb 2026 04:20:55 +0000 (13:20 +0900)
commit4ed1e2ea17e0f29a23d7a3dd65af192def9b3214
tree7d1db97d1c29ecaaeac677b624dc1335071b0a23
parent6d0e8271b4ab332d356d7f59394035da2d8845a8
backlight: reduce clamp to 1%

Actually GNOME sets a clamp of 1% and divides in 20 steps the brightness
control. Using 5% clamp makes things like in a device with max value 640
to always be in the first brightness step in GNOME and we can't leave in
the minimum.

GNOME set steps of 640/20 = 32 with the zero step 640 * 1% = 6. When we
restart the device with the lowest bright systemd sees 6 but sets
640 * 5% = 32, so we get the brightness in the first step.

Tests in IPS and OLED panels have been done and 1% still seems a
comprensive minimun usable value so use that to allow all environments
to be able to set lower brightness values that won't be raised by
systemd at boot.

If your user enviroment allow to set excesive lower unusable values you
should blame it or yourself if you directle changes it through sysfs but
not systemd.
NEWS
src/backlight/backlight.c