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, 03: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, 08: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: 15
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, 05:09 AM   #63
mironov
Junior Member
mironov doesn't littermironov doesn't litter
 
Posts: 1
Karma: 124
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
Old 09-24-2020, 04:44 AM   #64
LUNZ
Junior Member
LUNZ began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2020
Device: PW1
Quote:
Originally Posted by StefanS View Post
... and here is the modified files for the PW
(just utils.sh from bin and a config with two RTCs)

regards,
Stefan
Hi Stefan, I know this is an old thread, but can you provide some clarification on what I need to do to get this running on a PW1? It might be easier to provide the exact zip of files to add to the extensions folder.

Current Setup:
Kindle Paperwhite 1
running 5.3.3 & Jailbroken


I'm getting this error with the official release:
Code:
/mnt/us/extensions/onlinescreensaver/bin/scheduler.sh: line 125: can't create /sys/class/rtc/rtc0/wakealarm: nonexistent directory
LUNZ is offline   Reply With Quote
Old 09-29-2020, 12:20 AM   #65
LUNZ
Junior Member
LUNZ began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2020
Device: PW1
I was able to update to firmware 5.6.1.1 on my PW1 and the screensaver is automatically downloading from a docker container running this: https://github.com/sibbl/hass-kindle-screensaver

Unfortunately, when I lock the screen, it cycles for 60 seconds every time. This kills my battery.

I know this is an old thread, but is there something in the config that someone can point to that I can change this setting?
LUNZ is offline   Reply With Quote
Advert
Old 06-08-2021, 10:39 AM   #66
jonnydeath
Junior Member
jonnydeath began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jan 2015
Device: Kindle PW
To get this to run on my PW3 with 5.12.4 I had to change all the

source config.sh
source utils.sh

to the full path:

source /mnt/us/extensions/onlinescreensaver/bin/config.sh
source /mnt/us/extensions/onlinescreensaver/bin/utils.sh

in enable.sh, disable.sh, update.sh, schedule.sh
jonnydeath is offline   Reply With Quote
Old 08-13-2021, 05:26 PM   #67
hellogareth
Junior Member
hellogareth began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2021
Device: PW2
Quote:
Originally Posted by jonnydeath View Post
To get this to run on my PW3 with 5.12.4 I had to change all the

source config.sh
source utils.sh

to the full path:

source /mnt/us/extensions/onlinescreensaver/bin/config.sh
source /mnt/us/extensions/onlinescreensaver/bin/utils.sh

in enable.sh, disable.sh, update.sh, schedule.sh
Thanks, jonnydeath. This gets the image from the server on a PW2 5.12.2.1.1, for me.
hellogareth is offline   Reply With Quote
Old 10-28-2021, 02:56 AM   #68
speedyg0nz
Junior Member
speedyg0nz began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2021
Device: none


Thanks for this extension, and all the little tips on how to get it working after the new software updates! My PW2 is now a desk calendar that shows me upcoming events for the coming weeks!

For those curious about how I generated the calendar screensaver, I automate the running of a little script on a Raspberry Pi that pulls events from my Google Calendar daily. The script also formats the event into the desired layout before rendering as an image, and placing it on a HTTP server (that also runs on the Raspberry Pi). The Kindle then retrieves the calendar from the HTTP server every morning via the Online Screensaver extension, and changing the screensaver to show me the updated calendar.
speedyg0nz is offline   Reply With Quote
Old 03-02-2022, 04:17 AM   #69
Kitoons
Junior Member
Kitoons began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Mar 2022
Location: Nantes, France
Device: Kindle PW3
I have two Kindle PaperWhite PW3, one in 5.13.3 (soft jailbroken) and one in 5.13.7 (serial jailbroken).

For futur users coming through this topic. On both of them, for this extension to work properly, I needed to modify three things:

- Modification of the rtc to rtc1 in config.sh
- Modification of the lipc-wait event call in utils.sh as described by @terencelzw in this post
- Modification of the include of utils.sh and config.sh in other files as described by @jonnydeath in this post

And voila, two kindle, one for my leaving room, on for my office room, ready to display a lot of useful informations. (once I will have developed the server part that will gather the intel and generate the picture)
Kitoons is offline   Reply With Quote
Old 05-12-2022, 09:13 AM   #70
XTy9zVWXwn
Junior Member
XTy9zVWXwn began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Nov 2021
Device: Paperwhite 3 (7th gen)
Can't get wifi to work after wake up from sleep

I been trying to use is with my PW3 in fw 5.14.2. I can't seem to get network to work in after waking up from sleep. Only if the screen is on does the network work.

I created this test script to get more logging:
Code:
cd "$(dirname "$0")"

source /mnt/us/extensions/onlinescreensaver/bin/utils.sh
source /mnt/us/extensions/onlinescreensaver/bin/config.sh

log_network() {
    logger "NET ifconfig > $(ifconfig wlan0)"
    logger "NET wifid cmState > $(lipc-get-prop com.lab126.wifid cmState)"
    logger "NET wifid signalStrength > $(lipc-get-prop com.lab126.wifid signalStrength)"
    logger "NET wpa_cli status > $(wpa_cli status verbose)"
}

logger "Start Wait"
wait_for 300
logger "Wake"
logger "wpa_cli reassociate $(wpa_cli -i wlan0 reassociate)"

WLANFAIL=0
WLANCOUNTER=0
wait_wlan(){
    return $(lipc-get-prop com.lab126.wifid cmState | grep CONNECTED | wc -l)
}

while wait_wlan; do
    if [ ${WLANCOUNTER} -eq 10 ]; then
        log_network
        logger "wpa_cli disconnect: $(wpa_cli -i wlan0 disconnect)"
        logger "wpa_cli reconnect: $(wpa_cli -i wlan0 reconnect)"
    fi
    if [ ${WLANCOUNTER} -eq 30 ]; then
        log_network
        logger "wifid disable $(lipc-set-prop com.lab126.wifid enable 0)"
        logger "wifid enable $(lipc-set-prop com.lab126.wifid enable 1)"
    fi
    if [ ${WLANCOUNTER} -eq 50 ]; then
        log_network
        logger "wpa_cli reassociate $(wpa_cli -i wlan0 reassociate)"
    fi
    if [ ${WLANCOUNTER} -eq 60 ]; then
        log_network
        WLANFAIL=1
        logger "WLAN failed"
        break
    fi
    let WLANCOUNTER=WLANCOUNTER+1
    logger "Waiting for WLAN ${WLANCOUNTER}"
    sleep 1
done

/bin/ping -c 1 -w 2 $TEST_DOMAIN 2>&1 >> $LOGFILE && echo "Ping success" >> $LOGFILE

less $LOGFILE
But it just fail over and over, repeating this same info:
Code:
NET ifconfig > wlan0 Link encap:Ethernet HWaddr FC:A6:67:85:7A:DD UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:27481 errors:3 dropped:4338 overruns:0 frame:3 TX packets:10808 errors:9 dropped:0 o
verruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:7240800 (6.9 MiB) TX bytes:1435062 (1.3 MiB)
NET wifid cmState > NA
NET wifid signalStrength >
NET wpa_cli status > Selected interface 'wlan0' bssid=ac:84:c6:2a:12:db ssid=REDACTED id=1 mode=station pairwise_cipher=CCMP group_cipher=TKIP key_mgmt=WPA2-PSK wpa_state=COMPLETED address=fc:a
6:67:85:7a:dd
Anyone have a clue what's going on?

I've tried all the rtc, only with rtc1 does waking up work, which lead me to this problems.

Last edited by XTy9zVWXwn; 05-12-2022 at 09:17 AM.
XTy9zVWXwn is offline   Reply With Quote
Old 05-14-2022, 06:27 PM   #71
Spindoctor
Junior Member
Spindoctor began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Feb 2012
Device: PRS-T1
Works for me

I also have a PW 3 with the recent firmware (5.14.2), but it works for me.

I applied all the mods that Kitoons mentioned.

Also, I noticed, that some of the files often get corrupt when I frequently connect and disconnect the Kindle to my Linux system. For this reason I had to upload some of the files more than once.

However, if you try all that, I would suggest you recheck your settings. For example I misconfigured the schedule once, which also resulted in a strage behavior.

Good luck.
Spindoctor is offline   Reply With Quote
Old 05-17-2022, 04:39 AM   #72
XTy9zVWXwn
Junior Member
XTy9zVWXwn began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Nov 2021
Device: Paperwhite 3 (7th gen)
Quote:
Originally Posted by Spindoctor View Post
I also have a PW 3 with the recent firmware (5.14.2), but it works for me.

I applied all the mods that Kitoons mentioned.

Also, I noticed, that some of the files often get corrupt when I frequently connect and disconnect the Kindle to my Linux system. For this reason I had to upload some of the files more than once.

However, if you try all that, I would suggest you recheck your settings. For example I misconfigured the schedule once, which also resulted in a strage behavior.

Good luck.
Thanks for responding. I've isolated the waitfor method for testing so it can't be the schedule. Still it is good to know that the device/firmware is not the culprit.

Last edited by XTy9zVWXwn; 05-17-2022 at 04:42 AM.
XTy9zVWXwn is offline   Reply With Quote
Old 05-30-2022, 06:28 AM   #73
andraz
Junior Member
andraz began at the beginning.
 
Posts: 7
Karma: 10
Join Date: May 2022
Device: Kindle PW3
Quote:
Originally Posted by Spindoctor View Post
I also have a PW 3 with the recent firmware (5.14.2), but it works for me.
Can you help me with that? I've tried to get my PW3 (5.14.2) to work with the online screensaver extension, with no success. What I've done so far:
1. reset the device
2. applied JB (WatchThis), incl. hotfix
3. installed the latest KUAL (booklet) & MRPI
4. installed screensaver hack
5. copied online screensaver content (from the first post of this thread) to the extensions folder
6. applied all three corrections to the code (from Kitoons post)
7. changed IMAGE_URI, DEFAULTINTERVAL and SCHEDULE in config.sh

I get to see the png fetched from the web, but it does not refresh. Sometimes weird things occur, such as showing some older images as screenshots after I lock the device by pressing the physical button.
andraz is offline   Reply With Quote
Old 06-03-2022, 10:10 AM   #74
andraz
Junior Member
andraz began at the beginning.
 
Posts: 7
Karma: 10
Join Date: May 2022
Device: Kindle PW3
I've finally figured it out. A missing piece of the puzzle was to disable WIFI and simply let the script to do its job (it enables WIFI itself right before needed and disables it afterward). If WIFI is not disabled when Kindle is awake, it gets suspended by the system when it falls asleep. In this case, the command "lipc-get-prop com.lab126.cmd wirelessEnable" will still return 1 even though there is no connection established (no response to ping). It is possible to overcome this by simulating a press of the physical button and waking the Kindle before the script execution (this has been implemented in Stefan's version). But doing that the backlight will flash every time the screen gets updated.
andraz is offline   Reply With Quote
Old 06-21-2022, 01:50 AM   #75
XTy9zVWXwn
Junior Member
XTy9zVWXwn began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Nov 2021
Device: Paperwhite 3 (7th gen)
Quote:
Originally Posted by andraz View Post
I've finally figured it out. A missing piece of the puzzle was to disable WIFI and simply let the script to do its job (it enables WIFI itself right before needed and disables it afterward). If WIFI is not disabled when Kindle is awake, it gets suspended by the system when it falls asleep. In this case, the command "lipc-get-prop com.lab126.cmd wirelessEnable" will still return 1 even though there is no connection established (no response to ping). It is possible to overcome this by simulating a press of the physical button and waking the Kindle before the script execution (this has been implemented in Stefan's version). But doing that the backlight will flash every time the screen gets updated.
That is some great detective works. Thanks for sharing.
XTy9zVWXwn 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 06:47 PM
SSModeSwitcher: An extension to change Screensaver mode thomass Kindle Developer's Corner 13 11-04-2012 09:31 PM
Troubleshooting file extension gerry7 Amazon Kindle 1 05-25-2011 06:55 AM
Will there be another US copyright extension? pdurrant General Discussions 30 04-08-2011 10:12 AM
NO extension, no sugar.... Greg Anos Lounge 7 01-16-2010 10:23 AM


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


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