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 11-22-2019, 04:33 AM   #61
terencelzw
Junior Member
terencelzw has a complete set of Star Wars action figures.terencelzw has a complete set of Star Wars action figures.terencelzw has a complete set of Star Wars action figures.
 
Posts: 3
Karma: 292
Join Date: Nov 2019
Device: Kindle Paperwhite 2
Finally managed to get kindle to wake up while in suspend mode

online screensaver extension currently does not update while kindle is in suspend mode for paperwhite2 on 5.9.4. It only updates when I press the power button to wake the kindle up.

In order to make it work for my kindle I had to change the wait_for function in utils.sh by a little. I modified the following lines

Before:
lipc-wait-event -s $REMAININGWAITTIME com.lab126.powerd resuming || true

After:
lipc-wait-event -s $REMAININGWAITTIME com.lab126.powerd wakeupFromSuspend,resuming || true

Hope this helps those who have been facing this issue
terencelzw is offline   Reply With Quote
Old 12-24-2019, 09:40 AM   #62
mdauso
Member
mdauso is that somebody.mdauso is that somebody.mdauso is that somebody.mdauso is that somebody.mdauso is that somebody.mdauso is that somebody.mdauso is that somebody.mdauso is that somebody.mdauso is that somebody.mdauso is that somebody.mdauso is that somebody.
 
mdauso's Avatar
 
Posts: 12
Karma: 45102
Join Date: Dec 2019
Location: Göttingen/Gemany
Device: Kindle PW, PW2
Hello to all and Merry Christmas,

I‘m new here and I have problems getting the online screensaver to run on my PW2 with Jailbrake, KUAL, and linkss. The PW2 was jailbroken via seriel USB adapter due to firmware 5.12.1.
Is online screensaver running on this firmware? Screensaver hack is running well.

Cheers, Mario
mdauso is offline   Reply With Quote
Advert
Old 02-25-2020, 06:09 AM   #63
mironov
Junior Member
mironov began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Feb 2020
Device: K5/KT, KOA2
I'm using Onlinescreensaver on my Kindle Touch (K5), and spent good amount of time getting it to wake up from suspend.

Here is the code I ended up with:

Code:
# runs when in the readyToSuspend state;
# sets the rtc to wake up
# arguments: $1 - amount of seconds to wake up in
set_rtc_wakeup()
{
	lipc-set-prop -i com.lab126.powerd rtcWakeup $1 2>&1
	logger "rtcWakeup has been set to $1"
}

##############################################################################
# sets an RTC alarm
# arguments: $1 - time in seconds from now

wait_for () {
	ENDWAIT=$(( $(currentTime) + $1 ))
	REMAININGWAITTIME=$(( $ENDWAIT - $(currentTime) ))
	logger "Starting to wait for timeout to expire: $1"

	# wait for timeout to expire
	while [ $REMAININGWAITTIME -gt 0 ]; do
		EVENT=$(lipc-wait-event -s $1 com.lab126.powerd readyToSuspend,wakeupFromSuspend,resuming)
		REMAININGWAITTIME=$(( $ENDWAIT - $(currentTime) ))
		logger "Received event: $EVENT"

		case "$EVENT" in
			readyToSuspend*)
				set_rtc_wakeup $REMAININGWAITTIME
			;;
			wakeupFromSuspend*|resuming*)
				logger "Finishing the wait"
				break
			;;
			*)
				logger "Ignored event: $EVENT"
			;;
		esac
	done

	logger "Wait finished"
}
Hope it helps someone
mironov 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
AZW3 Extension fcm52 Amazon Kindle 6 09-29-2013 07:47 PM
SSModeSwitcher: An extension to change Screensaver mode thomass Kindle Developer's Corner 13 11-04-2012 10:31 PM
Troubleshooting file extension gerry7 Amazon Kindle 1 05-25-2011 07:55 AM
Will there be another US copyright extension? pdurrant General Discussions 30 04-08-2011 11:12 AM
NO extension, no sugar.... Ralph Sir Edward Lounge 7 01-16-2010 11:23 AM


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


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