60-evdev.rules 990 B

12345678910111213141516171819202122232425
  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. IMPORT{builtin}="keyboard", GOTO="evdev_end"
  7. # AT keyboard matching by the machine's DMI data
  8. DRIVERS=="atkbd", \
  9. IMPORT{builtin}="hwdb 'evdev:atkbd:$attr{[dmi/id]modalias}'", \
  10. IMPORT{builtin}="keyboard", GOTO="evdev_end"
  11. # device matching the input device name + properties + the machine's DMI data
  12. KERNELS=="input*", \
  13. IMPORT{builtin}="hwdb 'evdev:name:$attr{name}:phys:$attr{phys}:ev:$attr{capabilities/ev}:$attr{[dmi/id]modalias}'", \
  14. IMPORT{builtin}="keyboard", GOTO="evdev_end"
  15. # device matching the input device name and the machine's DMI data
  16. KERNELS=="input*", \
  17. IMPORT{builtin}="hwdb 'evdev:name:$attr{name}:$attr{[dmi/id]modalias}'", \
  18. IMPORT{builtin}="keyboard", GOTO="evdev_end"
  19. LABEL="evdev_end"