gphoto2 & USB access
Net Llama!
netllama
Mon May 17 11:32:57 PDT 2004
On Fri, 7 Jun 2002, Tom Condon wrote:
> On Friday 07 June 2002 10:05, Net Llama! carved in granite:
> > And what does the output look like when running the same command with
> > the --debug option as the 'tom' user?
>
> *****************************************************
> tom at blanket:~> gphoto2 --debug --get-all-files
> cli: checking "--debug":
>
> cli: checking "--get-all-files":
> gphoto2-port-usb(1): Looking for USB device (vendor 0x40a, product
> 0x500)... found.
> gphoto2-abilities-list.c(2): Found 'Kodak DX-3500' (0x40a,0x500)
> gphoto2-port(2): Freeing port...
> gphoto2-port(2): Closing port...
> gphoto2-port-info-list(2): Looking for path 'usb:' (25 entries
> available)...
> gphoto2-camera(2): Setting abilibites ('Kodak DX-3500')...
> setting/gphoto2-setting.c(2): Creating $HOME/.gphoto
> setting/gphoto2-setting.c(2): Loading settings from file
> "/home/tom/.gphoto/settings"
> gphoto2-setting(2): Setting key 'model' to value 'Kodak DX-3500'
> (gphoto2)
> gphoto2-setting(2): Saving 2 setting(s) to file
> "/home/tom/.gphoto/settings"
> gphoto2-port-info-list(2): Getting info of entry 23 (25 available)...
> gphoto2-camera(2): Setting port info for port 'Universal Serial Bus' at
> 'usb:'...
> gphoto2-port(2): Setting timeout to 5000 millisecond(s)...
> gphoto2-port(2): Setting settings...
> gphoto2-setting(2): Setting key 'port' to value 'usb:' (gphoto2)
> gphoto2-setting(2): Saving 2 setting(s) to file
> "/home/tom/.gphoto/settings"
> gphoto2-camera(2): Listing files in '/'...
> gphoto2-camera(2): Initializing camera...
> gphoto2-port-usb(1): Looking for USB device (vendor 0x40a, product
> 0x500)... found.
> gphoto2-camera(2): Loading '/usr/lib/gphoto2/2.0/libgphoto2_ptp.so'...
> gphoto2-port(2): Opening USB port...
> gphoto2-port(ERROR): Could not claim interface 0 (Operation not
> permitted). Make sure no other program or kernel module (i.e. dc2xx) is
> using the device and you have read/write access to the device.
> context(ERROR): An error occurred in the io-library ('Could not claim
> the USB device'): Could not claim interface 0 (Operation not
> permitted). Make sure no other program or kernel module (i.e. dc2xx) is
> using the device and you have read/write access to the device.
>
> *** Error ***
> An error occurred in the io-library ('Could not claim the USB device'):
> Could not claim interface 0 (Operation not permitted). Make sure no
> other program or kernel module (i.e. dc2xx) is using the device and you
> have read/write access to the device.
> *** Error ('Could not claim the USB device') ***
>
> gp-camera(2): Freeing camera...
> gphoto2-port(2): Freeing port...
> gphoto2-port(2): Closing port...
> gphoto2-port(ERROR): Could not release interface 0 (Operation not
> permitted).
> gphoto2-filesystem(2): Internally deleting all folders from '/'...
> tom at blanket:~>
> *****************************************************
This is very weird. It opens the USB device earlier, but then can't later
on.
You don't have anything in fstab that is setting perms on the USB devices?
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lonni J Friedman netllama at linux-sxs.org
Linux Step-by-step & TyGeMo http://netllama.ipfox.com
More information about the Linux-users
mailing list