OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.7 KiB

  1. ########################################################################
  2. #
  3. # Description : 61-persistent-input.rules
  4. #
  5. # Authors : Based on Open Suse Udev Rules
  6. # kay.sievers@suse.de and hare@suse.de
  7. #
  8. # Adapted to : Jim Gifford
  9. # LFS
  10. #
  11. # Version : 00.01
  12. #
  13. # Notes :
  14. #
  15. ########################################################################
  16. ACTION!="add", GOTO="persistent_input_end"
  17. SUBSYSTEM!="input", GOTO="persistent_input_end"
  18. KERNEL=="input[0-9]*", GOTO="persistent_input_end"
  19. # usb devices
  20. BUS=="usb", IMPORT{program}="usb_id -x"
  21. BUS=="usb", ATTRS{bInterfaceClass}=="03", ATTRS{bInterfaceProtocol}=="01", ENV{ID_CLASS}="kbd"
  22. BUS=="usb", ATTRS{bInterfaceClass}=="03", ATTRS{bInterfaceProtocol}=="02", ENV{ID_CLASS}="mouse"
  23. # other devices
  24. DRIVERS=="pcspkr", ENV{ID_CLASS}="spkr"
  25. DRIVERS=="atkbd", ENV{ID_CLASS}="kbd"
  26. DRIVERS=="psmouse", ENV{ID_CLASS}="mouse"
  27. ATTRS{name}=="*dvb*|*DVB*|* IR *", ENV{ID_CLASS}="ir"
  28. ATTRS{modalias}=="input:*-*a[068],*|input:*-*a*,[68],*m*", ATTRS{modalias}!="input:*-*k*14A,*r*", ENV{ID_CLASS}="joystick"
  29. ENV{ID_SERIAL}=="", ENV{ID_SERIAL}="noserial"
  30. # by-id links
  31. KERNEL=="mouse*", ENV{ID_BUS}=="?*", ENV{ID_SERIAL}=="?*", ENV{ID_CLASS}=="?*", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-$env{ID_CLASS}"
  32. KERNEL=="event*", ENV{ID_BUS}=="?*", ENV{ID_SERIAL}=="?*", ENV{ID_CLASS}=="?*", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-event-$env{ID_CLASS}"
  33. # by-path
  34. IMPORT{program}="path_id %p"
  35. ENV{ID_PATH}=="?*", KERNEL=="mouse*", SYMLINK+="input/by-path/$env{ID_PATH}-$env{ID_CLASS}"
  36. ENV{ID_PATH}=="?*", KERNEL=="event*", SYMLINK+="input/by-path/$env{ID_PATH}-$env{ID_CLASS}"
  37. LABEL="persistent_input_end"