Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #160016 > unrolled thread
| Started by | Rainer Dorsch <ml@bokomoko.de> |
|---|---|
| First post | 2015-10-31 12:50 +0100 |
| Last post | 2015-11-06 22:40 +0100 |
| Articles | 4 — 2 participants |
Back to article view | Back to linux.debian.user
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
| From | Rainer Dorsch <ml@bokomoko.de> |
|---|---|
| Date | 2015-10-31 12:50 +0100 |
| Subject | Access Gembird USB device as non-priviledged user |
| Message-ID | <qpCPv-2iM-5@gated-at.bofh.it> |
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:~$
but this does not seem to have any effect
rd@blackbox:~$ ls -l /dev/bus/usb/004/002
crw-rw-r-- 1 root root 189, 385 Okt 31 12:02 /dev/bus/usb/004/002
rd@blackbox:~$
Is there something I am doing wrong or is there a better way to do this?
Thanks
Rainer
--
Rainer Dorsch
http://bokomoko.de/
[toc] | [next] | [standalone]
| From | Rainer Dorsch <ml@bokomoko.de> |
|---|---|
| Date | 2015-10-31 13:10 +0100 |
| Message-ID | <qpD8S-2EB-1@gated-at.bofh.it> |
| In reply to | #160016 |
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/
[toc] | [prev] | [next] | [standalone]
| From | Chris Bannister <cbannister@slingshot.co.nz> |
|---|---|
| Date | 2015-10-31 14:40 +0100 |
| Message-ID | <qpExX-3o0-11@gated-at.bofh.it> |
| In reply to | #160018 |
On Sat, Oct 31, 2015 at 01:08:24PM +0100, Rainer Dorsch wrote:
>
> 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?
Why not submit it as a bug report, explaining what it solves?
--
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the
oppressing." --- Malcolm X
[toc] | [prev] | [next] | [standalone]
| From | Rainer Dorsch <ml@bokomoko.de> |
|---|---|
| Date | 2015-11-06 22:40 +0100 |
| Message-ID | <qrWTN-1C2-29@gated-at.bofh.it> |
| In reply to | #160023 |
[Multipart message — attachments visible in raw view] — view raw
On Sunday 01 November 2015 02:34:38 Chris Bannister wrote:
> On Sat, Oct 31, 2015 at 01:08:24PM +0100, Rainer Dorsch wrote:
> > 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?
> Why not submit it as a bug report, explaining what it solves?
Done:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=804265
Rainer
--
Rainer Dorsch
http://bokomoko.de/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web