diff options
author | kn <kn@cvs.openbsd.org> | 2020-01-14 21:49:37 +0000 |
---|---|---|
committer | kn <kn@cvs.openbsd.org> | 2020-01-14 21:49:37 +0000 |
commit | 4ccef1205d0d73910dcc167eb8d58bf359d1de26 (patch) | |
tree | 072612ef20b86aac45f60b274ff14218e5f0b25e /sbin/iked/iked.c | |
parent | d85ec68cf1b4bb477126ca779543851a7f95944a (diff) |
Fix screen brightness adjustment through function keys
Not all machines provide levels that scale linearly, e.g. an ThinkPad X230
has 16 levels of exponential scale that end with [50, 67, 100].
Make acpivout_find_brightness() return the BCL's index instead of its value
such that acpivout_brightness_step() is able to fall back to the lower next
value by index in case the 5% heuristic fails.
Tested by Tracey Emery with an T470s
OK patrick jcs
Diffstat (limited to 'sbin/iked/iked.c')
0 files changed, 0 insertions, 0 deletions