diff options
author | Lee, Chun-Yi <joeyli.kernel@gmail.com> | 2011-03-01 19:16:45 +0800 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2011-03-01 12:54:00 +0100 |
commit | 30c2b6f10fba3171036bdfd4b6873ebb0e89233f (patch) | |
tree | ca3e35c33b20f7b3f5f1e3492eaf82732c821a3a | |
parent | 551b143e13fe5386326a417c53d0a64d49266263 (diff) |
Remap Acer WMI touchpad toggle key to F21 used by X
Currently, Acer WMI driver generates KEY_F22 but this
will soon change to KEY_TOUCHPAD_TOOGLE.
X has defined F21 for the purpose of touchpad toggle and other
udev keymaps align with this meaning. Patch aligns Acer WMI
hotkey drivers with F21.
Tested on Acer TravelMate 8572 notebook using acer-wmi driver.
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: Martin Pitt <martin.pitt@ubuntu.com>
-rw-r--r-- | extras/keymap/95-keymap.rules | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extras/keymap/95-keymap.rules b/extras/keymap/95-keymap.rules index dd511d5cf0..7f849d3027 100644 --- a/extras/keymap/95-keymap.rules +++ b/extras/keymap/95-keymap.rules @@ -46,6 +46,7 @@ ENV{DMI_VENDOR}=="ASUS*", KERNELS=="input*", ATTRS{name}=="Asus Extra Buttons", ENV{DMI_VENDOR}=="Sony*", KERNELS=="input*", ATTRS{name}=="Sony Vaio Keys", RUN+="keymap $name module-sony" ENV{DMI_VENDOR}=="ASUS*", KERNELS=="input*", ATTRS{name}=="Eee PC WMI hotkeys", RUN+="keymap $name 0x6B f21" ENV{DMI_VENDOR}=="ASUS*", KERNELS=="input*", ATTRS{name}=="Eee PC Hotkey Driver", RUN+="keymap $name 0x37 f21" +ENV{DMI_VENDOR}=="Acer*", KERNELS=="input*", ATTRS{name}=="Acer WMI hotkeys", RUN+="keymap $name 0x82 f21" # Older Vaios have some different keys ENV{DMI_VENDOR}=="Sony*", ATTR{[dmi/id]product_name}=="*PCG-C1*|*PCG-K25*|*PCG-F1*|*PCG-F2*|*PCG-F3*|*PCG-F4*|*PCG-F5*|*PCG-F6*|*PCG-FX*|*PCG-FRV*|*PCG-GR*|*PCG-TR*|*PCG-NV*|*PCG-Z*|*VGN-S360*", ATTRS{name}=="Sony Vaio Keys", RUN+="keymap $name module-sony-old" |