OK, I think I got it installed okay.
The first time I run check db integrity, everything's all-ok and not flipped (arrow showed top left corner). The second time I run check db integrity, it comes back flipped. From then on it flips every other page, e.g. I go to main menu, it's upside down. I go into wifi menu, it's correct. I enable wifi, it's upside down. And so on and so forth. So once it starts flipping, it keeps flipping.
I think this could be related to the effect I've noticed once before and described in another post.
https://www.mobileread.com/forums/sho...94#post3127194
Somehow the device has two possible behaviours. One where no flips occur, and another where flips do occur. So it may be pngshow kicks it into the "start flips" phase.
Although that can't be the whole story. I can trigger those flips in KSM only if the pngshow runs in the context of the db_chk_integrity script. If I enable WiFi, telnet in, run pngshow from the telnet console - everything is fine. pngshow shows its pic; navigating ksm does not flip. Running db_chk_integrity also does not flip anymore - probably because my running pngshow from telnet already created the correct /tmp/pngshow file. Somehow only the combination - rotation detection while ksm was executing the script - triggers the flipping.
It's a baffling issue, that's for sure.
Maybe if you add a transparent 1x1 pixel png and pngshow that as part of your startup script before KSM starts for seriously, would magically fix things. That's the stupidest thing I can think of right now.
To fix it properly KSM would have to detect the rotation behaviour somehow. You can see on telnet once it starts flipping the fb0/rotation is switching between 0 and 2 as you navigate the KSM