60-evdev.rules 738 B

12345678910111213141516171819
  1. # do not edit this file, it will be overwritten on update
  2. ACTION=="remove", GOTO="evdev_end"
  3. KERNEL!="event*", GOTO="evdev_end"
  4. # skip later rules when we find something for this input device
  5. IMPORT{builtin}="hwdb --subsystem=input --lookup-prefix=evdev:", \
  6. RUN{builtin}+="keyboard", GOTO="evdev_end"
  7. # AT keyboard matching by the machine's DMI data
  8. ENV{ID_INPUT_KEY}=="?*", DRIVERS=="atkbd", \
  9. IMPORT{builtin}="hwdb 'evdev:atkbd:$attr{[dmi/id]modalias}'", \
  10. RUN{builtin}+="keyboard", GOTO="evdev_end"
  11. # device matching the input device name and the machine's DMI data
  12. KERNELS=="input*", IMPORT{builtin}="hwdb 'evdev:name:$attr{name}:$attr{[dmi/id]modalias}'", \
  13. RUN{builtin}+="keyboard", GOTO="evdev_end"
  14. LABEL="evdev_end"