08-20-2017, 05:01 PM | #1 |
Fanatic
Posts: 520
Karma: 64554
Join Date: Aug 2013
Device: Kobo Glo, GloHD
|
Turning off KoReader
Does anyone knows how the KoReader is turning itself down?
I searched for any script with a name like "shutdown", "turnoff", "powerdown", etc., but didn't find anything. I also noticed that the "suspend.sh" that was used some time ago is not longer needed! So, where all the magic is performed? Maybe in a lua file somewhere? |
08-20-2017, 08:17 PM | #2 |
Wizard
Posts: 4,465
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
You might check the "Device" .lua. There are a bunch of new related menu items that even include a reboot of the device, I haven't looked at where they are implemented.
Luck; Ken |
08-20-2017, 11:01 PM | #3 |
Fanatic
Posts: 520
Karma: 64554
Join Date: Aug 2013
Device: Kobo Glo, GloHD
|
Thanks for the tip.
It was there alright. It was the koreader\frontend\device\kobo\device.lua I wanted to use the KSM shutdown script that I had modified to measure the uptime of the device. It works like a charm. I've got to keep the Book cover too (I couldn't do this from KSM) |
09-21-2017, 04:55 PM | #4 |
Fanatic
Posts: 520
Karma: 64554
Join Date: Aug 2013
Device: Kobo Glo, GloHD
|
Just thought of writing some instructions to use the uptime.sh script (to measure the overall uptime of a Kobo eReader) with KoReader.
Well, its really very simple.
Now, whenever the KoReader closes (by the menu entry "Power off" or by a long press of the power button) the uptime.txt will be updated. If you like to have the KSM's poweroff_info.html displayed instead of the KoReaders's screen saver, just un-comment these lines in the poweroff.sh (remove the # from the start of each line) Code:
#pofile=${pofile:-"$ksmuser/txt/poweroff_info.html"} #$ksmroot/kbmessage.sh "-f $pofile" & #usleep 400000 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Thanks Koreader | tjpearson | KOReader | 6 | 05-22-2019 11:21 AM |
iLiad Trying WIFI: turning on, connecting, and then turning off after ~5 seconds | wankel | iRex | 2 | 02-21-2016 06:43 AM |
Aura H2O KSM Wifi keeps turning off / Koreader progress sync | tayseidel | Kobo Developer's Corner | 1 | 12-24-2015 09:27 PM |
KoReader! | Readirect | Kindle Developer's Corner | 2 | 10-31-2014 10:37 AM |
Hanlin v3 Page Turning Button not always Turning the Page | Jakodai | HanLin eBook | 16 | 01-21-2009 05:44 AM |