Commit 8941178efad900e48e44000208513a6426c74368

Authored by Lee, Chun-Yi
Committed by Matthew Garrett
1 parent 47ae4352be

acer-wmi: set the touchpad toggle key code to KEY_TOUCHPAD_TOGGLE

Set the touchpad toggle key code from F22 to KEY_TOUCHPAD_TOGGLE,
and userspace should use udev's key re-mapping facilities while X
is unable to process keycodes above 255 to adjust to the keycode.

Cc: Matthew Garrett <mjg@redhat.com>
Cc: Dmitry Torokhov <dtor@mail.ru>
Cc: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Lee, Chun-Yi <jlee@novell.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/platform/x86/acer-wmi.c
... ... @@ -108,7 +108,7 @@
108 108 {KE_KEY, 0x23, {KEY_PROG3} }, /* P_Key */
109 109 {KE_KEY, 0x24, {KEY_PROG4} }, /* Social networking_Key */
110 110 {KE_KEY, 0x64, {KEY_SWITCHVIDEOMODE} }, /* Display Switch */
111   - {KE_KEY, 0x82, {KEY_F22} }, /* Touch Pad On/Off */
  111 + {KE_KEY, 0x82, {KEY_TOUCHPAD_TOGGLE} }, /* Touch Pad On/Off */
112 112 {KE_END, 0}
113 113 };
114 114