02-25-2019, 02:17 AM | #1 |
Enthusiast
Posts: 34
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? |
02-25-2019, 11:23 AM | #2 |
Wizard
Posts: 1,619
Karma: 724945
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. |
Advert | |
|
02-26-2019, 05:57 AM | #3 |
Wizard
Posts: 1,619
Karma: 724945
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 Code:
# rtcwake -m mem -s 10 rtcwake: /dev/rtc0 not enabled for wakeup events |
02-26-2019, 10:52 AM | #4 |
BLAM!
Posts: 13,478
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
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).
|
02-26-2019, 01:25 PM | #5 |
Wizard
Posts: 1,619
Karma: 724945
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 ) & 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. |
Advert | |
|
02-26-2019, 02:31 PM | #6 |
cosiñeiro
Posts: 1,271
Karma: 2200049
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.
|
|
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 |