[PLUG] Permissions setting for USB program

2011-09-20 Thread Richard C. Steffens
Have a USB foot pedal for use in transcribing. I also have a foot pedal utility program for using the foot pedal to control various programs. When I run the program for the first time after the foot pedal is plugged in to a USB port I get a permissions error message:

Re: [PLUG] Permissions setting for USB program

2011-09-20 Thread Jason Barnett
try adding a udev rule with the following lines in it: SUBSYSTEM==usb, SYSFS{idVendor}==*0bb4*, MODE=0666 SUBSYSTEM==usb, ATTRS{idVendor}==*0bb4*, MODE=0666 of course change the 0bb4 with the vendor ID of your device. You will also need to restart the udev service (or reboot) to get the new

Re: [PLUG] Permissions setting for USB program

2011-09-20 Thread Paul Heinlein
On Tue, 20 Sep 2011, Richard C. Steffens wrote: Have a USB foot pedal for use in transcribing. I also have a foot pedal utility program for using the foot pedal to control various programs. When I run the program for the first time after the foot pedal is plugged in to a USB port I get a

Re: [PLUG] Permissions setting for USB program

2011-09-20 Thread Galen Seitz
Jason Barnett wrote: try adding a udev rule with the following lines in it: SUBSYSTEM==usb, SYSFS{idVendor}==*0bb4*, MODE=0666 SUBSYSTEM==usb, ATTRS{idVendor}==*0bb4*, MODE=0666 of course change the 0bb4 with the vendor ID of your device. You will also need to restart the udev service (or

Re: [PLUG] Permissions setting for USB program

2011-09-20 Thread Jason Barnett
Galen, you are correct! So long as the device is attached AFTER the udev rule is in place, it will work properly. If you create or change the udev rule with the device attached, you will need to either restart the service or simply unplug and reconnect the device. This makes sense, I just wished

Re: [PLUG] Permissions setting for USB program

2011-09-20 Thread Eric Wilhelm
# from Jason Barnett on Tuesday 20 September 2011 19:28: or simply unplug and reconnect the device. Anybody know of a way to do that from the command-line? I can do it with a power-control-enabled hub, but otherwise can't seem to find a way to generate a usb disconnect from software. Thanks,