[Intel-gfx] Question about how brightness up/down to call the code of xf86-video-intel like intel_output_dpms_backlight etc

Daniel Vetter daniel at ffwll.ch
Fri Jul 12 14:10:03 CEST 2013


On Fri, Jul 12, 2013 at 08:53:23AM +0000, Li, Hao H wrote:
> Hi
> 
> When we press the key like brightness up/down from keyboard, kernel will receive the keyevent.
> My question is how the keyevent from kernel call the code of xf86-video-intel like intel_output_dpms_backlight etc to adjust the backlight.
> Can someone help to explain more details about it?

Kernel doesn't call the brightness adjustment code. There's a bit of
bonghits in acpi where the acpi brightness keys directly adjust the acpi
backlight, but that's just not yet been fixed.

What's supposed to happen is that userspace listens to this key event and
reacts appropriately, e.g. by adjusting the brightness but also by drawing
a nice brightness scale on the screen

Cheers, Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch



More information about the Intel-gfx mailing list