From: <iku...@ya...> - 2009-05-19 16:37:34
|
Just a guess, but in my custom rules, I use the form ATTRS{idVendor}=="0FC5", ATTRS{idProduct}=="B080", instead of your ATTRS{idVendor}=="0x0FC5", ATTRS{idProduct}=="0xB080". No idea if that matters. For further debugging information, try “udevmonitor –environment” and looking at the output to /var/log/messages after running “udevcontrol log_priority=debug” from the command line (as root). Once you've launched these commands, you'll need to exercise the scope – turn it on, attempt access, etc. You can also check the permissions of the /dev/bus/usb/ entry... -Sarah --- On Sun, 5/17/09, ed <ene...@co...> wrote: From: ed <ene...@co...> Subject: [Pyusb-users] Permissions problem To: pyu...@li... Date: Sunday, May 17, 2009, 3:14 PM I have my program working OK but need to run as sudo. So now I am trying to get the program to run in user space but can't seem to get it to work. I am using Ubuntu 8.10 Intrepid This is what I have done / tried so far. 1. Created a group called delcomusb $ sudo groupadd -g 1001 delcomusb 2 Created a file in /etc/udev/rules.d called 99-delcomusb.rules and placed the following. I tried both. # Delcom USB Device SUBSYSTEM=="usb_device", ACTION=="add", ATTRS{idVendor}=="0x0FC5", ATTRS{idProduct}=="0xB080", GROUP="delcomusb", MODE="0660" #BUS=="usb", SYSFS{idVendor}=="0x0fC5", SYSFS{idProduct}=="0xB080", MODE="0666" 3. Restarted udev $ sudo /etc/init.d/udev restart 4. Added user to have access to group: delcomusb System -> Administartor -> Users and Groups unlock user (and then entered password) select user ed click on "Manage Groups" click on delcomusb check ed and root for Group Member But still get the error when I try and run ./DelcomUSBDevice.py self.handle.claimInterface(self.intf) # Interface 0 usb.USBError: could not claim interface 0: Operation not permitted But everything works fine with sudo. Is there some step I missed? Thanks ed ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Pyusb-users mailing list Pyu...@li... https://lists.sourceforge.net/lists/listinfo/pyusb-users |