* [PATCH] Remap Eee PC touchpad toggle key to F21 used by X
@ 2011-01-01 21:44 chris
2011-01-03 8:32 ` Martin Pitt
0 siblings, 1 reply; 2+ messages in thread
From: chris @ 2011-01-01 21:44 UTC (permalink / raw)
To: linux-hotplug
From: Chris Bagwell <chris@cnpbagwell.com>
Currently, Eee PC have a hotkey that generates KEY_F13 but this
will soon change to KEY_TOUCHPAD_TOOGLE. Both cases do not
work well with X.
X has defined F21 for the purpose of touchpad toggle and other
udev keymaps align with this meaning. Patch aligns Eee PC
hotkey drivers with F21.
Tested on Eee PC 1005PE using both eeepc-wmi and eeepc-laptop driver
(with acpi_osi="!Windows 2009").
Signed-off-by: Chris Bagwell <chris@cnpbagwell.com>
---
| 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
--git a/extras/keymap/95-keymap.rules b/extras/keymap/95-keymap.rules
index 053838d..9059a8c 100644
--- a/extras/keymap/95-keymap.rules
+++ b/extras/keymap/95-keymap.rules
@@ -44,6 +44,8 @@ ENV{DMI_VENDOR}="LENOVO*", KERNELS="input*", ATTRS{name}="ThinkPad Extra Butt
ENV{DMI_VENDOR}="LENOVO*", KERNELS="input*", ATTRS{name}="Lenovo ThinkPad SL Series extra buttons", RUN+="keymap $name 0x0E bluetooth"
ENV{DMI_VENDOR}="ASUS*", KERNELS="input*", ATTRS{name}="Asus Extra Buttons", ATTR{[dmi/id]product_name}="W3J", RUN+="keymap $name module-asus-w3j"
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"
# 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"
--
1.7.3.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Remap Eee PC touchpad toggle key to F21 used by X
2011-01-01 21:44 [PATCH] Remap Eee PC touchpad toggle key to F21 used by X chris
@ 2011-01-03 8:32 ` Martin Pitt
0 siblings, 0 replies; 2+ messages in thread
From: Martin Pitt @ 2011-01-03 8:32 UTC (permalink / raw)
To: linux-hotplug
Hello Chris,
chris@cnpbagwell.com [2011-01-01 15:44 -0600]:
> Currently, Eee PC have a hotkey that generates KEY_F13 but this
> will soon change to KEY_TOUCHPAD_TOOGLE. Both cases do not
> work well with X.
>
> X has defined F21 for the purpose of touchpad toggle and other
> udev keymaps align with this meaning. Patch aligns Eee PC
> hotkey drivers with F21.
Thanks! Applied.
Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-03 8:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-01 21:44 [PATCH] Remap Eee PC touchpad toggle key to F21 used by X chris
2011-01-03 8:32 ` Martin Pitt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).