> ...for controlling the display backlight the appropriate utility is > wsconsctl: > > $ wsconsctl display.brightness > display.brightness=100.00% > $ wsconsctl display.brightness=50 > display.brightness -> 50.00% > > To make this work, your driver has to provide the ws_get_param and > ws_set_param hooks. An example can be found in > sys/dev/acpi/acpitoshiba.c, which hooks up the non-standard ACPI > mechanism found on some Toshiba laptops.
Note that part of my evil wscons plans include the introduction of a ``brightness controller'' abstraction, so that a given driver could advertize itself as a brightness controller for a given display. This should eventually get us rid of many ugly #if NFOO > 0 in the code, or global function pointers tests against NULL. But this is post-release material. Miod
