Another thing, which is not so nice, is that running a script where I just shoot and then sleep, with the power saving option on 10 seconds, uses 230 mA! So a whole 100 mA used by the script alone, even though it's just sleeping. Any ideas?
I think the problem is with sleep(), it probably doesn't work properly.When pressing the power button, it draws a bit over 500 mA. This camera is much hungrier than the SX210.
I think the problem is with sleep(), it probably doesn't work properly.
How specifically do you propose that sleep() "doesn't work properly"?
There might be differences due to secondary factors, like if being in alt mode is causing the display to update constantly. Another possibility might be that the conf.alt_prevent_shutdown / "disable LCD off in ..." code (which is enabled by default for alt and script) affects power consumption in some way.
So, just to be clear, physically pressing the shutter button has the same power draw profile as calling the script shoot( ) function?
Quote from: waterwingz on 26 / May / 2017, 16:35:19So, just to be clear, physically pressing the shutter button has the same power draw profile as calling the script shoot( ) function?Yes, I tested it again. Not sure if it is the SAME but pretty similar. It peaks at around 600 mA, both when physically pressing the button and when calling it from a script. No significant differences.
QuoteHow specifically do you propose that sleep() "doesn't work properly"?So sleep() is like a yield? I didn't know that.
I already disabled that, or else the screen won't shut down. Is there any special code called if it is set to "Never"?
Does the power stay high afterwards in both cases?
--[[@title Delayed Single Shot@chdk_version 1.3@param a = interval (min)@default a 9--]]b=aset_aflock(1)set_mf(1)focus_distance=get_focus()repeats = get_tick_count()if b>=a then--set_focus(focus_distance)shoot()endset_led(9,1)sleep(100)set_led(9,0)sleep(60*1000-(get_tick_count()-s))b=b+1 until (false)
Started by Leonardo Miguel Delgado « 1 2 » General Discussion and Assistance
Started by netsky1 DSLR Hack development
Started by Lebeau General Discussion and Assistance
Started by PollyWell General Help and Assistance on using CHDK stable releases
Started by RaduP General Discussion and Assistance