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 02-25-2019, 02:17 AM   #1
Hamsky
Member
Hamsky began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Feb 2019
Device: Kobo Aura, Kobo H2O
Power-off timeout

Hi, All,

in KOReader we have sleep timeout, but how to set up power-off timeout?

For example if sleep more than 4 hours - switch book off, so will not drain battery.

Is there any option to do so?
Hamsky is offline   Reply With Quote
Old 02-25-2019, 11:23 AM   #2
Frenzie
Fanatic
Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.
 
Posts: 568
Karma: 115024
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
I suppose it might be theoretically possible with rtcwake.[1] But it seems like a pretty bad trade-off to me. The battery drains so slowly in sleep that it'll last for months, which is rather the point, whereas booting takes a while.

PRs welcome, of course.

[1] If the Kobo actually supports it.
Frenzie is offline   Reply With Quote
Advert
Old 02-26-2019, 05:57 AM   #3
Frenzie
Fanatic
Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.
 
Posts: 568
Karma: 115024
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
This piqued my curiosity. The answer would seem to be that it's not supported. On a normal device, you can do this to suspend to memory and wake up in 10 seconds:
Code:
sudo rtcwake -m mem -s 10
On a Kobo, you get this:
Code:
# rtcwake -m mem -s 10
rtcwake: /dev/rtc0 not enabled for wakeup events
Frenzie is offline   Reply With Quote
Old 02-26-2019, 10:52 AM   #4
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 8,317
Karma: 10777901
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
There may be a quirk to get them working, looking at the rcS init script might help, as I vaguely recall something of the sort there at one point (i.e., disabling rtc wakes).
NiLuJe is offline   Reply With Quote
Old 02-26-2019, 01:25 PM   #5
Frenzie
Fanatic
Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.
 
Posts: 568
Karma: 115024
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
Huh, there's indeed some kind of reference to it on line 213 of mine:
Code:
(
/usr/local/Kobo/pickel disable.rtc.alarm

if [ ! -e /etc/wpa_supplicant/wpa_supplicant.conf ]; then
  cp /etc/wpa_supplicant/wpa_supplicant.conf.template /etc/wpa_supplicant/wpa_supplicant.conf
fi

echo 1 > /sys/devices/platform/mxc_dvfs_core.0/enable

/sbin/hwclock -s -u
) &
Anyway, I'm not super interested. :P

Edit: looks it worked on the old Kobo Touch?

https://www.mobileread.com/forums/sh...=182891&page=2

But my kernel apparently doesn't have that "file".

It wouldn't surprise me if it worked on the https://github.com/lgeek/okreader kernel though.

Last edited by Frenzie; 02-26-2019 at 01:32 PM.
Frenzie is offline   Reply With Quote
Advert
Old 02-26-2019, 02:31 PM   #6
pazos
cosiñeiro
pazos is clearly one to watchpazos is clearly one to watchpazos is clearly one to watchpazos is clearly one to watchpazos is clearly one to watchpazos is clearly one to watchpazos is clearly one to watchpazos is clearly one to watchpazos is clearly one to watchpazos is clearly one to watchpazos is clearly one to watch
 
Posts: 102
Karma: 10628
Join Date: Apr 2014
Device: BQ Cervantes 4
Yes, the rtc-wake trick did work on old firmware (pre hardfloat) and required, at least in my case, a custom busybox build.
pazos 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
How do you alter the TimeOut? Beamer Smith Recipes 4 04-30-2016 04:17 PM
The Power of Exercise and The Power of Healthy Eating kimessex Self-Promotions by Authors and Publishers 0 08-28-2014 08:21 AM
Timeout hjay Feedback 2 02-16-2012 01:06 PM
XPal Power to Go - extra battery power cheyennedonna enTourage Archive 3 04-13-2010 11:22 PM


All times are GMT -4. The time now is 10:32 PM.


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