gphoto2 icon indicating copy to clipboard operation
gphoto2 copied to clipboard

--capture-tethered seems to freeze camera, making it impossible to take pictures, for Canon EOS M50

Open zachariaserlandsson opened this issue 3 years ago • 7 comments

Hello!

First of all, thank you for an amazing tool! :pray:

Describe the bug I'm currently facing an issue with implementing a new feature for my Canon EOS M50. Previously, I've been triggering events in my camera from within gphoto2, which works fine (using --trigger-capture). However, now I'm trying to do stuff based on user action from the actual camera itself, i.e. when a capture is triggered from the actual camera. To do this, I'm using the gphoto2 command together with the optioms --capture-tethered --hook-script=dummyScript.sh. dummyScript.sh is a shell script that simply prints "Hello world" and exits with code 0. I've gotten the --hook-script option to work together with --trigger-capture, but not together with --capture-tethered. Using --capture-tethered as the only option for the gphoto2 call, the LCD screen on the camera goes pitch black. If I switch camera modes back and forth, the LCD screen instead shows the message "BUSY" when I try to trigger a capture. I've tried with several different arguments for --capture-tethered; "FILEADDED" and times in seconds. The camera unfreezes once the timer runs out, if I specify 10 seconds for example.

Do you have any clues to what might cause this? I'm running gphoto2 and libgphoto2 version 2.5.23 at the moment.

To Reproduce Plug in a Canon EOS M50 with USB and run gphoto2 --capture-tethered --hook-script=script.sh with some script confirmed to work.

Do you want anything more from my side in order to be able to investigate this more easily?

zachariaserlandsson avatar Apr 08 '21 08:04 zachariaserlandsson

Tested now with version 2.5.27 as well. Same behavior encountered however :disappointed: Some logging was output in the terminal when the shutter was pressed. Between two lines of >>>>..., the manual shutter on the camera was pressed.

zachariaserlandsson avatar Apr 12 '21 07:04 zachariaserlandsson

Screenshot from 2021-04-12 09-48-03

zachariaserlandsson avatar Apr 12 '21 07:04 zachariaserlandsson

I have not been able to make this work on my side yet on the EOS M100. (The EOS M6 Mark2 can do it.)

It might need some settings we do not know yet though.

msmeissn avatar Apr 12 '21 17:04 msmeissn

I have not been able to make this work on my side yet on the EOS M100. (The EOS M6 Mark2 can do it.)

It might need some settings we do not know yet though.

Thank you for your response! I see, righty. Do you encounter the same issue for the EOS M100, i.e. display going black and not being able to take any photos? Sounds indeed reasonable that some settings could be played a bit with, let me know if there is something specific that you want me to try and I'll look into it! :detective:

zachariaserlandsson avatar Apr 13 '21 07:04 zachariaserlandsson

@msmeissn Not sure if this is valuable to you somehow, but tried on another Canon model that I own - the EOS 750D - and --capture-tethered worked wonders straight out of the box :) Do you happen to know on which models it does work for? And which models it does not? It might guide me a bit when it comes to buying a new camera eventually, that's why I'm asking. Thanks again!

zachariaserlandsson avatar Apr 14 '21 15:04 zachariaserlandsson

it works for all regular EOS (and EOS R).

For EOS M so far it only works on the EOS M6 Mark2, no others.

msmeissn avatar Apr 14 '21 16:04 msmeissn

it works for all regular EOS (and EOS R).

For EOS M so far it only works on the EOS M6 Mark2, no others.

I see, thank you for the heads up :clap:

zachariaserlandsson avatar Apr 15 '21 07:04 zachariaserlandsson