From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerone Young Date: Thu, 25 Mar 2010 01:00:07 +0000 Subject: Re: [PATCH] Fix Keymapping for upcoming Dell Laptops Message-Id: <1269478807.2969.1223.camel@laptop> List-Id: References: <1269478288.2969.1214.camel@laptop> In-Reply-To: <1269478288.2969.1214.camel@laptop> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org I need to resubmit this patch as I put "touchpadtoggle" instead of f22. Jerone On Wed, 2010-03-24 at 19:51 -0500, Jerone Young wrote: > 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. > > Signed-off-by: Jerone Young > > diff --git a/extras/keymap/95-keymap.rules b/extras/keymap/95-keymap.rules > index dd58453..af39c21 100644 > --- a/extras/keymap/95-keymap.rules > +++ b/extras/keymap/95-keymap.rules > @@ -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" > > diff --git a/extras/keymap/keymaps/dell b/extras/keymap/keymaps/dell > index 5ff44d6..aa1a7e1 100644 > --- a/extras/keymap/keymaps/dell > +++ b/extras/keymap/keymaps/dell > @@ -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 majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html