Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 08-20-2017, 04:01 PM   #1
embryo
Addict
embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.
 
embryo's Avatar
 
Posts: 370
Karma: 36714
Join Date: Aug 2013
Device: Kobo Glo
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
Advert
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,089
Karma: 5821288
Join Date: Dec 2009
Location: The Heart of Texas
Device: JetBook Lite (retired), 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
Addict
embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.
 
embryo's Avatar
 
Posts: 370
Karma: 36714
Join Date: Aug 2013
Device: Kobo Glo
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
Addict
embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.embryo can successfully navigate the Paris bus system.
 
embryo's Avatar
 
Posts: 370
Karma: 36714
Join Date: Aug 2013
Device: Kobo Glo
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Thanks Koreader tjpearson KOReader 5 02-23-2017 10:00 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 01:09 AM.


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