Quote:
Originally Posted by leonmoonen
Finally, @frostschutz: when the scanline for sleep/standby was already registered in screensaver.cfg but the one for power-off wasn't detected yet, I still got scanlines when the device went into sleep mode (before going into power-off). This is not a big problem but it was unexpected, so I thought it might point at something special in the Forma context? Although I saw the scanline on the screen, the actual code for standby in screensaver.cfg was not changed/added (at least the time-stamp in the corresponding comment wasn't).
|
The thing is, I simply don't have a reliable method to detect standby/poweroff anymore. Not without going deeper into the rabbit hole, anyway, i.e. without LD_PRELOAD or outright patching of things. Which I want to avoid, since it would make the mod very firmware dependent (patches have to be re-done all the time).
So, screensaver addon doesn't KNOW AT ALL you're going into standby, or poweroff, or what. That's why the roundabout method of using a scanline in the first place. I have to look at the screen contents in order to be able to tell what is happening.
What I do know is when the reader was rebooted (due to service restart, time discrepancy, etc.). So what the addon does for the poweroff scanline is... keep detecting scanlines. And after reboot, simply use the last scanline that was done and assume it happened just before poweroff. So that's the poweroff scanline for you, and that's why it keeps on doing the scanline thing, it's just waiting for that poweroff to actually happen at some point.
It's a hack, a very roundabout method to do things, but - once the correct values are found - it works. Yay
Thanks for your feedback
Quote:
so reusability seems likely, esp on the same firmware
|
Same firmware (sometimes across firmwares if they didn't change the sleep screen any), same language, and if there are any patches regarding borders, system font (sizes), etc. If it changes a single pixel in the scanline row, you need new values unfortunately...