Hello, I emailed you a few weeks ago, I am sorry to bother you again.
Bought a new camera that was on the compatibility list, still struggling: ***** pi@raspberrypi:~ $ gphoto2 --auto-detect Model Port ---------------------------------------------------------- Canon PowerShot G9 (PTP mode) usb:001,004 pi@raspberrypi:~ $ gphoto2 --capture-image *** Error *** An error occurred in the io-library ('Could not claim the USB device'): Could no t 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 us ing 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') *** For debugging messages, please use the --debug option. Debugging messages may help finding a solution to your problem. If you intend to send any error or debug messages to the gphoto developer mailing list <gphoto-devel@lists.sourceforge.net>, please run gphoto2 as follows: env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --capture-image Please make sure there is sufficient quoting around the arguments. pi@raspberrypi:~ $ ***** Logfile attached. When the camera is plugged into the pi via its USB port, the lens doesn't open and extend, ie, its not in the mode to take picture, but rather to transfer files via USB. Is there a command I should be running to force the camera into picture taking mode first? Thanks! _____ I am using the Free version of SPAMfighter <http://www.spamfighter.com/len> . SPAMfighter has removed 3112 of my spam emails to date. Do you have a slow PC? <http://www.spamfighter.com/SLOW-PCfighter?cid=sigen> Try a free scan!
0.000065 main (2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST: 0.000227 main (2): gphoto2 2.5.20 0.000267 main (2): gphoto2 has been compiled with the following options: 0.000301 main (2): + gcc (C compiler used) 0.000333 main (2): + popt (mandatory, for handling command-line parameters) 0.000364 main (2): + exif (for displaying EXIF information) 0.000396 main (2): + cdk (for accessing configuration options) 0.000427 main (2): + aa (for displaying live previews) 0.000457 main (2): + jpeg (for displaying live previews in JPEG format) 0.000488 main (2): + readline (for easy navigation in the shell) 0.000519 main (2): libgphoto2 2.5.22 0.000553 main (2): libgphoto2 has been compiled with the following options: 0.000584 main (2): + all camlibs 0.000615 main (2): + gcc (C compiler used) 0.000645 main (2): + ltdl (for portable loading of camlibs) 0.000675 main (2): + EXIF (for special handling of EXIF files) 0.000707 main (2): libgphoto2_port 0.12.0 0.000741 main (2): libgphoto2_port has been compiled with the following options: 0.000773 main (2): + iolibs: disk ptpip serial usb1 usbdiskdirect usbscsi 0.000804 main (2): + gcc (C compiler used) 0.000834 main (2): + ltdl (for portable loading of iolibs) 0.000865 main (2): + USB (libusb1, for USB cameras) 0.000895 main (2): + serial (for serial cameras) 0.000926 main (2): + no resmgr (serial port access and locking) 0.000956 main (2): + no ttylock (serial port locking) 0.000986 main (2): + no lockdev (serial port locking) 0.001017 main (2): CAMLIBS env var not set, using compile-time default instead 0.001047 main (2): IOLIBS env var not set, using compile-time default instead 0.001077 main (2): invoked with following arguments: 0.001108 main (2): --debug 0.001138 main (2): --debug-logfile=my-logfile.txt 0.001168 main (2): --capture-image 0.001282 load_settings (2): Creating gphoto config directory ('/home/pi/.gphoto') 0.001464 load_settings (2): Loading settings from file '/home/pi/.gphoto/settings'. 0.001646 main (2): The user has not specified both a model and a port. Try to figure them out. 0.001695 gp_port_info_list_load (2): Using ltdl to load io-drivers from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0'... 0.002210 foreach_func (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/disk'. 0.003172 gp_port_library_list (2): found fstab fsname proc 0.003231 gp_port_library_list (2): found fstab fsname PARTUUID=3b96bde1-01 0.003320 gp_port_library_list (2): found fstab fsname PARTUUID=3b96bde1-02 0.003676 gp_port_library_list (2): found mtab fsname /dev/root 0.003751 gp_port_library_list (2): found mtab fsname devtmpfs 0.003805 gp_port_library_list (2): found mtab fsname sysfs 0.003853 gp_port_library_list (2): found mtab fsname proc 0.003902 gp_port_library_list (2): found mtab fsname securityfs 0.003954 gp_port_library_list (2): found mtab fsname tmpfs 0.004054 gp_port_library_list (2): found mtab fsname devpts 0.004105 gp_port_library_list (2): found mtab fsname tmpfs 0.004196 gp_port_library_list (2): found mtab fsname tmpfs 0.004291 gp_port_library_list (2): found mtab fsname tmpfs 0.004404 gp_port_library_list (2): found mtab fsname cgroup2 0.004531 gp_port_library_list (2): found mtab fsname cgroup 0.004580 gp_port_library_list (2): found mtab fsname none 0.004664 gp_port_library_list (2): found mtab fsname cgroup 0.004713 gp_port_library_list (2): found mtab fsname cgroup 0.004915 gp_port_library_list (2): found mtab fsname cgroup 0.004966 gp_port_library_list (2): found mtab fsname cgroup 0.005015 gp_port_library_list (2): found mtab fsname cgroup 0.005062 gp_port_library_list (2): found mtab fsname cgroup 0.005108 gp_port_library_list (2): found mtab fsname cgroup 0.005155 gp_port_library_list (2): found mtab fsname cgroup 0.005202 gp_port_library_list (2): found mtab fsname systemd-1 0.005250 gp_port_library_list (2): found mtab fsname sunrpc 0.005347 gp_port_library_list (2): found mtab fsname mqueue 0.005395 gp_port_library_list (2): found mtab fsname debugfs 0.005484 gp_port_library_list (2): found mtab fsname configfs 0.005603 gp_port_library_list (2): found mtab fsname /dev/mmcblk0p1 0.005726 gp_port_library_list (2): found mtab fsname tmpfs 0.005868 gp_port_library_list (2): found mtab fsname gvfsd-fuse 0.005919 gp_port_library_list (2): found mtab fsname fusectl 0.006113 foreach_func (2): Loaded '' ('^disk:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/disk'. 0.006155 foreach_func (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/ptpip'. 0.006843 foreach_func (2): Loaded 'PTP/IP Connection' ('ptpip:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/ptpip'. 0.006888 foreach_func (2): Loaded '' ('^ptpip:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/ptpip'. 0.006924 foreach_func (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/serial'. 0.008209 foreach_func (2): Loaded 'Serial Port Device' ('serial:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/serial'. 0.008254 foreach_func (2): Loaded '' ('^serial:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/serial'. 0.008290 foreach_func (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usb1'. 0.028950 foreach_func (2): Loaded '' ('^usb:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usb1'. 0.029056 foreach_func (2): Loaded 'Universal Serial Bus' ('usb:001,004') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usb1'. 0.029097 foreach_func (2): Loaded 'Universal Serial Bus' ('usb:001,003') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usb1'. 0.029133 foreach_func (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usbdiskdirect'. 0.030113 foreach_func (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usbscsi'. 0.030989 gp_port_info_list_count (2): Counting entries (8 available)... 0.031032 gp_port_info_list_count (2): 4 regular entries available. 0.031106 gp_abilities_list_load_dir (2): Using ltdl to load camera libraries from '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22'... 0.032555 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/adc65'. 0.032615 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/agfa_cl20'. 0.032651 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/aox'. 0.032685 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/ax203'. 0.032718 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/barbie'. 0.032750 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/canon'. 0.032784 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/casio_qv'. 0.032876 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/clicksmart310'. 0.032911 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/digigr8'. 0.032944 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/digita'. 0.032978 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/dimagev'. 0.033013 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/dimera3500'. 0.033047 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/directory'. 0.033081 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/enigma13'. 0.033115 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/fuji'. 0.033148 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/gsmart300'. 0.033183 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/hp215'. 0.033216 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/iclick'. 0.033251 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/jamcam'. 0.033285 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/jd11'. 0.033318 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/jl2005a'. 0.033352 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/jl2005c'. 0.033387 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/kodak_dc120'. 0.033421 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/kodak_dc210'. 0.033454 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/kodak_dc240'. 0.033490 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/kodak_dc3200'. 0.033524 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/kodak_ez200'. 0.033558 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/konica'. 0.033593 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/konica_qm150'. 0.033627 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/largan'. 0.033661 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/lg_gsm'. 0.033695 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/mars'. 0.033728 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/mustek'. 0.033762 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/panasonic_coolshot'. 0.033796 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/panasonic_dc1000'. 0.033829 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/panasonic_dc1580'. 0.033862 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/panasonic_l859'. 0.033894 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/pccam300'. 0.033928 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/pccam600'. 0.033962 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/pentax'. 0.033996 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/polaroid_pdc320'. 0.034030 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/polaroid_pdc640'. 0.034063 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/polaroid_pdc700'. 0.034098 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/ptp2'. 0.034131 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/ricoh'. 0.034199 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/ricoh_g3'. 0.034234 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/samsung'. 0.034268 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/sierra'. 0.034302 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/sipix_blink2'. 0.034337 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/sipix_web2'. 0.034370 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/smal'. 0.034403 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/sonix'. 0.034437 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/sony_dscf1'. 0.034470 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/sony_dscf55'. 0.034503 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/soundvision'. 0.034538 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/spca50x'. 0.034571 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/sq905'. 0.034605 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/st2205'. 0.034638 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/stv0674'. 0.034672 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/stv0680'. 0.034705 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/sx330z'. 0.034739 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/topfield'. 0.034774 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/toshiba_pdrm11'. 0.034807 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/tp6801'. 0.034856 gp_abilities_list_load_dir (2): Found 64 camera drivers. 0.182507 gp_port_info_list_count (2): Counting entries (8 available)... 0.182607 gp_port_info_list_count (2): 4 regular entries available. 0.182625 gp_port_new (2): Creating new device... 0.182685 gp_port_info_list_get_info (2): Getting info of entry 0 (8 available)... 0.183255 gp_port_set_settings (2): Setting settings... 0.183280 gp_port_info_list_get_info (2): Getting info of entry 1 (8 available)... 0.183696 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.183716 gp_port_set_settings (2): Setting settings... 0.183735 gp_port_info_list_get_info (2): Getting info of entry 2 (8 available)... 0.193708 gp_port_set_timeout (2): Setting port timeout to 5000 milliseconds. 0.193776 gp_port_set_settings (2): Setting settings... 0.193801 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.193818 gp_libusb1_update (2): lowlevel libusb1 port not yet opened, no need for libusb changes 0.193836 gp_abilities_list_detect_usb(2): Auto-detecting USB cameras... 0.194961 gp_libusb1_find_device_lib (2): Looking for USB device (vendor 0x4a9, product 0x315a)... found. 0.195139 gp_libusb1_find_device_lib (2): Detected defaults: config 1, interface 0, altsetting 0, inep 81, outep 02, intep 83, class 06, subclass 01 0.195162 gp_abilities_list_detect_usb(2): Found 'Canon PowerShot G9 (PTP mode)' (0x4a9,0x315a) 0.195221 gp_port_info_list_get_info (2): Getting info of entry 3 (8 available)... 0.205722 gp_port_set_timeout (2): Setting port timeout to 5000 milliseconds. 0.205786 gp_port_set_settings (2): Setting settings... 0.205812 gp_libusb1_update (2): (old int=0, conf=-1, alt=-1) port usb:001,003, (new int=0, conf=-1, alt=-1) port usb:001,003 0.205829 gp_libusb1_update (2): lowlevel libusb1 port not yet opened, no need for libusb changes 0.205847 gp_abilities_list_detect_usb(2): Auto-detecting USB cameras... 0.208877 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x29a, subclass, 0xffffffff, protocol 0xffffffff)... 0.211070 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x6, subclass, 0x1, protocol 0x1)... 0.211230 gp_port_free (2): Freeing port... 0.211249 gp_port_close (2): Closing port... 0.211950 gp_camera_set_abilities (2): Setting abilities ('Canon PowerShot G9 (PTP mode)')... 0.211978 gp_setting_set (2): Setting key 'model' to value 'Canon PowerShot G9 (PTP mode)' (gphoto2) 0.212000 save_settings (2): Saving 2 setting(s) to file "/home/pi/.gphoto/settings" 0.212721 gp_port_info_list_lookup_path(2): Looking for path 'usb:001,004' (8 entries available)... 0.212750 gp_port_info_list_get_info (2): Getting info of entry 2 (8 available)... 0.212771 gp_camera_set_port_info (2): Setting port info for port 'Universal Serial Bus' at 'usb:001,004'... 0.223145 gp_port_set_timeout (2): Setting port timeout to 5000 milliseconds. 0.223208 gp_port_set_settings (2): Setting settings... 0.223233 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.223250 gp_libusb1_update (2): lowlevel libusb1 port not yet opened, no need for libusb changes 0.223270 gp_setting_set (2): Setting key 'port' to value 'usb:001,004' (gphoto2) 0.223293 save_settings (2): Saving 2 setting(s) to file "/home/pi/.gphoto/settings" 0.223860 gp_camera_init (2): Initializing camera... 0.223941 gp_libusb1_find_device_lib (2): Looking for USB device (vendor 0x4a9, product 0x315a)... found. 0.224137 gp_libusb1_find_device_lib (2): Detected defaults: config 1, interface 0, altsetting 0, inep 81, outep 02, intep 83, class 06, subclass 01 0.224158 gp_camera_init (2): Loading '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/ptp2'... 0.231659 gp_port_open (2): Opening USB port... 0.231731 gp_libusb1_open (2): () 0.231841 gp_libusb1_open (2): claiming interface 0 0.231875 gp_libusb1_open [libusb1.c:431](0): 'libusb_claim_interface (port->pl->dh, port->settings.usb.interface)' failed: Resource busy (-6) 0.231912 gp_port_set_error [gphoto2-port.c:1190](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.233509 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. 0.235310 gp_camera_free (2): Freeing camera... 0.235340 gp_port_free (2): Freeing port... 0.235356 gp_port_close (2): Closing port... 0.236544 gp_port_set_error [gphoto2-port.c:1190](0): Could not release interface 0 (Device or resource busy). 0.237069 gp_filesystem_reset (2): resetting filesystem 0.237105 gp_filesystem_lru_clear (2): Clearing fscache LRU list... 0.237139 gp_filesystem_lru_clear (2): fscache LRU list already empty 0.237157 delete_all_folders (2): Internally deleting all folders from '/'... 0.237175 lookup_folder (2): Lookup folder '/'... 0.237192 lookup_folder (2): Found! / is 0x1ed0440 0.237209 recurse_delete_folder (2): Recurse delete folder 0x1ed0440//
_______________________________________________ Gphoto-devel mailing list Gphoto-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gphoto-devel