From 568d800b784223eb37a5cd75e66dc03510fae638 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Fri, 20 Mar 2015 10:44:21 +0100 Subject: 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! --- rules/60-keyboard.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3-54-g00ecf