« Reply #462 on: 06 / December / 2011, 14:08:47 »
In any case, I've attached some builds so others can try this out and provide feedback.
The build on my camera just got into a state where it failed to refresh the screen after closing the CHDK menu.
So, although vid_turn_off_updates() -> ScreenLock() is promising, there are still some kinks to work out.
It'd be nice if we could hook in somewhere and get the opportunity to draw our stuff on the back buffer right before the firmware swaps buffers, but I have no idea whether that is feasible (or whether the original firmware actually operates that way, for that matter). Failing that, at least doing ScreenLock while the menu is up would prevent the worst of the visual issues, provided we can make it work reliably. (It strikes me as odd that pretty much no two models handle screen updates the same way. This isn't something I think Canon would do differently with every iteration???)
I tried it on the G12 and although it does make the CHDK display a lot more stable it also causes major problems.
For example if a script uses the 'shoot' command the camera tries to switch to review mode after the picture is taken. The screen goes black and the review is not shown (because of the lock presumably). The screen stays black and nothing is displayed again until the script exits.
Phil.

Logged
CHDK ports:
sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
g12 (1.00c, 1.00e, 1.00f & 1.00g)
sx130is (1.01d & 1.01f)
ixus310hs (1.00a & 1.01a)
sx40hs (1.00d, 1.00g & 1.00i)
g1x (1.00e, 1.00f & 1.00g)
g5x (1.00c, 1.01a, 1.01b)
g7x2 (1.01a, 1.01b, 1.10b)