gphoto / gphoto2

The gphoto2 commandline tool for accessing and controlling digital cameras.
GNU General Public License v2.0
682 stars 118 forks source link

Can't use capture image in SonyA7III #626

Open PeterWar opened 4 months ago

PeterWar commented 4 months ago

Describe the bug Can't use capture image with Sony A7III camera with Apple M1Max MacOS Sonoma 14.2.1, the USB cable used runs gphoto2 just fine with the same computer and Sony A7S Camera.

Name the camera Sony Alpha-A7 III (PC Control) usb:002,001

libgphoto2 and gphoto2 version gphoto2 2.5.28 /usr/bin/clang, popt(m), exif, no cdk, no aa, jpeg, readline libgphoto2 2.5.31 standard camlibs, /usr/bin/clang, no ltdl, EXIF libgphoto2_port 0.12.2 iolibs: disk ptpip serial usb1, /usr/bin/clang, no ltdl, EXIF, USB, serial without locking

To Reproduce Get an A7III ILCE-7M3 camera with firmware Ver. 4.01 and Lens Ver .03, turn PC Remote ON option, install gphoto on Mac OS Sonoma using brew, run gphoto2 --capture-image in terminal under normal or super user mode.

If its a camera misbehavior, attach debug output using --debug --debug-logfile=debug.log (if considered useful).

gphoto2-log.txt

msmeissn commented 4 months ago

The logfiles show gphoto2 not able to connect, perhaps something might be blockiing the camera.

I think macos ptpcamerad could be interacting badly here, there were some other tickets where it needed to be killed.

PeterWar commented 4 months ago

I did the following:

1-Restarted the MAC 2-Went to the terminal and typed pgrep ptpcamerad (terminal did not show any processes) 3-typed gphoto2 --list-config (execution was correct) 4-typed gphoto2 --capture-image (it worked)

I really don't know what has changed, I restarted the MAC on previous ocasions with no results.

jufa commented 2 months ago

Hi @PeterWar, I did some testing recently that may be relevant:

Mac and camera info:

A7III with mac M1 ventura 13.6 via known-good USB-C cable on left-hand side port

gphoto info:

gphoto2 --version
gphoto2 2.5.28

Copyright (c) 2000-2021 Marcus Meissner and others

gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may
redistribute copies of gphoto2 under the terms of the GNU General Public
License. For more information about these matters, see the files named COPYING.

This version of gphoto2 is using the following software versions and options:
gphoto2         2.5.28         clang, popt(m), exif, no cdk, no aa, jpeg, readline
libgphoto2      2.5.31         standard camlibs, clang, no ltdl, EXIF
libgphoto2_port 0.12.2         iolibs: disk ptpip serial usb1, clang, no ltdl, EXIF, USB, serial without locking

Found this thread workaround for disabling the MacOS ptp process allowing me to use

gphoto2 --capture-image-and-download

https://discussions.apple.com/thread/254841739?sortBy=best