Quote:
Originally Posted by kobayashi
The new version works well on my KA1 but took about 5 poweroff cycles to begin working.
|
Oh. What does the final result (screensaver.cfg) look like for you?
There's very little time between Poweroff (displayed on screen) and actual poweroff (code stops running, too late to save output). There is a lot more time for Sleeping (displayed on screen) until device actually goes to sleep.
That's why for Sleeping it does a full screen scan [which might take 3-4 seconds so wait a bit for scanline to appear perhaps?] and for Poweroff it just uses the previously detected Sleeping offset (which works as long as Sleeping / Poweroff messages displayed by Kobo appear in the same place).
So if the Sleeping scanline is not detected properly, the Poweroff scanline will fail too.