Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #160018

Re: Access Gembird USB device as non-priviledged user

From Rainer Dorsch <ml@bokomoko.de>
Newsgroups linux.debian.user
Subject Re: Access Gembird USB device as non-priviledged user
Date 2015-10-31 13:10 +0100
Message-ID <qpD8S-2EB-1@gated-at.bofh.it> (permalink)
References <qpCPv-2iM-5@gated-at.bofh.it>
Organization @home

Show all headers | View raw


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/

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Access Gembird USB device as non-priviledged user Rainer Dorsch <ml@bokomoko.de> - 2015-10-31 12:50 +0100
  Re: Access Gembird USB device as non-priviledged user Rainer Dorsch <ml@bokomoko.de> - 2015-10-31 13:10 +0100
    Re: Access Gembird USB device as non-priviledged user Chris Bannister <cbannister@slingshot.co.nz> - 2015-10-31 14:40 +0100
      Re: Access Gembird USB device as non-priviledged user Rainer Dorsch <ml@bokomoko.de> - 2015-11-06 22:40 +0100

csiph-web