Hi,

On Sat, Nov 30, 2013 at 11:01 PM, Daniel P. Berrange <d...@berrange.com> wrote:
> On Fri, Nov 29, 2013 at 04:46:50PM +1300, Jehan Pagès wrote:
>> Hey,
>>
>> I saw these commits and focusing through entangle, which is an awesome 
>> addition.
>> Unfortunately when I try any of [,.< >], I get a popup error:
>> «
>> Manual focus failed
>>
>> Manual focus control was not a range widget
>> »
>
> Urgh, so looking the gphoto2 code the Canon cameras support manual
> focus in a totally different way. Nikon cameras let you nudge the
> focus point in arbitrary steps / granularity. Canon seems to be
> limited to just 7 separate manual focus points which really sucks.
> So I'll have to write some more code to deal with canon for this.
>

I see. Well indeed only 7 levels of granularity only does not look all
that useful. :-/

>>
>> And if I set the 'a' (autofocus), it "works" sometimes the first time
>> (= I see indeed a focus change relatively to the middle cursor), but
>> then nothing. I can't focus anymore with 'a' and the camera enters an
>> infinite "Busy" mode. I can't take photos anymore with entangle, nor
>> anything else. My only possibility is to shut down the camera
>> physically.
>>
>> Is it normal? Is it just too recent and experimental? Or is it
>> supposed to work? Because if it does for others, I can say it doesn't
>> with my Canon EOS 50D, which is too bad. :P
>
> The autofocus code looks like it should work exactly the same with
> Nikon & Canon, so I'm surprised to see this behaviour.
>
> Can you try to test in gphoto2 shell eg just set the autofocus config
> parameter
>
>   # gphoto --shell

I assume you meant `gphoto2 --shell` because I can't see a command
`gphoto` in any package.

>   > set-config-value /main/actions/autofocusdrive=1
>   ....
>   > set-config-value /main/actions/autofocusdrive=1
>   ....
>   > set-config-value /main/actions/autofocusdrive=1
>
> and see if the camera hangs in the same way.

Just tested. It does. No error showing in the gphoto2 shell, but the
camera shows busy forever. And same as in entangle, only the first
call would actually focus something. Any subsequent call still shows
no error, but no additional focus going on (of course, I moved the
camera to be sure the focus point would be different).

Interestingly if I quit gphoto2 shell and enter it again, then rerun
the command, this time I get a "I/O in progress" error, which for once
looks consistent with the "busy" camera.
Below a copy-paste. Text after a '#' are obviously comments I added on
the copy-paste, and were not written in the shell. :-)

-------------------------------------------------------------------
$ gphoto2 --shell
gphoto2: {/mnt/dev/prog/crossroad} /> set-config-value
/main/actions/autofocusdrive=1 # <- only here a focus happen!
gphoto2: {/mnt/dev/prog/crossroad} /> set-config-value
/main/actions/autofocusdrive=1 # <- no focus made!
gphoto2: {/mnt/dev/prog/crossroad} />
$ gphoto2 --shell # <- here I restart gphoto2 shell but I did not
restart the camera after the previous commands.
gphoto2: {/mnt/dev/prog/crossroad} /> set-config-value
/main/actions/autofocusdrive=1

*** Error ***
Failed to set new configuration value 1 for configuration entry
/main/actions/autofocusdrive.
*** Error (-110: 'I/O in progress') ***
gphoto2: {/mnt/dev/prog/crossroad} />
-------------------------------------------------------------------

Is that to say that the problem is upstream? Or is there more that you
may have to understand to work with a Canon camera and gphoto2?

>
> Also be interested if you can try manual focusing too - each of the 7
> options
>
>   > set-config-value /main/actions/manualfocusdrive=0  (near focus)
>   > set-config-value /main/actions/manualfocusdrive=7  (far focus)
>   > set-config-value /main/actions/manualfocusdrive=3  (middle focus)
>   > set-config-value /main/actions/manualfocusdrive=1  (near focus)
>   > set-config-value /main/actions/manualfocusdrive=6  (far focus)
>   > set-config-value /main/actions/manualfocusdrive=2  (near focus)
>   > set-config-value /main/actions/manualfocusdrive=5  (far focus)

--------------------------------------------------
$ gphoto2 --shell
gphoto2: {/mnt/dev/prog/crossroad} /> set-config-value
/main/actions/manualfocusdrive=0

*** Error ***
Failed to set new configuration value 0 for configuration entry
/main/actions/manualfocusdrive.
*** Error (-1: 'Unspecified error') ***
gphoto2: {/mnt/dev/prog/crossroad} /> set-config-value
/main/actions/manualfocusdrive=7

*** Error ***
Failed to set new configuration value 7 for configuration entry
/main/actions/manualfocusdrive.
*** Error (-1: 'Unspecified error') ***
--------------------------------------------------

And so on. All of your commands outputted this same error. :-/

> I really need to try harder to find a cheap EOS camera on ebay
> for testing :-)

Would be nice. :-)
I would try to patch these too but I must see if I can make some time
for it. Of course I would appreciate you or someone else fixing these
before! uhuhuh ;-)

Thanks anyway. Hopefully we'll find a solution because that would be a
very nice feature if it worked.

Jehan

>
> Regards,
> Daniel
> --
> |: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
> |: http://libvirt.org              -o-             http://virt-manager.org :|
> |: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
> |: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

_______________________________________________
Entangle-devel mailing list
Entangle-devel@gna.org
https://mail.gna.org/listinfo/entangle-devel

Reply via email to