CVSROOT: /cvs Module name: src Changes by: k...@cvs.openbsd.org 2020/01/14 14:49:36
Modified files: sys/dev/acpi : acpivout.c Log message: 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