Skip to contentSkip to conversation

HP-WMI: additional keycode (or typo)

PATCH New Eric Piel 1 participant 1 message Oct 11, 2008 Char and misc drivers

lore
Share & tools
lore

Eric Piel

author
#0 lore raw

PATCH 1/1 HP-WMI: additional keycode (or typo)

Hello Matthew,

On my HP 2510, pressing the (i) button generates an unknown keycode:
0x213b. So here is a patch adding support for it. However, as it seems there is already support for a similar button connected to 0x231b as keycode, I wonder if it could be a typo in the driver? If so, let me know and I can redo the patch.

See you,
Eric

=
HP-WMI : add another keycode

On the hp nc2510, the (i) button generates a different keycode, add it as KEY_INFO.

---
 drivers/misc/hp-wmi.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/misc/hp-wmi.c +1 -0
index 6d407c2..02329df 100644
@@ -82,6 +82,7 @@ static struct key_entry hp_wmi_keymap[] = {
 	{KE_KEY, 0x03, KEY_BRIGHTNESSDOWN},
 	{KE_KEY, 0x20e6, KEY_PROG1},
 	{KE_KEY, 0x2142, KEY_MEDIA},
+	{KE_KEY, 0x213b, KEY_INFO},
 	{KE_KEY, 0x231b, KEY_HELP},
 	{KE_END, 0}
 };