Hi
I finally was able to downgrade the Kindle to FW 5.4.5, after trying several howtos until I found one that was working.
Then I started my small test script:
Code:
#!/bin/sh
ENDWAIT=$(( `date +%s` + 900 ))
echo Wakeup time : `date -d @$ENDWAIT` $ENDWAIT
echo Current time: `date`
echo 0 > /sys/class/rtc/rtc0/wakealarm
echo $ENDWAIT > /sys/class/rtc/rtc0/wakealarm
echo Readback time: `cat /sys/class/rtc/rtc0/wakealarm`
lipc-wait-event -mt com.lab126.powerd '*'
It worked !!!
I then installed the screensaver hack and worked on the server side script.
Then, the next day, I tried again and it didn't wake up any more. Aaaargh!

Here's the protocol of my testscript:
Code:
Wakeup time : Tue Jul 4 19:15:42 EEST 2017
Current time: Tue Jul 4 19:10:42 EEST 2017
Now I pressed the power button to switch off
Code:
[19:10:46.936943] goingToScreenSaver 2
[19:11:46.974498] readyToSuspend 10
[19:11:51.954220] readyToSuspend 7
[19:12:12.019680] readyToSuspend 7
[19:12:17.021449] readyToSuspend 6
[19:12:22.028260] readyToSuspend 2
[19:12:27.037310] readyToSuspend 1
[19:12:35.584246] suspending
It does not wake up. So I pressed the power button
Code:
[19:18:26.800988] resuming
[19:18:26.819733] t1TimerReset
[19:18:26.909454] outOfScreenSaver 1
I tried again without using the power button to switch off. It's the same. It goes to sleep after about 10 minutes and nothing more (I increased the wakeuptime to 15 minutes, so it can go to suspend before waking up).
Now I see two alternatives: it happens to wakeup once because of who knows what (current star constellations, subspace anomalies, whatever) or because of the only change which I did to the system: the screensaver hack. So I uninstalled it.
It doesn't work. So what? Subspace Anomalies?
If anyone has any idea, I will try. If not, I think I have to give up. Running out of ideas.