Is it possible to run the script as a daemon?
Well, technically it's possible to have a script exit CHDK <ALT> mode and run while the camera is in "normal" operations mode. The script can also re-enter <ALT> mode. See
exit_alt() and
enter_alt().
Here's a simplistic example :
--[[
@title daemon
@chdk_version 1.3
--]]
i=1
sleep(1000)
exit_alt()
repeat
sleep(1000)
draw_string(50, 50, i , 257, 258, 2)
i=i+1
until false
But as reyalp will be quick to point out, that's a mode where the script and camera behavior is somewhat undefined. So you would have to try that at your own risk.