summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2009-05-09 12:13:34 +0200
committerMartin Pitt <martin.pitt@ubuntu.com>2009-05-09 12:13:34 +0200
commit8c0cde2251a2285a9cff3a1c4c2713ef0af3006d (patch)
treee93aabb551480ce060ffcf522ffeabc0f9fb9104
parentb09932ec598a6f9366c819855a2dbc6f34a7209c (diff)
keymap: Add Dell rules (from hal-info)
Converted from 30-keymap-dell.fdi from hal-info 2009-05-07. The "Latitude XT" product case was merged into the general dell map, since there were no overlaps. The "Dell USB Keyboard Hub" was not converted yet.
-rw-r--r--keymap/95-keymap.rules10
-rw-r--r--keymap/keymaps/dell27
2 files changed, 37 insertions, 0 deletions
diff --git a/keymap/95-keymap.rules b/keymap/95-keymap.rules
new file mode 100644
index 0000000..4dd11f8
--- /dev/null
+++ b/keymap/95-keymap.rules
@@ -0,0 +1,10 @@
+ACTION!="add", GOTO="keyboard_end"
+SUBSYSTEM!="input", GOTO="keyboard_end"
+DRIVERS=="atkbd", GOTO="keyboard_vendorcheck"
+GOTO="keyboard_end"
+
+LABEL="keyboard_vendorcheck"
+
+ATTR{[dmi/id]sys_vendor}=="Dell*", RUN+="keymap $name dell"
+
+LABEL="keyboard_end"
diff --git a/keymap/keymaps/dell b/keymap/keymaps/dell
new file mode 100644
index 0000000..5ff44d6
--- /dev/null
+++ b/keymap/keymaps/dell
@@ -0,0 +1,27 @@
+0x81 playpause # Play/Pause
+0x82 stopcd # Stop
+0x83 previoussong # Previous song
+0x84 nextsong # Next song
+0x85 brightnessdown # Fn+Down arrow Brightness Down
+0x86 brightnessup # Fn+Up arrow Brightness Up
+0x87 battery # Fn+F3 battery icon
+0x88 wlan # Fn+F2 Turn On/Off Wireless
+0x89 ejectclosecd # Fn+F10 Eject CD
+0x8A suspend # Fn+F1 hibernate
+0x8B switchvideomode # Fn+F8 CRT/LCD (high keycode: "displaytoggle")
+0x8C f23 # Fn+Right arrow Auto Brightness
+0x8F switchvideomode # Fn+F7 aspect ratio
+0x90 previoussong # Front panel previous song
+0x91 prog1 # Wifi Catcher (DELL Specific)
+0x92 media # MediaDirect button (house icon)
+0x93 f23 # FIXME Fn+Left arrow Auto Brightness
+0x95 camera # Shutter button Takes a picture if optional camera available
+0x97 email # Tablet email button
+0x98 f21 # FIXME: Tablet screen rotatation
+0x99 nextsong # Front panel next song
+0x9A setup # Tablet tools button
+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