]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Alert devd when acpi_video brightness changes
authorcperciva <cperciva@FreeBSD.org>
Thu, 16 Apr 2020 21:56:52 +0000 (21:56 +0000)
committercperciva <cperciva@FreeBSD.org>
Thu, 16 Apr 2020 21:56:52 +0000 (21:56 +0000)
commited66bb4aaa1a8deb8e05ee526791cbeb36af21fa
tree2d8c9630a0e30eadf98825c1830c6bbbdd165747
parent92f82df12b2680225b1e7827584d1cd2628eaa44
Alert devd when acpi_video brightness changes

On my Dell Latitude 7390 laptop, the brightness hotkeys
(Fn+<up/down arrow>) send ACPI notifications which acpi_video
handles by adjusting its brightness setting; but ACPI does not
actually do anything with the backlight.

Announcing brightness changes via devd makes it possible to close
the loop by triggering the intel_backlight utility to perform the
required backlight adjustment.

Reviewed by: imp
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D24424
sys/dev/acpica/acpi_video.c