Might seem this should be irrelevant when plan-all-along turns power off between script runs. But until now it was assumed okay to turn power off any time after script completed. Now I'm suspecting that some delay in turning power off might account (partly?) for previous erratic results.
I'd like to test and report more accurately. Would it be possible to have time recorded as HH:MM:SS (include seconds) for logging in your very helpful onshot3.lua ?
That's the nice part about having the script issue a shutdown before you actually cut the power off. The camera will go through whatever it normally does to turn off in a safe and organized fashion. Simply killing the power can cause problems ...
Indeed safe shutdown is nice and is necessary. In the button-held-down scenario, the part that puzzles/worries me is this: For shut down, script sends 'press power button' event. Camera 'obeys' (we can watch it shut down). But, to 'obey' the software press button event, the camera must ignore the physical 'down' status of the held-down-power-button. Thereafter, for the next autostart to occur, we assume camera must respect the physical 'down' status of the power button. This seems contradictory or potentially unreliable to me... but perhaps due to my lack of understanding what chdk and scripts actually do behind the scenes? Or perhaps there is a real issue, and could account for erratic results in trials so far??
If you observe what happens when you press the button, the camera retracts the lens and then turns itself off. It will not turn on again if you continues to hold the button - it only starts up again when it sees the button pressed again. And the magic behind that is likely a tiny bit of electronics that essentially does the restart in hardware.
[begin manual test] Quick press power to turn on normally. Camera starts up, extends lens, CHDK autostarts.Press and *hold* power button. Lens retracts, camera shuts down. Button still held down continuously.After several seconds, camera starts up, extends lens, CHDK autostarts. Stayed on for a few minutes until I removed pressure on button. [end manual test]
edit: and also FWIW, I known a number of people have used the permanently pressed power button approach successfully.
Started by leedsgreen
« 1 2 »
Creative Uses of CHDK
Started by acseven
General Help and Assistance on using CHDK stable releases
Started by nod_rog
Hotwire! Hardware Mods, Accessories and Insights
Started by cdvideo
Started by peabody
Creative Uses of CHDK