diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2015-03-20 10:44:21 +0100 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2015-03-20 10:45:42 +0100 |
commit | 568d800b784223eb37a5cd75e66dc03510fae638 (patch) | |
tree | aa7255c708ab9d6cab84f3ec9709fc4d85d31ddd /rules/60-keyboard.rules | |
parent | fa3f5fd2d3aebc468c4df216eca18a289aaa7e16 (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!
Diffstat (limited to 'rules/60-keyboard.rules')
-rw-r--r-- | rules/60-keyboard.rules | 2 |
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" |