Here are the logs and some other usb information:: 
brian@CanonPI:~ $ gphoto2 --auto-detect 
Model Port 
---------------------------------------------------------- 
USB PTP Class Camera usb:001,004 

=========================================================================================
 
brian@CanonPI:~ $ lsusb 
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub 
Bus 001 Device 004: ID 04a9:32f8 Canon, Inc. Canon Digital Camera 
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub 


~/.gphoto/setting 
gphoto2=model=USB PTP Class Camera 
gphoto2=port=usb:001,004 


brian@CanonPI:/dev/bus/usb/001 $ ls -al 
total 0 
drwxr-xr-x 2 root root 80 Feb 21 18:57 . 
drwxr-xr-x 4 root root 80 Jan 1 1970 .. 
crw-rw-r-- 1 root root 189, 0 Feb 21 18:10 001 
crw-rw-r-- 1 root root 189, 1 Feb 21 18:10 002 
brian@CanonPI:/dev/bus/usb/001 $ cd ../002 
brian@CanonPI:/dev/bus/usb/002 $ ls -al 
total 0 
drwxr-xr-x 2 root root 60 Jan 1 1970 . 
drwxr-xr-x 4 root root 80 Jan 1 1970 .. 
crw-rw-r-- 1 root root 189, 128 Feb 21 18:10 001 

============================================================================================
 

brian@CanonPI:~ $ gphoto2 --capture-image --debug 
0.000507 main (2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG 
MESSAGES TO THE MAILING LIST: 
0.000664 main (2): gphoto2 2.5.28.1 
0.000757 main (2): gphoto2 has been compiled with the following options: 
0.000813 main (2): + gcc (C compiler used) 
0.000863 main (2): + popt (mandatory, for handling command-line parameters) 
0.000911 main (2): + exif (for displaying EXIF information) 
0.000958 main (2): + no cdk (for accessing configuration options) 
0.001003 main (2): + no aa (for displaying live previews) 
0.001049 main (2): + jpeg (for displaying live previews in JPEG format) 
0.001097 main (2): + no readline (for easy navigation in the shell) 
0.001145 main (2): libgphoto2 2.5.30 
0.001199 main (2): libgphoto2 has been compiled with the following options: 
0.001252 main (2): + standard camlib set (ax203 canon digigr8 dimagev directory 
docupen jl2005a jl2005c kodak_dc240 lumix mars pentax ptp2 ricoh_g3 sierra 
sonix sq905 st2205 topfield tp6801) 
0.001303 main (2): + gcc (C compiler used) 
0.001348 main (2): + no ltdl (for portable loading of camlibs) 
0.001395 main (2): + EXIF (for special handling of EXIF files) 
0.001446 main (2): libgphoto2_port 0.12.1 
0.001500 main (2): libgphoto2_port has been compiled with the following 
options: 
0.001548 main (2): + iolibs: disk ptpip serial usb1 usbdiskdirect usbscsi 
0.001594 main (2): + gcc (C compiler used) 
0.001639 main (2): + no ltdl (for portable loading of iolibs) 
0.001686 main (2): + EXIF (for vusb) 
0.001731 main (2): + USB (libusb1, for USB cameras) 
0.001777 main (2): + serial (for serial cameras) 
0.001822 main (2): + no resmgr (serial port access and locking) 
0.001867 main (2): + no ttylock (serial port locking) 
0.001912 main (2): + no lockdev (serial port locking) 
0.001958 main (2): CAMLIBS env var not set, using compile-time default instead 
0.002004 main (2): IOLIBS env var not set, using compile-time default instead 
0.002051 main (2): invoked with following arguments: 
0.002098 main (2): --capture-image 
0.002142 main (2): --debug 
0.002251 load_settings (2): Creating gphoto config directory 
('/home/brian/.gphoto') 
0.002411 load_settings (2): Loading settings from file 
'/home/brian/.gphoto/settings'. 
0.002567 main (2): The user has not specified both a model and a port. Try to 
figure them out. 
0.002635 gp_port_init_localedir (2): localedir has been set to 
/usr/share/locale (compile-time default) 
0.002693 gp_port_info_list_load (2): Using ltdl to load io-drivers from 
'/usr/lib/aarch64-linux-gnu/libgphoto2_port/0.12.1'... 
0.002994 foreach_func (2): Called for filename 
'/usr/lib/aarch64-linux-gnu/libgphoto2_port/0.12.1/disk'. 
0.003825 gp_port_library_list (2): found fstab fsname proc 
0.003914 gp_port_library_list (2): found fstab fsname PARTUUID=e7af0455-01 
0.004050 gp_port_library_list (2): found fstab fsname PARTUUID=e7af0455-02 
0.004380 gp_port_library_list (2): found mtab fsname sysfs 
0.004454 gp_port_library_list (2): found mtab fsname proc 
0.004515 gp_port_library_list (2): found mtab fsname udev 
0.004616 gp_port_library_list (2): found mtab fsname devpts 
0.004681 gp_port_library_list (2): found mtab fsname tmpfs 
0.004774 gp_port_library_list (2): found mtab fsname /dev/mmcblk0p2 
0.004853 gp_port_library_list (2): found mtab fsname securityfs 
0.004917 gp_port_library_list (2): found mtab fsname tmpfs 
0.005010 gp_port_library_list (2): found mtab fsname tmpfs 
0.005105 gp_port_library_list (2): found mtab fsname cgroup2 
0.005165 gp_port_library_list (2): found mtab fsname pstore 
0.005287 gp_port_library_list (2): found mtab fsname bpf 
0.005380 gp_port_library_list (2): found mtab fsname systemd-1 
0.005440 gp_port_library_list (2): found mtab fsname mqueue 
0.005594 gp_port_library_list (2): found mtab fsname debugfs 
0.005707 gp_port_library_list (2): found mtab fsname tracefs 
0.005800 gp_port_library_list (2): found mtab fsname fusectl 
0.005860 gp_port_library_list (2): found mtab fsname configfs 
0.005968 gp_port_library_list (2): found mtab fsname ramfs 
0.006052 gp_port_library_list (2): found mtab fsname ramfs 
0.006130 gp_port_library_list (2): found mtab fsname ramfs 
0.006208 gp_port_library_list (2): found mtab fsname /dev/mmcblk0p1 
0.006295 gp_port_library_list (2): found mtab fsname ramfs 
0.006375 gp_port_library_list (2): found mtab fsname binfmt_misc 
0.006494 gp_port_library_list (2): found mtab fsname sunrpc 
0.006626 gp_port_library_list (2): found mtab fsname tmpfs 
0.006729 gp_port_library_list (2): found mtab fsname gvfsd-fuse 
0.006789 gp_port_library_list (2): found mtab fsname portal 
0.007011 foreach_func (2): Loaded '' ('^disk:') from 
'/usr/lib/aarch64-linux-gnu/libgphoto2_port/0.12.1/disk'. 
0.007075 foreach_func (2): Called for filename 
'/usr/lib/aarch64-linux-gnu/libgphoto2_port/0.12.1/ptpip'. 
0.007835 foreach_func (2): Loaded 'PTP/IP Connection' ('ptpip:') from 
'/usr/lib/aarch64-linux-gnu/libgphoto2_port/0.12.1/ptpip'. 
0.007916 foreach_func (2): Loaded '' ('^ptpip:') from 
'/usr/lib/aarch64-linux-gnu/libgphoto2_port/0.12.1/ptpip'. 
0.007969 foreach_func (2): Loaded 'IP Connection' ('ip:') from 
'/usr/lib/aarch64-linux-gnu/libgphoto2_port/0.12.1/ptpip'. 
0.008085 foreach_func (2): Loaded '' ('^ip:') from 
'/usr/lib/aarch64-linux-gnu/libgphoto2_port/0.12.1/ptpip'. 
0.008143 foreach_func (2): Called for filename 
'/usr/lib/aarch64-linux-gnu/libgphoto2_port/0.12.1/serial'. 
0.009196 foreach_func (2): Loaded 'Serial Port Device' ('serial:') from 
'/usr/lib/aarch64-linux-gnu/libgphoto2_port/0.12.1/serial'. 
0.009274 foreach_func (2): Loaded '' ('^serial:') from 
'/usr/lib/aarch64-linux-gnu/libgphoto2_port/0.12.1/serial'. 
0.009326 foreach_func (2): Called for filename 
'/usr/lib/aarch64-linux-gnu/libgphoto2_port/0.12.1/usb1'. 
0.028939 foreach_func (2): Loaded '' ('^usb:') from 
'/usr/lib/aarch64-linux-gnu/libgphoto2_port/0.12.1/usb1'. 
0.029048 foreach_func (2): Loaded 'Universal Serial Bus' ('usb:001,004') from 
'/usr/lib/aarch64-linux-gnu/libgphoto2_port/0.12.1/usb1'. 
0.029110 foreach_func (2): Called for filename 
'/usr/lib/aarch64-linux-gnu/libgphoto2_port/0.12.1/usbdiskdirect'. 
0.030029 foreach_func (2): Called for filename 
'/usr/lib/aarch64-linux-gnu/libgphoto2_port/0.12.1/usbscsi'. 
0.030675 gp_port_info_list_count (2): Counting entries (9 available)... 
0.030747 gp_port_info_list_count (2): 4 regular entries available. 
0.030812 gp_port_init_localedir (2): ignoring late call (localedir value NULL) 
0.030869 gp_init_localedir (2): localedir has been set to /usr/share/locale 
(compile-time default) 
0.030943 gp_abilities_list_load_dir (2): Using ltdl to load camera libraries 
from '/usr/lib/aarch64-linux-gnu/libgphoto2/2.5.30'... 
0.031226 foreach_func (2): Found 
'/usr/lib/aarch64-linux-gnu/libgphoto2/2.5.30/ax203'. 
0.031289 foreach_func (2): Found 
'/usr/lib/aarch64-linux-gnu/libgphoto2/2.5.30/canon'. 
0.031341 foreach_func (2): Found 
'/usr/lib/aarch64-linux-gnu/libgphoto2/2.5.30/digigr8'. 
0.031391 foreach_func (2): Found 
'/usr/lib/aarch64-linux-gnu/libgphoto2/2.5.30/dimagev'. 
0.031438 foreach_func (2): Found 
'/usr/lib/aarch64-linux-gnu/libgphoto2/2.5.30/directory'. 
0.031486 foreach_func (2): Found 
'/usr/lib/aarch64-linux-gnu/libgphoto2/2.5.30/docupen'. 
0.031534 foreach_func (2): Found 
'/usr/lib/aarch64-linux-gnu/libgphoto2/2.5.30/jl2005a'. 
0.031582 foreach_func (2): Found 
'/usr/lib/aarch64-linux-gnu/libgphoto2/2.5.30/jl2005c'. 
0.031630 foreach_func (2): Found 
'/usr/lib/aarch64-linux-gnu/libgphoto2/2.5.30/kodak_dc240'. 
0.031678 foreach_func (2): Found 
'/usr/lib/aarch64-linux-gnu/libgphoto2/2.5.30/lumix'. 
0.031727 foreach_func (2): Found 
'/usr/lib/aarch64-linux-gnu/libgphoto2/2.5.30/mars'. 
0.031775 foreach_func (2): Found 
'/usr/lib/aarch64-linux-gnu/libgphoto2/2.5.30/pentax'. 
0.031823 foreach_func (2): Found 
'/usr/lib/aarch64-linux-gnu/libgphoto2/2.5.30/ptp2'. 
0.031871 foreach_func (2): Found 
'/usr/lib/aarch64-linux-gnu/libgphoto2/2.5.30/ricoh_g3'. 
0.031919 foreach_func (2): Found 
'/usr/lib/aarch64-linux-gnu/libgphoto2/2.5.30/sierra'. 
0.031967 foreach_func (2): Found 
'/usr/lib/aarch64-linux-gnu/libgphoto2/2.5.30/sonix'. 
0.032143 foreach_func (2): Found 
'/usr/lib/aarch64-linux-gnu/libgphoto2/2.5.30/sq905'. 
0.032200 foreach_func (2): Found 
'/usr/lib/aarch64-linux-gnu/libgphoto2/2.5.30/st2205'. 
0.032252 foreach_func (2): Found 
'/usr/lib/aarch64-linux-gnu/libgphoto2/2.5.30/topfield'. 
0.032301 foreach_func (2): Found 
'/usr/lib/aarch64-linux-gnu/libgphoto2/2.5.30/tp6801'. 
0.032360 gp_abilities_list_load_dir (2): Found 20 camera drivers. 
0.189659 gp_port_info_list_count (2): Counting entries (9 available)... 
0.189761 gp_port_info_list_count (2): 4 regular entries available. 
0.189781 gp_port_new (2): Creating new device... 
0.189809 gp_port_info_list_get_info (2): Getting info of entry 0 (9 
available)... 
0.190297 gp_port_set_settings (2): Setting settings... 
0.190333 gp_port_info_list_get_info (2): Getting info of entry 1 (9 
available)... 
0.190610 gp_port_set_settings (2): Setting settings... 
0.190638 gp_port_info_list_get_info (2): Getting info of entry 2 (9 
available)... 
0.190902 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 
0.190928 gp_port_set_settings (2): Setting settings... 
0.190947 gp_port_info_list_get_info (2): Getting info of entry 3 (9 
available)... 
0.197668 gp_port_set_timeout (2): Setting port timeout to 5000 milliseconds. 
0.197723 gp_port_set_settings (2): Setting settings... 
0.197747 gp_libusb1_update (2): (old int=0, conf=-1, alt=-1) port usb:001,004, 
(new int=0, conf=-1, alt=-1) port usb:001,004 
0.197765 gp_libusb1_update (2): lowlevel libusb1 port not yet opened, no need 
for libusb changes 
0.197784 gp_abilities_list_detect_usb(2): Auto-detecting USB cameras... 
0.198746 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 
0x29a, subclass, 0xffffffff, protocol 0xffffffff)... 
0.199484 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 
0x6, subclass, 0x1, protocol 0x1)... 
0.199535 gp_libusb1_find_device_by_class_lib(2): Found USB class device (class 
0x6, subclass, 0x1, protocol 0x1) 
0.199562 gp_libusb1_find_device_by_class_lib(2): inep to look for is 81 
0.199584 gp_libusb1_find_device_by_class_lib(2): Detected defaults: config 1, 
interface 0, altsetting 0, idVendor ID 04a9, idProduct 32f8, inep 81, outep 02, 
intep 83 
0.199603 gp_abilities_list_detect_usb(2): Found 'USB PTP Class Camera' 
(0x6,0x1,0x1) 
0.199669 gp_port_free (2): Freeing port... 
0.199687 gp_port_close (2): Closing port... 
0.200216 gp_camera_set_abilities (2): Setting abilities ('USB PTP Class 
Camera')... 
0.200269 gp_setting_set (2): Setting key 'model' to value 'USB PTP Class 
Camera' (gphoto2) 
0.200291 save_settings (2): Saving 2 setting(s) to file 
"/home/brian/.gphoto/settings" 
0.200664 gp_port_info_list_lookup_path(2): Looking for path 'usb:001,004' (9 
entries available)... 
0.200696 gp_port_info_list_get_info (2): Getting info of entry 3 (9 
available)... 
0.200717 gp_camera_set_port_info (2): Setting port info for port 'Universal 
Serial Bus' at 'usb:001,004'... 
0.207347 gp_port_set_timeout (2): Setting port timeout to 5000 milliseconds. 
0.207407 gp_port_set_settings (2): Setting settings... 
0.207430 gp_libusb1_update (2): (old int=0, conf=-1, alt=-1) port usb:001,004, 
(new int=0, conf=-1, alt=-1) port usb:001,004 
0.207449 gp_libusb1_update (2): lowlevel libusb1 port not yet opened, no need 
for libusb changes 
0.207471 gp_setting_set (2): Setting key 'port' to value 'usb:001,004' 
(gphoto2) 
0.207491 save_settings (2): Saving 2 setting(s) to file 
"/home/brian/.gphoto/settings" 
0.207870 gp_camera_init (2): Initializing camera... 
0.207922 gp_port_set_error [gphoto2-port.c:1177](0): The supplied vendor or 
product id (0x0,0x0) is not valid. 
0.207969 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 
0x6, subclass, 0x1, protocol 0x1)... 
0.207998 gp_libusb1_find_device_by_class_lib(2): Found USB class device (class 
0x6, subclass, 0x1, protocol 0x1) 
0.208161 gp_libusb1_find_device_by_class_lib(2): inep to look for is 81 
0.208185 gp_libusb1_find_device_by_class_lib(2): Detected defaults: config 1, 
interface 0, altsetting 0, idVendor ID 04a9, idProduct 32f8, inep 81, outep 02, 
intep 83 
0.208204 gp_camera_init (2): Loading 
'/usr/lib/aarch64-linux-gnu/libgphoto2/2.5.30/ptp2'... 
0.210673 gp_port_open (2): Opening USB port... 
0.210739 gp_libusb1_open (2): () 
0.210831 gp_libusb1_open (2): claiming interface 0 
0.210860 gp_libusb1_open [libusb1.c:422](0): 'libusb_claim_interface 
(port->pl->dh, port->settings.usb.interface)' failed: Resource busy (-6) 
0.210892 gp_port_set_error [gphoto2-port.c:1177](0): Could not claim interface 
0 (Device or resource busy). Make sure no other program 
(gvfs-gphoto2-volume-monitor) or kernel module (such as sdc2xx, stv680, 
spca50x) is using the device and you have read/write access to the device. 
0.211263 gp_context_error (0): An error occurred in the io-library ('Could not 
claim the USB device'): Could not claim interface 0 (Device or resource busy). 
Make sure no other program (gvfs-gphoto2-volume-monitor) or kernel module (such 
as sdc2xx, stv680, spca50x) 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 (Device or resource busy). Make sure no other program 
(gvfs-gphoto2-volume-monitor) or kernel module (such as sdc2xx, stv680, 
spca50x) is using the device and you have read/write access to the device. 
ERROR: Could not capture image. 
ERROR: Could not capture. 
*** Error (-53: 'Could not claim the USB device') *** 

0.212240 gp_camera_free (2): Freeing camera... 
0.212289 gp_port_free (2): Freeing port... 
0.212306 gp_port_close (2): Closing port... 
0.213444 gp_port_set_error [gphoto2-port.c:1177](0): Could not release 
interface 0 (Device or resource busy). 
0.213767 gp_filesystem_reset (2): resetting filesystem 
0.213796 gp_filesystem_lru_clear (2): Clearing fscache LRU list... 
0.213812 gp_filesystem_lru_clear (2): fscache LRU list already empty 
0.213829 delete_all_folders (2): Internally deleting all folders from '/'... 
0.213847 lookup_folder (2): Lookup folder '/'... 
0.213864 lookup_folder (2): Found! / is 0x55ae4a27f0 
0.213881 recurse_delete_folder (2): Recurse delete folder 0x55ae4a27f0// 
0.213898 delete_all_files (2): Delete all files in folder 0x55ae4a27f0// 



_______________________________________________
Gphoto-devel mailing list
Gphoto-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gphoto-devel

Reply via email to