Chris (and everyone else)

Some time ago you asked for some help investigating the usb device 
permissions on OpenSuse.  I didn't see if you had any responses to that, 
so I don't know if the following information will be any use...

Using barry 0.15 x86_64 from OBS, btool and friends reply 
Usb::Error caught: (-1, error sending control message: Operation not 
permitted): Probe: GetConfiguration failed

It seems that udev has a rule in 
/etc/udev/rules.d/50-udev-default-rules
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", 
NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0644"

which sets the usb device to being read-only, and overrides the settings 
provided in /etc/udev/rules.d/10-blackberry.rules

The workaround I have implemented is to move the blackberry rules file to 
later in the sequence, and changing the rules slightly to

[/etc/udev/rules.d/65-blackberry.rules]
BUS=="usb", ENV{DEVTYPE}=="usb_device", ACTION=="add", SYSFS{idVendor}=="0fca", 
SYSFS{idProduct}=="0004", MODE="0660", GROUP="users", SYMLINK+="bb-%k", 
RUN="/usr/sbin/bcharge -p %p"

Opensuse doesn't provide a "plugdev" group, so I'm using "users" here for 
portability.  In fact, in my own setup I've found the serial number of my 
blackberry:

# lsusb
...
Bus 005 Device 023: ID 0fca:0004 Research In Motion, Ltd.
...
# udevinfo -a -n /dev/bus/usb/005/023 | grep 'ATTR{serial}'

and set up the rule as
... ATTR{serial}=="abcde", OWNER="myusername", MODE="0600" ...


I'd prefer to have ConsoleKit configured so that this just works, but I 
haven't the foggiest about how to do that.  Opensuse does use ConsoleKit,
but doesn't seem to pay attention to the file 
/etc/security/console.perms.d/10-blackberry.perms

Hoping this is useful or interesting to someone.
Magnus Lewis-Smith

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Barry-devel mailing list
Barry-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/barry-devel

Reply via email to