aboutsummaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2015-03-16 12:00:46 +0100
committerAnthony G. Basile <blueness@gentoo.org>2015-03-18 16:03:08 -0400
commitbd4a68b3fbce1e9dd439f885c3afee92b3929334 (patch)
tree858227e4abae98494b6cc49bb6e8602d335ae0e4 /rules
parenthwdb: update (diff)
downloadeudev-bd4a68b3fbce1e9dd439f885c3afee92b3929334.tar.gz
eudev-bd4a68b3fbce1e9dd439f885c3afee92b3929334.tar.bz2
eudev-bd4a68b3fbce1e9dd439f885c3afee92b3929334.zip
hwdb: convert to generic input-modalias matches
There is no reason to match on usb-modaliases, if we can use the input-modalias to achieve the same. This commit changes the keyboard-lookups to not be restricted to USB, but pass all modaliases to the hwdb. Furthermore, we convert all usb:* matches to input:* matches, thus getting rid of any ambiguity if multiple usb devices are chained (or a bluetooth device / etc. is on top). Note that legacy keyboard:usb:* matches are still supported, but deprecated. If possible, please use keyboard:input:* matches instead. This is a required step to make other input devices work with 60-keyboard.hwdb. Other bus-types are often chained on usb and we want to avoid any ambiguity here if we incorrectly match on a USB hub. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'rules')
-rw-r--r--rules/60-keyboard.rules4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules/60-keyboard.rules b/rules/60-keyboard.rules
index 22f71e779..03343a481 100644
--- a/rules/60-keyboard.rules
+++ b/rules/60-keyboard.rules
@@ -7,8 +7,8 @@ ENV{ID_INPUT_KEY}=="", GOTO="keyboard_end"
# ignore all bluetooth devices
SUBSYSTEMS=="bluetooth", GOTO="keyboard_end"
-# import key mapping for USB device
-SUBSYSTEMS=="usb", IMPORT{builtin}="hwdb --subsystem=usb --lookup-prefix=keyboard:", \
+# import key mapping for input device
+IMPORT{builtin}="hwdb --lookup-prefix=keyboard:", \
RUN{builtin}+="keyboard", GOTO="keyboard_end"
# import key mapping for AT keyboard from DMI data