View Single Post
Old 05-12-2014, 09: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