linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] keymap: Support Dell Latitude XT2 tablet-mode navigation keys
@ 2011-04-05 16:42 Seth Forshee
  2011-04-05 16:43 ` Seth Forshee
  2011-04-05 17:40 ` [PATCH] keymap: Support Dell Latitude XT2 tablet-mode navigation Martin Pitt
  0 siblings, 2 replies; 3+ messages in thread
From: Seth Forshee @ 2011-04-05 16:42 UTC (permalink / raw)
  To: linux-hotplug

Hi Martin,

The patch that follows gets some tablet-mode keys working on the
Latitude XT2. The scan codes for these keys are apparently used for
different functions on some other models, so I added a new keymap file
for the XT2 to handle the overlap. There's a good chance that what I've
done is suboptimal -- I mean that either these keys apply to some other
models, or that some of the keys in the current dell keymap should be
moved over to the new file, or both. I just don't have enough
information to know which keys are used on which models. If that
information is available somewhere I'd be happy to rearrange the
keymaps, but for now I opted for the conservative approach that won't
change how things currently work for other Dell models.

Thanks,
Seth


Seth Forshee (1):
  keymap: Support Dell Latitude XT2 tablet-mode navigation keys

 Makefile.am                             |    1 +
 extras/keymap/95-keymap.rules           |    1 +
 extras/keymap/keymaps/dell-latitude-xt2 |    4 ++++
 3 files changed, 6 insertions(+), 0 deletions(-)
 create mode 100644 extras/keymap/keymaps/dell-latitude-xt2


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] keymap: Support Dell Latitude XT2 tablet-mode navigation keys
  2011-04-05 16:42 [PATCH] keymap: Support Dell Latitude XT2 tablet-mode navigation keys Seth Forshee
@ 2011-04-05 16:43 ` Seth Forshee
  2011-04-05 17:40 ` [PATCH] keymap: Support Dell Latitude XT2 tablet-mode navigation Martin Pitt
  1 sibling, 0 replies; 3+ messages in thread
From: Seth Forshee @ 2011-04-05 16:43 UTC (permalink / raw)
  To: linux-hotplug

The XT2 has a rocker (up/down/enter) and back button on the side
in tablet mode, none of which work currently. Add entries for
these keys.

There is some overlap here with scan codes used in other Dell
models, so these buttons are put in a new file specific to this
model.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
---
 Makefile.am                             |    1 +
 extras/keymap/95-keymap.rules           |    1 +
 extras/keymap/keymaps/dell-latitude-xt2 |    4 ++++
 3 files changed, 6 insertions(+), 0 deletions(-)
 create mode 100644 extras/keymap/keymaps/dell-latitude-xt2

diff --git a/Makefile.am b/Makefile.am
index 2c20f46..4244089 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -568,6 +568,7 @@ dist_udevkeymap_DATA = \
 	extras/keymap/keymaps/asus \
 	extras/keymap/keymaps/compaq-e_evo \
 	extras/keymap/keymaps/dell \
+	extras/keymap/keymaps/dell-latitude-xt2 \
 	extras/keymap/keymaps/everex-xt5000 \
 	extras/keymap/keymaps/fujitsu-amilo_pa_2548 \
 	extras/keymap/keymaps/fujitsu-amilo_pro_edition_v3505 \
diff --git a/extras/keymap/95-keymap.rules b/extras/keymap/95-keymap.rules
index 44d5064..350f111 100644
--- a/extras/keymap/95-keymap.rules
+++ b/extras/keymap/95-keymap.rules
@@ -67,6 +67,7 @@ LABEL="keyboard_vendorcheck"
 
 ENV{DMI_VENDOR}="Dell*", RUN+="keymap $name dell"
 ENV{DMI_VENDOR}="Dell*", ATTR{[dmi/id]product_name}="Inspiron 910|Inspiron 1010|Inspiron 1011|Inspiron 1012|Inspiron 1110|Inspiron 1210", RUN+="keymap $name 0x84 wlan"
+ENV{DMI_VENDOR}="Dell*", ATTR{[dmi/id]product_name}="Latitude XT2", RUN+="keymap $name dell-latitude-xt2"
 
 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-latitude-xt2 b/extras/keymap/keymaps/dell-latitude-xt2
new file mode 100644
index 0000000..39872f5
--- /dev/null
+++ b/extras/keymap/keymaps/dell-latitude-xt2
@@ -0,0 +1,4 @@
+0x9B up # tablet rocker up
+0x9E enter # tablet rocker press
+0x9F back # tablet back
+0xA3 down # tablet rocker down
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] keymap: Support Dell Latitude XT2 tablet-mode navigation
  2011-04-05 16:42 [PATCH] keymap: Support Dell Latitude XT2 tablet-mode navigation keys Seth Forshee
  2011-04-05 16:43 ` Seth Forshee
@ 2011-04-05 17:40 ` Martin Pitt
  1 sibling, 0 replies; 3+ messages in thread
From: Martin Pitt @ 2011-04-05 17:40 UTC (permalink / raw)
  To: linux-hotplug

Hello Seth,

Seth Forshee [2011-04-05 11:42 -0500]:
> I just don't have enough information to know which keys are used on
> which models. If that information is available somewhere I'd be
> happy to rearrange the keymaps, but for now I opted for the
> conservative approach that won't change how things currently work
> for other Dell models.

I don't know either I'm afraid, so let's keep the model specific
version for now. Pushed to git, thanks!

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-04-05 17:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-05 16:42 [PATCH] keymap: Support Dell Latitude XT2 tablet-mode navigation keys Seth Forshee
2011-04-05 16:43 ` Seth Forshee
2011-04-05 17:40 ` [PATCH] keymap: Support Dell Latitude XT2 tablet-mode navigation 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).