Re: Access Gembird USB device as non-priviledged user
On Saturday 31 October 2015 12:12:53 Rainer Dorsch wrote:
> Hi,
>
> is there a good way to access a Gembird USB device as non-root user?
>
> I have
>
> rd@blackbox:~$ lsusb -v -d 04b4:fd13
>
> Bus 004 Device 002: ID 04b4:fd13 Cypress Semiconductor Corp. Programmable
> power socket
> Couldn't open device, some information will be missing
> Device Descriptor:
> bLength 18
> bDescriptorType 1
> bcdUSB 1.10
> bDeviceClass 0 (Defined at Interface level)
> bDeviceSubClass 0
> bDeviceProtocol 0
> bMaxPacketSize0 8
> idVendor 0x04b4 Cypress Semiconductor Corp.
> idProduct 0xfd13 Programmable power socket
> bcdDevice 1.01
> iManufacturer 1
> iProduct 2
> iSerial 0
> bNumConfigurations 1
> Configuration Descriptor:
> bLength 9
> bDescriptorType 2
> wTotalLength 27
> bNumInterfaces 1
> bConfigurationValue 1
> iConfiguration 0
> bmAttributes 0x80
> (Bus Powered)
> MaxPower 150mA
> Interface Descriptor:
> bLength 9
> bDescriptorType 4
> bInterfaceNumber 0
> bAlternateSetting 0
> bNumEndpoints 0
> bInterfaceClass 3 Human Interface Device
> bInterfaceSubClass 0 No Subclass
> bInterfaceProtocol 0 None
> iInterface 0
> HID Device Descriptor:
> bLength 9
> bDescriptorType 33
> bcdHID 1.10
> bCountryCode 0 Not supported
> bNumDescriptors 1
> bDescriptorType 34 Report
> wDescriptorLength 217
> Report Descriptors:
> ** UNAVAILABLE **
> rd@blackbox:~$
>
> and tried
>
> rd@blackbox:~$ cat /etc/udev/rules.d/z61_sispmctl.rules
> SUBSYSTEM=="usb", SYSFS{idVendor}=="0x04b4", SYSFS{idProduct}=="0xfd13",
> ACTION=="add", GROUP="sispmctl", MODE="0664"
> rd@blackbox:~$
Changeing this to
blackbox:~# cat /etc/udev/rules.d/z61_sispmctl.rules
SUBSYSTEM=="usb", ATTRS{idVendor}=="04b4", ATTRS{idProduct}=="fd13",
GROUP="sispmctl", MODE="0664"
blackbox:~#
fixed the problem.
I am wondering if sispmctl should include an udev rule in the Debian package?
Thanks,
Rainer
--
Rainer Dorsch
http://bokomoko.de/
Reply to: