Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 06-23-2019, 08:56 PM   #16
yparitcher
Connoisseur
yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.
 
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
however this can only be set when the kindle is in the readyToSuspend state which it enters for a few seconds before sleeping.

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
see https://github.com/yparitcher/kindle...kround#L44-L54 for usage

however as NiLuJe said it might be slightly different for your device, try running the command in divvernent sleep states and see the results
yparitcher is offline   Reply With Quote
Old 08-16-2019, 10:44 AM   #17
nick-tech
Enthusiast
nick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned offnick-tech can read ebooks with the screen turned off
 
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
nick-tech is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle weather dashboard matopeto Kindle Developer's Corner 23 02-17-2025 10:33 PM
Using Apple Maps instead of Google Maps kakkalla Marvin 12 11-18-2013 07:03 PM
Content Kindle Weather Station kindlews Amazon Kindle 38 02-15-2012 09:25 AM
Free (Kindle app) AccuWeather (Weather Forecasts on Kindle) arcadata Deals and Resources (No Self-Promotion or Affiliate Links) 6 11-06-2011 02:39 PM
Maps on Kindle 2? FreakyT Amazon Kindle 7 11-19-2010 07:22 PM


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


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