From 8c0cde2251a2285a9cff3a1c4c2713ef0af3006d Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Sat, 9 May 2009 12:13:34 +0200 Subject: 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. --- keymap/95-keymap.rules | 10 ++++++++++ keymap/keymaps/dell | 27 +++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 keymap/95-keymap.rules create mode 100644 keymap/keymaps/dell 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 -- cgit