I do see LcdCon_StopLcdPeriodicalSetting and LcdCon_StartLcdPeriodicalSetting in the sx260 dump. These do not exist in the D10 dump. No idea what they do, but the names are suggestive of something that periodically does something with the lcd Try at your own risk.
blight=1 -- backlight on / current statebldisp=true -- turn off display with eventproc if trueif call_event_proc('DispDev_EnableEventProc') == -1 then if call_event_proc('DispDev.Create') == -1 then bldisp=false -- must turn off display with set_backlight endend -- end of initialization codefunction backlight(bl) -- bl=0 off, 1 on, -1 toggle if(bl<0)then bl=bitxor(blight,1) -- toggles 0 or 1 elseif (bl>1)then bl=1 end if(bl==blight)then return end -- don't double set to current state blight=bl set_backlight(bl) -- also do the old way in case event_proc doesn't work if(bldisp)then if(bl==0)then call_event_proc('DispCon_TurnOffDisplay') else call_event_proc('DispCon_TurnOnDisplay') end endend
Good news! I had the "review" time set to 2 seconds on the SX260, and set to 0 on the other cameras. When I set review time to 0, the SX260 no longer turns on between pictures. So the new method works on all 4 cameras.
Also, CHDK shell has check boxes for compiler options. I have the box to allow native Lua calls checked, which worked until the recent trunk update. reyalp just fixed the expire by default problem, but it appears other CHDK shell compiler options are still being overridden. Was that fixed too? Thanks.
Looks like my last "fix" still confused CHDKSHELL. I think MSL fixed it for real now.
Quote from: reyalp on 01 / September / 2013, 14:55:50Looks like my last "fix" still confused CHDKSHELL. I think MSL fixed it for real now.I may be the only one confused. CHDK Shell unchecked the Lua native call option between builds. Is it supposed to stay checked?The main problem with CHDK Shell is that it stays stuck on my last 1.2 build. It won't update to the new 1.3 builds. So I need to change the trunk every time I start CHDK Shell. A big problem with this is that every time CHDK Shell starts, it thinks there's a new trunk, if you have the Internet check on. Then, it downloads the new trunk again even it's the same trunk it downloaded before, i.e. you start CHDK Shell twice in one day.The worst thing is that it when it re-downloads the trunk, it overwrites the trunk that it already downloaded without warning. So if you worked on that trunk, all your changes are lost. There needs to be a check before overwriting. I work around it by keeping Internet checking off, and backing up before turning it on. Maybe MSL fixed that already too?
I may be the only one confused. CHDK Shell unchecked the Lua native call option between builds. Is it supposed to stay checked?
The main problem with CHDK Shell is that it stays stuck on my last 1.2 build. It won't update to the new 1.3 builds. So I need to change the trunk every time I start CHDK Shell. A big problem with this is that every time CHDK Shell starts, it thinks there's a new trunk, if you have the Internet check on. Then, it downloads the new trunk again even it's the same trunk it downloaded before, i.e. you start CHDK Shell twice in one day.
The CHDK Shell creates for every new revision a new localbuildconf.inc. That means, you must choose your build options again. Or you copy the localbuildconf.inc.In case of the other problems you should clean up your configuration for the shell. Maybe it's helpful to delete the ini file.For me the shell works fine after the fix in rev. 3060.
You can call eventprocs from C code with call_func_ptr(_ExecuteEventProcedure) or by calling _ExecuteEventProcedure directly if you are in arm code.
Or does it have to be done like in gui.c for the romlog?
Started by Michael L General Help and Assistance on using CHDK stable releases
Started by danielkun General Help and Assistance on using CHDK stable releases
Started by bugsplatter Script Writing
Started by vihar1 « 1 2 » General Discussion and Assistance
Started by muhlisgursoy General Discussion and Assistance