ACPI: thinkpad-acpi: enable more hotkeys
commit3c7ff30247c9d059691333ee1a2bcaca6daf2770
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 30 Jun 2007 20:07:49 +0000 (30 17:07 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Mon, 9 Jul 2007 12:42:08 +0000 (9 09:42 -0300)
tree29f0af2005dddb2571df694c9c661bd56863fd6d
parent335629427de392e578dc1dfc7ece5cf22513463c
ACPI: thinkpad-acpi: enable more hotkeys

Revise ACPI HKEY functionality to better interface with the firmware, and
enable up to 32 regular hotkeys, instead of just 16 of them.  Ouch.

This takes care of most keys one used to have to do CMOS NVRAM polling on,
and should drop the need for tpb, thinkpad-keys, and other such 5Hz NVRAM
polling power vampires on most modern ThinkPads ;-)

And, just to add insult to injury, this was sort of working since forever
through the procfs interface, but nobody noticed or tried an echo
0xffffffff > /proc/acpi/ibm/hotkey and told me it would generate weird
events. ARGH!

Thanks to Richard Hughes for kicking off the work that ended up with this
discovery, and to Matthew Garret for calling my attention to the fact that
newer ThinkPads were indeed generating ACPI GPEs when such hot keys were
pressed.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Richard Hughes <hughsient@gmail.com>
Cc: Matthew Garrett <mjg59@srcf.ucam.org>
Documentation/thinkpad-acpi.txt
drivers/misc/thinkpad_acpi.c
drivers/misc/thinkpad_acpi.h