Sunday, April 1, 2012

set permission of usb device (HID)

in /etc/udev/rules.d/
add a rule file

SUBSYSTEM=="usb_device", ACTION=="add", SYSFS{idVendor}=="1962", \
MODE="660", GROUP="ff"

or more general

KERNEL=="hidraw*", MODE="666"

on the raspberry pi, this is confirmed to work (remember to end the line with a carriage return)

ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05dc", MODE="0660", GROUP="pi"

No comments:

Post a Comment