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

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 03-16-2014, 04:50 PM   #76
z000ao8q
Connoisseur
z000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toys
 
Posts: 51
Karma: 5942
Join Date: May 2013
Device: kobo mini
Hello,
I just remember 2 important parts from my implementation:
- kill all nickel & Co (I don´t even start them; i commented them in run.sh)
- get the system- and the hardware-clock right. if they are not matching, the wakeup timestamp can not be used.

i am running a own sh-script to set the times from time to time. because both clocks are running un-synced.
I know its not completely correct with summer/winter-time. but I don´t care. I simply added another hour-wake to be more tolerant.

Quote:
echo `date`
ntpd -d -q -p de.pool.ntp.org
sleep 10
echo `date`
newtime=$((`date +%s`+7200))
newtime2=`date +%T -d @$newtime`
date +%T -s $newtime2
echo `date`
hwclock -w -u
z000ao8q is offline   Reply With Quote
Old 05-12-2014, 10:50 AM   #77
Soern
Junior Member
Soern began at the beginning.
 
Posts: 1
Karma: 10
Join Date: May 2014
Device: Kobo Mini
Hi there!

First of all, thank you z000ao8q for your work - suspending my Kobo works now!

However I had to fiddle with a few things as suspending did not function right away.

My device did suspend, but did not resume properly. I fixed the issue by unloading the modules and stopping the blinking LED.
Spoiler:
Code:
echo "ch 4" > /sys/devices/platform/pmic_light.1/lit
echo "cur 0" > /sys/devices/platform/pmic_light.1/lit
echo "dc 0" > /sys/devices/platform/pmic_light.1/lit


My suspend script now looks as follows:
Code:
#!/bin/sh
zcat /etc/images/one_moment_please.raw.gz  | /usr/local/Kobo/pickel showpic
echo 1 > /sys/power/state-extended
sh /usr/sbin/wifidown.sh

rmmod dhd
rmmod sdio_wifi_pwr
sync

/mnt/onboard/stuff/busybox_kobo rtcwake -m mem -s 30

insmod /drivers/ntx508/wifi/sdio_wifi_pwr.ko
insmod /drivers/ntx508/wifi/dhd.ko
sleep 2
sh /usr/sbin/wifiup.sh
zcat /etc/images/splash.raw.gz   | /usr/local/Kobo/pickel showpic
I don't know if stopping the blinking is absolutely necessary - I believe that the module unloading did the trick ;-)

The wifiup/wifidown.sh scripts are identical to the ones described here: http://www.scherello.de/?id=265.
Soern is offline   Reply With Quote
Advert
Old 02-15-2021, 01:44 AM   #78
fulldecent
Junior Member
fulldecent is an enigma wrapped up in a mystery.fulldecent is an enigma wrapped up in a mystery.fulldecent is an enigma wrapped up in a mystery.fulldecent is an enigma wrapped up in a mystery.fulldecent is an enigma wrapped up in a mystery.fulldecent is an enigma wrapped up in a mystery.fulldecent is an enigma wrapped up in a mystery.fulldecent is an enigma wrapped up in a mystery.fulldecent is an enigma wrapped up in a mystery.fulldecent is an enigma wrapped up in a mystery.fulldecent is an enigma wrapped up in a mystery.
 
fulldecent's Avatar
 
Posts: 3
Karma: 41000
Join Date: Feb 2021
Location: Philadelphia
Device: Kobo Aura Edition 2
I have tested rtc_sleep on a Kobo Aura Edition 2. It is apparently working as expected--basically it is unresponsive in all ways for a set number of seconds and then comes back to life.

I'd like to know if unloading modules like Wi-Fi before sleep will actually save energy.
fulldecent 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
Glo How to import reading Life Statistics from Kobo Touch to Kobo Glo? the_m Kobo Reader 5 12-13-2012 04:40 PM
$25 gift card w. purchase of Kobo Touch or Kobo Vox at Frys sufue Deals and Resources (No Self-Promotion or Affiliate Links) 0 07-15-2012 11:39 AM
Touch Kobo Touch defective after 3 months and Kobo Customer Support useless shaf Kobo Reader 5 12-04-2011 06:10 PM
Touch Kobo Touch not ejecting cleanly with Calibre OR Kobo Desktop - Windows 7 JBlyth Kobo Reader 11 08-03-2011 06:38 PM
Kobo Touch not disconnecting properly from Calibre OR Kobo Desktop - Windows 7 JBlyth Devices 1 08-03-2011 07:50 AM


All times are GMT -4. The time now is 02:19 AM.


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