The information in this post is obsolete. See
this post.
Spoiler:
I want to share an idea that might never make it into an updated version of KSM. Imagine you are running KOReader and leave the device alone for a long time, trusting that KOReader's automatic suspend function will kick in (or maybe you manually suspend the reader), but for some reason there occurs a problem and KOReader exits and gives control back to KSM. Since KSM does not have an auto suspend function, the device will stay awake until you return, or until the battery will be flat.
To prevent this from happening we try to do the following. 1) We modify KOReader so that it informs KSM whether the user made KOReader exit. 2) We modify KSM to display a message if KOReader exists without being explicitly asked by the user to do so; and to power the device down, if there is no user input for 20 seconds or so.
1.1) Modification of KOReader: modify .adds\koreader\frontend\apps\filemanager\filemanag ermenu.lua; code to insert is marked in red.
1.2) Modification of KOReader: modify .adds\koreader\frontend\apps\reader\modules\reader menu.lua; code to insert is marked in red.
If KOReader exits spontaneously, you will find a log file /log/koreader_exit_log.txt. Use "explore" to navigate there and read the file.
You can test the function by launching KOReader with the new script, and then kill it by telnet:
Code:
[root@(none) ~]# killall reader.lua
I removed the archives here, since they are not needed if you install the
patch for Auro One and Auro Edition 2 (which is compatible with all devices):