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

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
Junior Member
yparitcher knows the difference between 'who' and 'whom'yparitcher knows the difference between 'who' and 'whom'yparitcher knows the difference between 'who' and 'whom'yparitcher knows the difference between 'who' and 'whom'yparitcher knows the difference between 'who' and 'whom'yparitcher knows the difference between 'who' and 'whom'yparitcher knows the difference between 'who' and 'whom'yparitcher knows the difference between 'who' and 'whom'yparitcher knows the difference between 'who' and 'whom'yparitcher knows the difference between 'who' and 'whom'yparitcher knows the difference between 'who' and 'whom'
 
Posts: 4
Karma: 10000
Join Date: Feb 2019
Device: K4
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
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle weather dashboard matopeto Kindle Developer's Corner 15 12-31-2018 01:54 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 04:50 AM.


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