]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit143a4c0284dc2378b3ce78866b3548d90121d843
tree2c22036049bd6aa36ed7f6c0c632d324a617b0b3
parent8941178efad900e48e44000208513a6426c74368
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