summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2015-03-20 10:44:21 +0100
committerAnthony G. Basile <blueness@gentoo.org>2015-04-12 11:18:11 -0400
commitd8e2e4c3a4d022b2a9404d8230cfd280df8c3f3c (patch)
tree54636a83ed5edf8e8535b2ff1dcfce735e77a9cc /rules
parentcb26a75abd1c125bea46d86d9d427e92dbd52b32 (diff)
rules: fix input-name for keyboard rules
We match on the evdev node, but only the parent has a "name" attribute. Use $attr{device/name} to access it. This is borked since 2013, I wonder how that ever worked? Maybe this will suddenly fix all the DMI-based key detections. Thanks to Peter Hutterer for catching this! Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'rules')
-rw-r--r--rules/60-keyboard.rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/60-keyboard.rules b/rules/60-keyboard.rules
index fcb948ac02..af3edb5f58 100644
--- a/rules/60-keyboard.rules
+++ b/rules/60-keyboard.rules
@@ -13,7 +13,7 @@ DRIVERS=="atkbd", IMPORT{builtin}="hwdb 'keyboard:atkbd:$attr{[dmi/id]modalias}'
RUN{builtin}+="keyboard", GOTO="keyboard_end"
# device matching the input device name and the machine's DMI data
-IMPORT{builtin}="hwdb 'keyboard:name:$attr{name}:$attr{[dmi/id]modalias}'", \
+IMPORT{builtin}="hwdb 'keyboard:name:$attr{device/name}:$attr{[dmi/id]modalias}'", \
RUN{builtin}+="keyboard", GOTO="keyboard_end"
LABEL="keyboard_end"