]> err.no Git - systemd/commitdiff
keymap: Support Dell Latitude XT2 tablet-mode navigation keys
authorSeth Forshee <seth.forshee@canonical.com>
Tue, 5 Apr 2011 16:43:00 +0000 (11:43 -0500)
committerMartin Pitt <martin.pitt@ubuntu.com>
Tue, 5 Apr 2011 17:38:36 +0000 (19:38 +0200)
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>
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
Makefile.am
extras/keymap/95-keymap.rules
extras/keymap/keymaps/dell-latitude-xt2 [new file with mode: 0644]

index 2c20f46c6df35cf67ff82e6d51e02ba7a1d28634..424408982215927c26a2e88f20e8ed6e461abfb9 100644 (file)
@@ -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 \
index 44d50642edbc215a1cc3183804b14fdeb5fa3dfd..350f1115040cd339dfb319c44099cc31cd7dae8e 100644 (file)
@@ -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 (file)
index 0000000..39872f5
--- /dev/null
@@ -0,0 +1,4 @@
+0x9B up # tablet rocker up
+0x9E enter # tablet rocker press
+0x9F back # tablet back
+0xA3 down # tablet rocker down