summaryrefslogtreecommitdiff
path: root/rules/60-keyboard.rules
diff options
context:
space:
mode:
Diffstat (limited to 'rules/60-keyboard.rules')
-rw-r--r--rules/60-keyboard.rules4
1 files changed, 4 insertions, 0 deletions
diff --git a/rules/60-keyboard.rules b/rules/60-keyboard.rules
index a7d679ca92..1f77f5d67e 100644
--- a/rules/60-keyboard.rules
+++ b/rules/60-keyboard.rules
@@ -8,6 +8,10 @@ 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"
+
# lookup entries matching the machine's DMI data
IMPORT{builtin}="hwdb 'keyboard:name:$attr{name}:$attr{[dmi/id]modalias}'", \
RUN{builtin}+="keyboard", GOTO="keyboard_end"