summaryrefslogtreecommitdiff
path: root/sbin/iked/iked.c
diff options
context:
space:
mode:
authorkn <kn@cvs.openbsd.org>2020-01-14 21:49:37 +0000
committerkn <kn@cvs.openbsd.org>2020-01-14 21:49:37 +0000
commit4ccef1205d0d73910dcc167eb8d58bf359d1de26 (patch)
tree072612ef20b86aac45f60b274ff14218e5f0b25e /sbin/iked/iked.c
parentd85ec68cf1b4bb477126ca779543851a7f95944a (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