summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2009-07-18 15:02:25 +0200
committerMartin Pitt <martin.pitt@ubuntu.com>2009-07-18 15:02:25 +0200
commit9193c7df9ae55fd2d22ccb32473ed65bdec39f8b (patch)
tree51ca2ce81c454f75e9ed23c50c61f8957f571664
parentd03a6f20df9037b060ed28bac7b7e6b1c94b1be8 (diff)
keymap: inline one-line key maps
Remove key map files which have only one override. Instead, use keymap tools' new feature of specifying scancode/keyname pairs directly at the command line. Also add a comment to 95-keymap.rules about how to specify key mappings in the rules.
-rw-r--r--extras/keymap/95-keymap.rules17
-rw-r--r--extras/keymap/Makefile.am3
-rw-r--r--extras/keymap/keymaps/acer-extensa_5xxx1
-rw-r--r--extras/keymap/keymaps/acer-travelmate_62921
-rw-r--r--extras/keymap/keymaps/benq-joybook_r221
-rw-r--r--extras/keymap/keymaps/compal-hel80i1
-rw-r--r--extras/keymap/keymaps/via-K8N8001
7 files changed, 12 insertions, 13 deletions
diff --git a/extras/keymap/95-keymap.rules b/extras/keymap/95-keymap.rules
index 6824530744..77088a584b 100644
--- a/extras/keymap/95-keymap.rules
+++ b/extras/keymap/95-keymap.rules
@@ -1,3 +1,10 @@
+# Set model specific hotkey keycodes.
+#
+# Key map overrides can be specified by either giving scancode/keyname pairs
+# directly as keymap arguments (if there are just one or two to change), or as
+# a file name (in /lib/udev/keymaps), which has to contain scancode/keyname
+# pairs.
+
ACTION!="add", GOTO="keyboard_end"
SUBSYSTEM!="input", GOTO="keyboard_end"
KERNEL!="event*", GOTO="keyboard_end"
@@ -42,12 +49,12 @@ ENV{DMI_VENDOR}=="Hewlett-Packard*", ATTR{[dmi/id]product_name}=="*2510p*|*2530p
ENV{DMI_VENDOR}=="Hewlett-Packard*", ATTR{[dmi/id]product_name}=="*[tT][xX]2*", RUN+="keymap $name hewlett-packard-tx2"
ENV{DMI_VENDOR}=="Acer*", RUN+="keymap $name acer"
-ENV{DMI_VENDOR}=="Acer*", ATTR{[dmi/id]product_name}=="Extensa*", ATTR{[dmi/id]product_name}=="*5210*|*5220*|*5610*|*5620*|*5720*", RUN+="keymap $name acer-extensa_5xxx"
+ENV{DMI_VENDOR}=="Acer*", ATTR{[dmi/id]product_name}=="Extensa*", ATTR{[dmi/id]product_name}=="*5210*|*5220*|*5610*|*5620*|*5720*", RUN+="keymap $name 0xEE screenlock"
ENV{DMI_VENDOR}=="Acer*", ATTR{[dmi/id]product_name}=="TravelMate*C300*", RUN+="keymap $name acer-travelmate_c300"
-ENV{DMI_VENDOR}=="Acer*", ATTR{[dmi/id]product_name}=="TravelMate*6292*", RUN+="keymap $name acer-travelmate_6292"
+ENV{DMI_VENDOR}=="Acer*", ATTR{[dmi/id]product_name}=="TravelMate*6292*", RUN+="keymap $name 0xD9 bluetooth"
ENV{DMI_VENDOR}=="Acer*", ATTR{[dmi/id]product_name}=="Aspire 5920G", RUN+="keymap $name acer-aspire_5920g"
-ENV{DMI_VENDOR}=="*BenQ*", ATTR{[dmi/id]product_name}=="*Joybook R22*", RUN+="keymap $name benq-joybook_r22"
+ENV{DMI_VENDOR}=="*BenQ*", ATTR{[dmi/id]product_name}=="*Joybook R22*", RUN+="keymap $name 0x6E wlan"
ENV{DMI_VENDOR}=="FUJITSU*", ATTR{[dmi/id]product_name}=="*AMILO Pro V3205*", RUN+="keymap $name fujitsu-amilo_pro_v3205"
ENV{DMI_VENDOR}=="FUJITSU*", ATTR{[dmi/id]product_name}=="*AMILO Pa 2548*", RUN+="keymap $name fujitsu-amilo_pa_2548"
@@ -76,12 +83,12 @@ ENV{DMI_VENDOR}=="OQO Inc.*", ATTR{[dmi/id]product_name}=="OQO Model 2*", RUN+="
ENV{DMI_VENDOR}=="ASUS", RUN+="keymap $name asus"
-ENV{DMI_VENDOR}=="VIA", ATTR{[dmi/id]product_name}=="K8N800", ATTR{[dmi/id]product_version}=="VT8204B", RUN+="keymap $name via-K8N800"
+ENV{DMI_VENDOR}=="VIA", ATTR{[dmi/id]product_name}=="K8N800", ATTR{[dmi/id]product_version}=="VT8204B", RUN+="keymap $name 0x81 prog1"
ENV{DMI_VENDOR}=="Zepto", ATTR{[dmi/id]product_name}=="Znote", ATTR{[dmi/id]product_version}=="62*|63*", RUN+="keymap $name zepto-znote"
ENV{DMI_VENDOR}=="Everex", ATTR{[dmi/id]product_name}=="XT5000*", RUN+="keymap $name everex-xt5000"
-ENV{DMI_COMPAL}=="COMPAL", ATTR{[dmi/id]product_name}=="HEL80I", RUN+="keymap $name compal-hel80i"
+ENV{DMI_COMPAL}=="COMPAL", ATTR{[dmi/id]product_name}=="HEL80I", RUN+="keymap $name 0x84 wlan"
LABEL="keyboard_end"
diff --git a/extras/keymap/Makefile.am b/extras/keymap/Makefile.am
index 5c74575c67..8d6961a839 100644
--- a/extras/keymap/Makefile.am
+++ b/extras/keymap/Makefile.am
@@ -6,11 +6,8 @@ udevkeymapdir = $(libexecdir)/keymaps
udevkeymap_DATA = \
keymaps/acer \
keymaps/acer-aspire_5920g \
- keymaps/acer-extensa_5xxx \
- keymaps/acer-travelmate_6292 \
keymaps/acer-travelmate_c300 \
keymaps/asus \
- keymaps/benq-joybook_r22 \
keymaps/compaq-e_evo \
keymaps/dell \
keymaps/fujitsu-amilo_pa_2548 \
diff --git a/extras/keymap/keymaps/acer-extensa_5xxx b/extras/keymap/keymaps/acer-extensa_5xxx
deleted file mode 100644
index 80f981b0d1..0000000000
--- a/extras/keymap/keymaps/acer-extensa_5xxx
+++ /dev/null
@@ -1 +0,0 @@
-0xEE screenlock # Windows Lock function
diff --git a/extras/keymap/keymaps/acer-travelmate_6292 b/extras/keymap/keymaps/acer-travelmate_6292
deleted file mode 100644
index e6c0845829..0000000000
--- a/extras/keymap/keymaps/acer-travelmate_6292
+++ /dev/null
@@ -1 +0,0 @@
-0xD9 bluetooth # (toggle) on-to-off
diff --git a/extras/keymap/keymaps/benq-joybook_r22 b/extras/keymap/keymaps/benq-joybook_r22
deleted file mode 100644
index d9c78bfa3e..0000000000
--- a/extras/keymap/keymaps/benq-joybook_r22
+++ /dev/null
@@ -1 +0,0 @@
-0x6E wlan # Fn+F1
diff --git a/extras/keymap/keymaps/compal-hel80i b/extras/keymap/keymaps/compal-hel80i
deleted file mode 100644
index 7082364a5f..0000000000
--- a/extras/keymap/keymaps/compal-hel80i
+++ /dev/null
@@ -1 +0,0 @@
-0x84 wlan
diff --git a/extras/keymap/keymaps/via-K8N800 b/extras/keymap/keymaps/via-K8N800
deleted file mode 100644
index 64e2781840..0000000000
--- a/extras/keymap/keymaps/via-K8N800
+++ /dev/null
@@ -1 +0,0 @@
-0x81 prog1 # Application launch