gphoto / libgphoto2

The libgphoto2 camera access and control library.
GNU Lesser General Public License v2.1
1.02k stars 324 forks source link

gphoto2 2.5.20 cannot trigger capture for Pentax K5D #410

Open new-raspberry-pi opened 5 years ago

new-raspberry-pi commented 5 years ago

Describe the bug gphoto2 2.5.20 (libgphoto2 2.5.22) cannot trigger capture or capture image for Pentax K5D

Name the camera pi@raspberrypi:~ $ gphoto2 --auto-detect Model Port

Mass Storage Camera disk:/media/pi/6430-3431 Pentax K5D usbscsi:/dev/sg0

libgphoto2 and gphoto2 version output of: gphoto2 --version gphoto2 2.5.20

Copyright (c) 2000-2018 Lutz Mueller and others

This version of gphoto2 is using the following software versions and options: gphoto2 2.5.20 gcc, popt(m), exif, no cdk, no aa, jpeg, readline libgphoto2 2.5.22 all camlibs, gcc, ltdl, EXIF libgphoto2_port 0.12.0 iolibs: disk ptpip serial usb1 usbdiskdirect usbscsi, gcc, ltdl, USB, serial without locking

To Reproduce Steps to reproduce the behavior: pi@raspberrypi:~ $ gphoto2 --trigger-capture

Error
This camera can not trigger capture. ERROR: Could not trigger capture. Error (-6: 'Unsupported operation')

pi@raspberrypi:~ $ gphoto2 --capture-image

Error
This camera can not capture. ERROR: Could not capture image. ERROR: Could not capture. Error (-6: 'Unsupported operation')

When reproducing with the commandline tool, attach debugout using --debug --debug-logfile=debug.log if considered useful.

pi@raspberrypi:~ $ gphoto2 --debug 0.000576 main (2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST: 0.000711 main (2): gphoto2 2.5.20 0.000758 main (2): gphoto2 has been compiled with the following options: 0.000980 main (2): + gcc (C compiler used) 0.001007 main (2): + popt (mandatory, for handling command-line parameters) 0.001067 main (2): + exif (for displaying EXIF information) 0.001096 main (2): + no cdk (for accessing configuration options) 0.001142 main (2): + no aa (for displaying live previews) 0.001170 main (2): + jpeg (for displaying live previews in JPEG format) 0.001215 main (2): + readline (for easy navigation in the shell) 0.001249 main (2): libgphoto2 2.5.22 0.001297 main (2): libgphoto2 has been compiled with the following options: 0.001326 main (2): + all camlibs 0.001351 main (2): + gcc (C compiler used) 0.001377 main (2): + ltdl (for portable loading of camlibs) 0.001405 main (2): + EXIF (for special handling of EXIF files) 0.001440 main (2): libgphoto2_port 0.12.0 0.001476 main (2): libgphoto2_port has been compiled with the following options: 0.001506 main (2): + iolibs: disk ptpip serial usb1 usbdiskdirect usbscsi 0.001536 main (2): + gcc (C compiler used) 0.001562 main (2): + ltdl (for portable loading of iolibs) 0.001589 main (2): + USB (libusb1, for USB cameras) 0.001617 main (2): + serial (for serial cameras) 0.001642 main (2): + no resmgr (serial port access and locking) 0.001670 main (2): + no ttylock (serial port locking) 0.001696 main (2): + no lockdev (serial port locking) 0.001726 main (2): CAMLIBS env var not set, using compile-time default instead 0.001752 main (2): IOLIBS env var not set, using compile-time default instead 0.001780 main (2): invoked with following arguments: 0.001808 main (2): --debug 0.001924 load_settings (2): Creating gphoto config directory ('/home/pi/.gphoto') 0.002145 load_settings (2): Loading settings from file '/home/pi/.gphoto/settings'. 0.002759 gp_camera_free (2): Freeing camera... 0.002794 gp_port_free (2): Freeing port... 0.002835 gp_filesystem_reset (2): resetting filesystem 0.002862 gp_filesystem_lru_clear (2): Clearing fscache LRU list... 0.002888 gp_filesystem_lru_clear (2): fscache LRU list already empty 0.002922 delete_all_folders (2): Internally deleting all folders from '/'... 0.002954 lookup_folder (2): Lookup folder '/'... 0.002982 lookup_folder (2): Found! / is 0x19e9b58 0.003011 recurse_delete_folder (2): Recurse delete folder 0x19e9b58//

msmeissn commented 5 years ago

it is trying to do this for the first autodetected camera, which is your SDCARD: Mass Storage Camera disk:/media/pi/6430-3431

Try to specify the camera explictly: gphoto2 --camera "Pentax K5D" --trigger-capture