View Single Post
Old 11-29-2015, 06:04 PM   #2512
Alan_S
Evangelist
Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.
 
Alan_S's Avatar
 
Posts: 446
Karma: 1084584
Join Date: Aug 2007
Location: Sisak, Croatia
Device: Kobo Aura H2O, Kobo Aura ONE
Quote:
Originally Posted by Ken Maltby View Post
Having to charge once a week, perhaps while reading, is no hardship and being able to go two weeks between charges, instead of just one week, would not be worth much to me. (Certainly nor enough to put up with Nickel.)
Well, certainly I don't like nickel also, but also is true that for some reason koreader when suspended has higher battery drainage that nickel.

That's the reason why I now power off reader if I won't read book for a longer time (in hours).

Some people suggest using suspend script (suspend.sh) from CoolReader that apparently has same battery impact as nickel's script. I didn't tried that though.

But, just to place here, this is suspend script from CoolReader (actually, from whole Vlasovsoft package):

Code:
#!/bin/sh

export PATH=$PATH:/sbin:/usr/sbin

echo "suspend.sh: enter"

handler()
{
    kill -15 $pid
    echo 0 > /sys/power/state-extended
    echo "suspend.sh: killed"
    exit 1
}

trap handler SIGTERM

sleep 10 &
pid=$!
wait $pid

# disable wifi
if lsmod | grep -q sdio_wifi_pwr ; then
    wlarm_le -i eth0 down
    ifconfig eth0 down
    /sbin/rmmod -r dhd
    /sbin/rmmod -r sdio_wifi_pwr
fi

echo 1 > /sys/power/state-extended
echo "suspend.sh: delay 2s (dragon)"
sleep 2 &
pid=$!
wait $pid

echo "sleeping... zzz-zzz-zzz-zzz :)"
sync
echo mem > /sys/power/state
echo 0 > /sys/power/state-extended

echo "suspend.sh: normal exit"
And this is suspend script from koreader:

Code:
#!/bin/sh
export PATH="${PATH}:/sbin:/usr/sbin"

# Disable wifi
if lsmod | grep -q sdio_wifi_pwr ; then
	wlarm_le -i eth0 down
	ifconfig eth0 down
	rmmod -r dhd
	rmmod -r sdio_wifi_pwr
fi

# Go to sleep
sync
echo 1 > /sys/power/state-extended
sleep 2	# Because reasons?
echo mem > /sys/power/state
Alan_S is offline   Reply With Quote