summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2015-03-16 12:19:09 +0100
committerDavid Herrmann <dh.herrmann@gmail.com>2015-03-16 12:19:09 +0100
commitba76ee29bc02879fb42c048132af8889b00220d5 (patch)
tree26d37f5603f79ff9d3f8a88c0caef74232e4412a /rules
parenta9c30bca57e4ded8c416c9e319fd313ad346372b (diff)
hwdb: merge atkbd into platform matches
Currently, we always run hwdb 'keyboard:name:$attr{name}:$attr{[dmi/id]modalias}' as last step to match keyboards. Therefore, if nothing else matched so far, we still try the device-name+dmi combination. However, we have a special atkbd rule which is only run for atkbd as: hwdb 'keyboard:$attr{[dmi/id]modalias}' This is redundant, as we already pass the same information to hwdb in the last fallback step. This patch converts the hwdb "keyboard:dmi:*" matches to "keyboard:name:*:dmi:*" matches and drops the redundant rule.
Diffstat (limited to 'rules')
-rw-r--r--rules/60-keyboard.rules6
1 files changed, 1 insertions, 5 deletions
diff --git a/rules/60-keyboard.rules b/rules/60-keyboard.rules
index 1265b0cfc5..71cef74c5c 100644
--- a/rules/60-keyboard.rules
+++ b/rules/60-keyboard.rules
@@ -8,11 +8,7 @@ ENV{ID_INPUT_KEY}=="", GOTO="keyboard_end"
IMPORT{builtin}="hwdb --lookup-prefix=keyboard:", \
RUN{builtin}+="keyboard", GOTO="keyboard_end"
-# import key mapping for AT keyboard from DMI data
-DRIVERS=="atkbd", IMPORT{builtin}="hwdb 'keyboard:$attr{[dmi/id]modalias}'", \
- RUN{builtin}+="keyboard", GOTO="keyboard_end"
-
-# import key mapping for platform input device
+# import key mapping for platform device
IMPORT{builtin}="hwdb 'keyboard:name:$attr{name}:$attr{[dmi/id]modalias}'", \
RUN{builtin}+="keyboard", GOTO="keyboard_end"