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