Both using gphoto2 (command line) and libgphoto2, running the autofocus puts the camera in an unstable state.
With gphoto2, I run the following commands:
$ gphoto2 --set-config autofocusdrive=1
With libgphoto2, I use the code given in the examples (here).
Before running the autofocus, I can for instance switch between capture mode and preview mode using gphoto2 --set-config eosviewfinder=1 and gphoto2 --set-config eosviewfinder=0, but once I ran it, they don't work anymore.
The point is that if I run gphoto2 --capture-image, then it does the autofocus and take a picture successfully (both when in capture mode and in preview mode).
What am I doing wrong?
I am using a Canon 6D, and you can find my log here.
Thanks for your help!
it is probably a bug.
i just tried doing
gphoto2 --set-config autofocusdrive=1
gphoto2 --set-config autofocusdrive=1
and it hangs on the second call.
Should I open a ticket somewhere then? Or do you have any advice on where I should start if I wanted to debug it myself?
This is a ticket! :)
I debugged this today and I got to the ground I guess.
autofocusdrive=1 switches the camera to focusing , but there was no code yet to switch out of it.
I added code to exit that goes out of autofocusing.
You can use autofocusdrive=0 or cancelautofocus=1
http://www.lst.de/~mm/libgphoto2-2.5.5.2.tar.bz2
fixed wsith 2.5.6 hopefully
Hello,
I use a 1200D for capture with a Raspberry Pi , manual focus, both with USB (for downloading pictures) and with remote cable release (cable+optocouplers for triggering the camera, timelapse every 20 minutes, no pictures in the night) . Gphoto2 version is 2.5.10.
Sometimes, the 1200D is blocking , no way to capture a picture , no reaction from the camera. This happens every morning and most of the time, the camera unblock after one or two hours . But sometimes , It happens also in the day (but only one or two pictures lost).
This problem happens since I use a 1200D . With 1100D , it was ok.
I tried to use autofocusdrive=0 and cancelautofocus=1 , thinking the autofocus could be the problem.
I have tried this :
sudo gphoto2 --set-config autofocusdrive=0 --set-config cancelautofocus=1
But when I verify cancelautofocus : sudo gphoto2 --get-config cancelautofocus
Result is :
Label: Cancel Canon DSLR Autofocus
Type: TOGGLE
Current: 0
So I guess I don't use the good commands, or I don't made the good things ...
How to set cancelautofocus ?
My problem could come from manual focus ?
Or could is be another thing ?
Many thanks for your help.
Roberto.