CVSROOT: /cvs Module name: src Changes by: kette...@cvs.openbsd.org 2020/04/19 09:05:15
Modified files: sys/dev/acpi : acpivout.c sys/dev/wscons : wsdisplay.c wsdisplayvar.h wskbd.c Log message: Move logic to change brightness level in reasonable steps from acpivout(4) into wsdisplay(4). This code is now exposed through wsdisplay_brightness_{step,zero,cycle} functions that can be called by any driver that handles brightnes "hotkeys". These functions take a wsdisplay(4) device pointer as their first argument, which should be provided if a clear association between events and a particular display exist. This is used in wskbd(4). Otherwise NULL can be passed and the code will direct the request at the first wsdisplay(4) that implements brightness adjustment. Tested by many. Fixes brightness keys on x395 and other thinkpads with AMD graphics. ok patrick@