Interestingly for Test 6 it works in both play and shooting mode.
It took me a little while to realize that I had the palette code implemented correctly. There was a clue in the original philmoz code about pointers not always being initialized right away but it only checked to see if the pointer was not null. I added some additional checks and that seems to have solved it. I think it's what's know as a race condition - sometime the CHDK code would try to set the palette before everything was ready and other times it would set it after everything was ready. I'll make the same fix in the "N" versions.
Yes it toggles between Canon and CHDK when doing that. This one has the colors on CHDK logo and ALT mode buttons right no matter what mode you are in / are booting to.
Does it lock out touches from reaching the Canon firmware when it's displaying "CHDK" on the debug printout? (i.e. does the CHDK UI work properly with no interference from the Canon UI ?)