thinkpad-acpi: report brightness events when required
commit2b62f6696b4e61d8424386ea6f56ab2bdf0ce161
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 20 Sep 2009 18:22:19 +0000 (20 15:22 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 20 Sep 2009 18:22:19 +0000 (20 15:22 -0300)
tree8d3909dea6bf3eedd75223d34d79fd34144f79c8
parent72ff43ab1a11a60b11ac88b985693c507df9ed5a
thinkpad-acpi: report brightness events when required

Report KEY_BRIGHTNESSUP and KEY_BRIGHTNESSDOWN input events when the
ThinkPad is in "passive brightness control" mode (because either we or
ACPI video touched _BCL), and ACPI video is not processing these
events by itself.

This happens only on Lenovo ThinkPads with ACPI video support, when
operating with the ACPI video driver in acpi_backlight=vendor mode.

Issuing these events is the right thing to do, and will work around
bugzilla #13368, if userspace is properly configured and actively
handles these events.

For other ThinkPads, and when ACPI video is handling brightness
changes, thinkpad-acpi will continue NOT sending KEY_BRIGHTNESS*
events by default.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
drivers/platform/x86/thinkpad_acpi.c