Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 08-20-2017, 04:01 PM   #1
embryo
Fanatic
embryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbit
 
embryo's Avatar
 
Posts: 509
Karma: 60774
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?
embryo is offline   Reply With Quote
Old 08-20-2017, 07:17 PM   #2
Ken Maltby
Wizard
Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.
 
Ken Maltby's Avatar
 
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
Ken Maltby is offline   Reply With Quote
Old 08-20-2017, 10:01 PM   #3
embryo
Fanatic
embryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbit
 
embryo's Avatar
 
Posts: 509
Karma: 60774
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)
embryo is offline   Reply With Quote
Old 09-21-2017, 03:55 PM   #4
embryo
Fanatic
embryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbitembryo with a running start, can leap into geosynchronous orbit
 
embryo's Avatar
 
Posts: 509
Karma: 60774
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.
  • Install the uptime.sh if you don't already have it ;o)
  • Extract the poweroff.sh from the poweroff.sh.zip to the Koreader folder (.adds\koreader)
  • Edit the koreader\frontend\device\kobo\device.lua (use a text editor that respects line breaks like Notepad++) and change the os.execute("poweroff") to os.execute("./poweroff.sh")
Thats it!
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
embryo is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Thanks Koreader tjpearson KOReader 6 05-22-2019 10:21 AM
iLiad Trying WIFI: turning on, connecting, and then turning off after ~5 seconds wankel iRex 2 02-21-2016 05:43 AM
Aura H2O KSM Wifi keeps turning off / Koreader progress sync tayseidel Kobo Developer's Corner 1 12-24-2015 08:27 PM
KoReader! Readirect Kindle Developer's Corner 2 10-31-2014 09:37 AM
Hanlin v3 Page Turning Button not always Turning the Page Jakodai HanLin eBook 16 01-21-2009 04:44 AM


All times are GMT -4. The time now is 12:04 PM.


MobileRead.com is a privately owned, operated and funded community.