99-hid.rules 1.5 KB

1234567891011121314151617181920212223242526272829303132
  1. # This is a sample udev file for HIDAPI devices which changes the permissions
  2. # to 0666 (world readable/writable) for a specified device on Linux systems.
  3. # If you are using the libusb implementation of hidapi (hid-libusb.c), then
  4. # use something like the following line, substituting the VID and PID with
  5. # those of your device. Note that for kernels before 2.6.24, you will need
  6. # to substitute "usb" with "usb_device". It shouldn't hurt to use two lines
  7. # (one each way) for compatibility with older systems.
  8. # HIDAPI/libusb
  9. SUBSYSTEM=="usb", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="003f", MODE="0666"
  10. # If you are using the hidraw implementation, then do something like the
  11. # following, substituting the VID and PID with your device. Busnum 1 is USB.
  12. # HIDAPI/hidraw
  13. KERNEL=="hidraw*", ATTRS{busnum}=="1", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="003f", MODE="0666"
  14. # Once done, optionally rename this file for your device, and drop it into
  15. # /etc/udev/rules.d and unplug and re-plug your device. This is all that is
  16. # necessary to see the new permissions. Udev does not have to be restarted.
  17. # Note that the hexadecimal values for VID and PID are case sensitive and
  18. # must be lower case.
  19. # If you think permissions of 0666 are too loose, then see:
  20. # http://reactivated.net/writing_udev_rules.html for more information on finer
  21. # grained permission setting. For example, it might be sufficient to just
  22. # set the group or user owner for specific devices (for example the plugdev
  23. # group on some systems).