bonny
I did try with click("display") but isn't relaible as that just toogle it without knowing current state.Executing click("display") until display is off should be best but seems that function to show current display state isnt available.
You should be able to check the DISPLAY_MODE
propcase. something like
props=require'propcase'
while get_prop(props.DISPLAY_MODE) ~= 2 do
click'display'
sleep(250) -- may not be needed, but there may be some delay before the prop changes
end
If your script is meant to work on other cams, be are that not all have a mode 2, or even a display key. You also might want to restore the original mode when the script ends
Regarding
With set_lcd_display(0) in playback the consumption goes to around 120mA but then sometime the camera just shut off without retracting lens.
The means the camera crashed. A
romlog may provide clues. If you've used set_lcd_display, on thing I'd do is make sure the display is on before you use set_record to change modes, IIRC quite a few cam crash it's off. This should only apply to set_lcd_display, the cams native display off function should be handled correctly.