View Single Post
Old 08-01-2015, 05:52 PM   #145
had
Member
had began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Aug 2015
Device: kobo aura hd, aura h20, elipsa 2e
Quote:
Originally Posted by GeoffR View Post
The code that the `Custom Sleep/Power-off timeouts` patch changes can only use values from 0-255. Although the register used to hold the timeout value is 32-bit and can hold much larger values, the code uses a 16-bit 'thumb' instruction to load the register, and there isn't room to use a wider instruction in the patch. It could be that the timeout function can accept larger values, but there is no way to load those larger values without re-writing the code.
I put a value of 960 in KoboReader.conf and it sleeps after approx 16 hours.

Maybe the patch could load the most significant byte of the word, instead of the least significant byte? Then we could set very large values in increments of approximately 4 hours. That is, if the thumb instruction could put a '6' into the other byte of the word, we'd have approximately 6 x 4 (around 24) hours.
had is offline   Reply With Quote