diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2009-10-08 21:43:38 +0200 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2009-10-08 21:43:38 +0200 |
commit | 5fa1d7942149d73f5dee8940834d6df8c7977266 (patch) | |
tree | d2ad1001b79f1e7cb4d931b1bc6a56f410d180ce /extras/keymap/95-keymap.rules | |
parent | 19711e1933003a46456f477cb8f1cac77c54bcb0 (diff) |
keymap: Add Logitech Wave USB
This introduces a new rules section for USB keyboards, too.
https://launchpad.net/bugs/215035
Diffstat (limited to 'extras/keymap/95-keymap.rules')
-rw-r--r-- | extras/keymap/95-keymap.rules | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/extras/keymap/95-keymap.rules b/extras/keymap/95-keymap.rules index c63ae4a857..967bb4bed1 100644 --- a/extras/keymap/95-keymap.rules +++ b/extras/keymap/95-keymap.rules @@ -9,14 +9,30 @@ ACTION!="add", GOTO="keyboard_end" SUBSYSTEM!="input", GOTO="keyboard_end" KERNEL!="event*", GOTO="keyboard_end" -ENV{DMI_VENDOR}="$attr{[dmi/id]sys_vendor}" -ENV{DMI_VENDOR}=="", GOTO="keyboard_end" +SUBSYSTEMS=="usb", ENV{ID_MODEL}=="", IMPORT{program}="usb_id --export %p", GOTO="keyboard_usbcheck" +GOTO="keyboard_modulecheck" + +# +# The following are external USB keyboards +# + +LABEL="keyboard_usbcheck" + +ENV{ID_VENDOR}=="Logitech*", ATTRS{name}=="Logitech USB Multimedia Keyboard", RUN+="keymap $name logitech-wave" + + +GOTO="keyboard_end" # # The following are exposed as separate input devices with low key codes, thus # we need to check their input device product name # +LABEL="keyboard_modulecheck" + +ENV{DMI_VENDOR}="$attr{[dmi/id]sys_vendor}" +ENV{DMI_VENDOR}=="", GOTO="keyboard_end" + ENV{DMI_VENDOR}=="IBM*", KERNELS=="input*", ATTRS{name}=="ThinkPad Extra Buttons", RUN+="keymap $name module-ibm" ENV{DMI_VENDOR}=="LENOVO*", KERNELS=="input*", ATTRS{name}=="ThinkPad Extra Buttons", RUN+="keymap $name module-lenovo" ENV{DMI_VENDOR}=="ASUS*", KERNELS=="input*", ATTRS{name}=="Asus Extra Buttons", ATTR{[dmi/id]product_name}=="W3J", RUN+="keymap $name module-asus-w3j" |