Fix Keymapping for upcoming Dell Laptops
PATCH 1/1 Fix Keymapping for upcoming Dell Laptops
Currently 0xD8 is being mapped to sleep. Though this is only done by the Latitude XT* laptops. Many upcoming Laptops from Dell are mapping this key to "toogle touchpad off" .. giving the OS notification that it has just turned on the touchpad.
This patch fixes it so that new Dell machines will work correctly as well as keep the Latitude XT working without issue. As well as adding toogle touchpad ON keypress as well.
extras/keymap/95-keymap.rules +1 -0
@@ -54,6 +54,7 @@ LABEL="keyboard_vendorcheck" ENV{DMI_VENDOR}="Dell*", RUN+="keymap $name dell" ENV{DMI_VENDOR}="Dell*", ATTR{[dmi/id]product_name}="Inspiron 1011", RUN+="keymap $name 0x84 wlan" +ENV{DMI_VENDOR}="Dell*", ATTR{[dmi/id]product_name}="Latitude XT*", RUN+="keymap $name 0xD8 screenlock" ENV{DMI_VENDOR}="Compaq*", ATTR{[dmi/id]product_name}="*E500*|*Evo N*", RUN+="keymap $name compaq-e_evo"
extras/keymap/keymaps/dell +2 -1
@@ -23,5 +23,6 @@ 0x9B switchvideomode # Display Toggle button 0xA2 playpause # Front panel play/pause 0xA4 stopcd # Front panel stop -0xD8 screenlock # FIXME: Tablet lock button 0xED media # MediaDirect button +0xD8 touchpadtoggle #toggle touchpad OFF +0xD9 touchpadtoggle #toogle touchpad ON
I need to resubmit this patch as I put "touchpadtoggle" instead of f22.
Jerone
Quoted 43 lines · Jerone Young
Currently
0xD8is being mapped to sleep. Though this is only done by the Latitude XT* laptops. Many upcoming Laptops from Dell are mapping this key to "toogle touchpad off" .. giving the OS notification that it has just turned on the touchpad.This patch fixes it so that new Dell machines will work correctly as well as keep the Latitude XT working without issue. As well as adding toogle touchpad ON keypress as well.
Signed-off-by Jerone Young <[email protected]>extras/keymap/95-keymap.rules +1
-0@@ -54,6 +54,7 @@ LABEL="keyboard_vendorcheck" ENV{DMI_VENDOR}="Dell*", RUN+="keymap $name dell" ENV{DMI_VENDOR}="Dell*", ATTR{[dmi/id]product_name}="Inspiron 1011", RUN+="keymap $name 0x84 wlan" +ENV{DMI_VENDOR}="Dell*", ATTR{[dmi/id]product_name}="Latitude XT*", RUN+="keymap $name 0xD8 screenlock" ENV{DMI_VENDOR}="Compaq*", ATTR{[dmi/id]product_name}="*E500*|*Evo N*", RUN+="keymap $name compaq-e_evo"extras/keymap/keymaps/dell +2
-2@@ -23,5 +23,6 @@ 0x9B switchvideomode # Display Toggle button 0xA2 playpause # Front panel play/pause 0xA4 stopcd # Front panel stop -0xD8 screenlock # FIXME: Tablet lock button 0xED media # MediaDirect button +0xD8 touchpadtoggle #toggle touchpad OFF +0xD9 touchpadtoggle #toogle touchpad ON --To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hello Jerone,
Jerone Young [2010-03-24 20:00 -0500]:
Quoted 4 lines
I need to resubmit this patch as I put "touchpadtoggle" instead of f22. [...]
Quoted 2 lines
+0xD8 touchpadtoggle #toggle touchpad OFF
+0xD9 touchpadtoggle #toogle touchpad ON
Hm, your resubmitted patch does not contain those two at all any more. Is the kernel default already correct for those two on newer Dells then? Or were they just forgotten?
Thanks,
Martin
Signature · 2 lines
Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
I left them out on purpose in the resubmit. It turned out that the way these work (currently) under Windows is that the key press does two things.
- it turns off the touchpad through the bios
- it sends the keypress scan code to the OS
Under Windows the driver/daemon catches the keypress but it's only so it can show a nice on screen display. Doesn't try to cut it off or on via the OS.
Currently (working to fix with Dell), If these are mapped under Linux what happens is. The hardware first cutoff the touchpad, but then what happens is the software will then toggle this setting. So you end up in one of two states:
- never being able to turn off the touchpad
- never being able to turn on the touchpad
Will submit another patch with these once can get this sorted out.
Thanks,
Jerone
Quoted 15 lines · Martin Pitt
Hello Jerone,
Jerone Young [2010-03-24 20:00 -0500]:
Quoted 4 lines
I need to resubmit this patch as I put "touchpadtoggle" instead of f22. [...]
Quoted 2 lines
+0xD8 touchpadtoggle #toggle touchpad OFF
+0xD9 touchpadtoggle #toogle touchpad ONHm, your resubmitted patch does not contain those two at all any more. Is the kernel default already correct for those two on newer Dells then? Or were they just forgotten?
Thanks,
Martin
Hello Jerone,
Jerone Young [2010-03-25 8:28 -0500]:
Quoted 6 lines
Currently (working to fix with Dell), If these are mapped under Linux what happens is. The hardware first cutoff the touchpad, but then what happens is the software will then toggle this setting. So you end up in one of two states:
- never being able to turn off the touchpad
- never being able to turn on the touchpad
Thanks for the followup. So yes, let's ignore those keys for now.
Martin
Signature · 2 lines
Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)