2015-03-19 12:19:58 +08:00
|
|
|
# do not edit this file, it will be overwritten on update
|
|
|
|
|
|
|
|
ACTION=="remove", GOTO="evdev_end"
|
|
|
|
KERNEL!="event*", GOTO="evdev_end"
|
|
|
|
|
|
|
|
# skip later rules when we find something for this input device
|
|
|
|
IMPORT{builtin}="hwdb --subsystem=input --lookup-prefix=evdev:", \
|
2020-02-10 12:32:48 +08:00
|
|
|
IMPORT{builtin}="keyboard", GOTO="evdev_end"
|
2015-03-19 12:19:58 +08:00
|
|
|
|
|
|
|
# AT keyboard matching by the machine's DMI data
|
2017-06-12 19:43:05 +08:00
|
|
|
DRIVERS=="atkbd", \
|
2015-03-19 12:19:58 +08:00
|
|
|
IMPORT{builtin}="hwdb 'evdev:atkbd:$attr{[dmi/id]modalias}'", \
|
2020-02-10 12:32:48 +08:00
|
|
|
IMPORT{builtin}="keyboard", GOTO="evdev_end"
|
2015-03-19 12:19:58 +08:00
|
|
|
|
2017-02-12 19:33:22 +08:00
|
|
|
# device matching the input device name + properties + the machine's DMI data
|
2020-02-10 12:32:48 +08:00
|
|
|
KERNELS=="input*", \
|
|
|
|
IMPORT{builtin}="hwdb 'evdev:name:$attr{name}:phys:$attr{phys}:ev:$attr{capabilities/ev}:$attr{[dmi/id]modalias}'", \
|
|
|
|
IMPORT{builtin}="keyboard", GOTO="evdev_end"
|
2017-02-12 19:33:22 +08:00
|
|
|
|
2015-03-19 12:19:58 +08:00
|
|
|
# device matching the input device name and the machine's DMI data
|
2020-02-10 12:32:48 +08:00
|
|
|
KERNELS=="input*", \
|
|
|
|
IMPORT{builtin}="hwdb 'evdev:name:$attr{name}:$attr{[dmi/id]modalias}'", \
|
|
|
|
IMPORT{builtin}="keyboard", GOTO="evdev_end"
|
2015-03-19 12:19:58 +08:00
|
|
|
|
|
|
|
LABEL="evdev_end"
|