Re: Canon PowerShot G7X Mark II - cannot get endless preview

Raymond de Vries <[email protected]> Sat, 13 May 2023 12:53:49 +0200
Newsgroups gmane.comp.multimedia.gphoto.devel
Message-ID <[email protected]>
Hi Marcus,

Thanks for your quick reply.

Hmm that is rather strange then. Where do you look for in the log file? 
Now I see in the code 'EOS_KeepDeviceOn', aha

I was searching online and I think I found a confirmation of what you 
noticed in the code: there is no setting for this in the menu of the 
camera. There is only a setting a maximum 3 minutes before the display 
is turned off.

I learned online and later found out myself in more detail that when I 
press for instance the shutter button within the 3 minutes, or even keep 
it pressed all the time, I keep getting preview frames. Would such a 
thing be possible to do from code? I wonder how this works...

Thanks again,
Raymond



On 12-05-2023 15:36, Marcus Meissner wrote:
> Hi Raymond,
>
> On Wed, May 10, 2023 at 08:50:06PM +0200, Raymond de Vries wrote:
>> Hi,
>>
>> I am trying out my Canon G7X to have an endless preview duration by calling
>> 'gp_camera_capture_preview()' in a loop (of course cleaning up via
>> gp_file_unref()). This is working well for some time and then
>> gp_camera_capture_preview() does not get a preview anymore.
>>
>> It seems that it is related to the setting 'Power Saving' - 'Display Off'.
>> It seems that the preview is only available for that specific amount of
>> time, with a maximum value of 3 minutes. Is there any way to avoid this?
>>
>> In general, I am trying to understand better how libgphoto2 is communicating
>> with the camera. So any tip or trick is welcome.
>>
>> I have included a few log files, hoping to provide the information that is
>> required. If it matters, this is on Ubuntu 22.04
> For the EOS cameras there was a KeepDeviceOn command which we are
> calling if present.
>
> Your G7X does not report that command to be available.
>
> Where is the Power Saving setting? Seems not in the config tree?
>
> Ciao, Marcus