|
|
#16 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 52
Karma: 616590
Join Date: Feb 2019
Device: K4 KT4 PW4 PW5
|
The K4NT has a different command for rtc, found after much trail and error.
Code:
lipc-set-prop -i com.lab126.powerd rtcWakeup 100 this can be trigger by writing a background script to detect a kindle in readyToSuspend and optionaly wakeup state to have it run a script and reset th wakeup clock. for example: background script Code:
#!/bin/sh
# location of your program
PROGRAM=/mnt/us/program.sh
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
do_program()
{
if [[ -f "$PROGRAM" ]]; then
# run program function to set picture
$PROGRAM do
fi
}
run_program()
{
if [[ -f "$PROGRAM" ]]; then
# run program function to reset wakup rtc
$PROGRAM run
fi
}
lipc-wait-event -m com.lab126.powerd goingToScreenSaver,readyToSuspend | while read event; do
case "$event" in
goingToScreenSaver*)
do_program;;
readyToSuspend*)
run_program;
esac
done;
Code:
#!/bin/sh
do()
{
# set picture using fbink or eips
}
run()
{
do
# set to your delay between picture changes
DELTA=$(( `date +%s` + 300 ))
lipc-set-prop -i com.lab126.powerd rtcWakeup $DELTA
}
# Main
case "${1}" in
"run" )
${1}
;;
"do" )
${1}
;;
* )
run
;;
esac
return 0
however as NiLuJe said it might be slightly different for your device, try running the command in divvernent sleep states and see the results |
|
|
|
|
|
#17 |
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46
Karma: 97694
Join Date: Feb 2012
Device: kindle touch
|
Hi all!
Is there a list available of the different sleep States? Or how can i find out which States exist? Br, Nick-tech |
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Kindle weather dashboard | matopeto | Kindle Developer's Corner | 23 | 02-17-2025 11:33 PM |
| Using Apple Maps instead of Google Maps | kakkalla | Marvin | 12 | 11-18-2013 08:03 PM |
| Content Kindle Weather Station | kindlews | Amazon Kindle | 38 | 02-15-2012 10:25 AM |
| Free (Kindle app) AccuWeather (Weather Forecasts on Kindle) | arcadata | Deals and Resources (No Self-Promotion or Affiliate Links) | 6 | 11-06-2011 03:39 PM |
| Maps on Kindle 2? | FreakyT | Amazon Kindle | 7 | 11-19-2010 08:22 PM |