]> git.baikalelectronics.ru Git - kernel.git/commit
msi-laptop: send out touchpad on/off key
authorLee, Chun-Yi <joeyli.kernel@gmail.com>
Mon, 7 Mar 2011 07:46:28 +0000 (15:46 +0800)
committerMatthew Garrett <mjg@redhat.com>
Mon, 28 Mar 2011 10:07:26 +0000 (06:07 -0400)
commit428ef73009c93693110c29fb561658968ff9a9c6
tree2c22036049bd6aa36ed7f6c0c632d324a617b0b3
parentb00eb05e7b06984fb1f5b21458a378b90bc28e3b
msi-laptop: send out touchpad on/off key

MSI BIOS's raw behavior is send out KEY_TOUCHPAD_TOGGLE key when user
pressed touchpad hotkey.

Actually, we can capture the real touchpad status by read 0xE4 EC address
on MSI netbook/notebook. So, add msi-laptop input device for send out
KEY_TOUCHPAD_ON or KEY_TOUCHPAD_OFF key when user pressed Fn+F3 touchpad
hotkey. It leave userland applications to know the real touchpad status.

Tested on MSI netbook U-100, U-115, U160(N051), U160DX, N014, N034
Tested on MSI notebook CR620

Cc: Carlos Corbacho <carlos@strangeworlds.co.uk>
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>
drivers/platform/x86/msi-laptop.c