gphoto / libgphoto2

The libgphoto2 camera access and control library.
GNU Lesser General Public License v2.1
989 stars 316 forks source link

Sony Alpha 6100 in MTP mode #944

Closed kjetilk closed 6 months ago

kjetilk commented 6 months ago

Name of the camera

Sony Alpha 6100

In this issue, I have set it up in MTP mode.

USB IDs

Bus 005 Device 025: ID 054c:0d13 Sony Corp. ILCE-6100

camera summary output

mtp-summary.txt

camera configuration output

mtp-config.txt

test capture

Does not work, but works in #943 .

Does not work and times out with the following error in debug:

*** Error ***              
PTP Timeout

*** Error ***              
An error occurred in the io-library ('Timeout reading from or writing to the port'): The supplied vendor or product id (0x0,0x0) is not valid.
*** Error (-10: 'Timeout reading from or writing to the port') ***       

Logfile for this here

kjetilk commented 6 months ago

Uh-oh. The camera became unresponsive after testing this... I couldn't even turn it off, had to take the battery out.

msmeissn commented 6 months ago

In mtp mode Sonys are not allowing capture. It should however not crash the camera.

the logfile you sent was on a second try or so, it has not protocol content, just hanging communication

kjetilk commented 6 months ago

In mtp mode Sonys are not allowing capture. It should however not crash the camera.

Yeah!

the logfile you sent was on a second try or so, it has not protocol content, just hanging communication

Oh, yes, indeed. Should I open a separate issue on that?

msmeissn commented 6 months ago

no its just a followup issue. attach it here please

kjetilk commented 6 months ago

eh, nevermind this comment, deleted.

kjetilk commented 6 months ago

Anyway, here's the hang:

kjetil@owl:~/scratch/camera$ env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --capture-preview
*** Error (-10: 'Timeout reading from or writing to the port') ***             

with my-logfile.txt

msmeissn commented 6 months ago

I think the capture preview in this mode just hangs / crashes the camera. Not much we can do here, if the ID is provided by the current libgpoto2 gphoto2 will know not to try capture preview.

kjetilk commented 6 months ago

I think the capture preview in this mode just hangs / crashes the camera.

Oh, oops!

Not much we can do here, if the ID is provided by the current libgpoto2 gphoto2 will know not to try capture preview.

That works for me, the camera does not support it in MTP mode anyway.