diff options
author | Thomas Bächler <thomas@archlinux.org> | 2014-03-27 23:41:59 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-04-04 15:14:12 +0200 |
commit | 3cadce7d33e263ec7a6a83c00c11144930258b22 (patch) | |
tree | 4ad54bab7aa85eb7ac365fd4fe655477e610dff9 /TODO | |
parent | 51e430a5b053dde2abc4bbd5d702ff2b900f10c2 (diff) |
backlight: do nothing if max_brightness is 0
On virtually any newer Asus mainboard, the eeepc-wmi driver is loaded.
It exposes a backlight device despite the lack of any physical backlight
devices. This fake backlight device has max_brightness set to 0. Since
the introduction of the clamp_brightness function, systemd-backlight
tries to write '1' to brightness and fails.
This patch changes systemd-backlight to exit gracefully when
max_brightness is 0 before performing any action. This affects
both the load and save actions.
Diffstat (limited to 'TODO')
0 files changed, 0 insertions, 0 deletions