From 9193c7df9ae55fd2d22ccb32473ed65bdec39f8b Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Sat, 18 Jul 2009 15:02:25 +0200 Subject: [PATCH] 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. --- extras/keymap/95-keymap.rules | 17 ++++++++++++----- extras/keymap/Makefile.am | 3 --- extras/keymap/keymaps/acer-extensa_5xxx | 1 - extras/keymap/keymaps/acer-travelmate_6292 | 1 - extras/keymap/keymaps/benq-joybook_r22 | 1 - extras/keymap/keymaps/compal-hel80i | 1 - extras/keymap/keymaps/via-K8N800 | 1 - 7 files changed, 12 insertions(+), 13 deletions(-) delete mode 100644 extras/keymap/keymaps/acer-extensa_5xxx delete mode 100644 extras/keymap/keymaps/acer-travelmate_6292 delete mode 100644 extras/keymap/keymaps/benq-joybook_r22 delete mode 100644 extras/keymap/keymaps/compal-hel80i delete mode 100644 extras/keymap/keymaps/via-K8N800 diff --git a/extras/keymap/95-keymap.rules b/extras/keymap/95-keymap.rules index 68245307..77088a58 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 5c74575c..8d6961a8 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 80f981b0..00000000 --- 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 e6c08458..00000000 --- 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 d9c78bfa..00000000 --- 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 7082364a..00000000 --- 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 64e27818..00000000 --- a/extras/keymap/keymaps/via-K8N800 +++ /dev/null @@ -1 +0,0 @@ -0x81 prog1 # Application launch -- 2.39.5