]>
Commit | Line | Data |
---|---|---|
9d7d42bc KS |
1 | # do not edit this file, it will be overwritten on update |
2 | ||
49804365 | 3 | ACTION=="remove", GOTO="keyboard_end" |
9d7d42bc KS |
4 | KERNEL!="event*", GOTO="keyboard_end" |
5 | ENV{ID_INPUT_KEY}=="", GOTO="keyboard_end" | |
6 | ||
7 | # ignore all bluetooth devices | |
8 | SUBSYSTEMS=="bluetooth", GOTO="keyboard_end" | |
9 | ||
10 | # import key mapping for USB device | |
11 | SUBSYSTEMS=="usb", IMPORT{builtin}="hwdb --subsystem=usb --lookup-prefix=keyboard:", \ | |
884c8681 | 12 | RUN{builtin}+="keyboard", GOTO="keyboard_end" |
9d7d42bc KS |
13 | |
14 | # import key mapping for AT keyboard from DMI data | |
15 | DRIVERS=="atkbd", IMPORT{builtin}="hwdb 'keyboard:$attr{[dmi/id]modalias}'", \ | |
884c8681 | 16 | RUN{builtin}+="keyboard", GOTO="keyboard_end" |
9d7d42bc KS |
17 | |
18 | # import key mapping for platform input device | |
19 | KERNELS=="input*", IMPORT{builtin}="hwdb 'keyboard:name:$attr{name}:$attr{[dmi/id]modalias}'", \ | |
884c8681 | 20 | RUN{builtin}+="keyboard", GOTO="keyboard_end" |
9d7d42bc KS |
21 | |
22 | LABEL="keyboard_end" |