11-22-2019, 04:33 AM | #61 |
Junior Member
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 |
12-24-2019, 09:40 AM | #62 |
Member
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 |
Advert | |
|
02-25-2020, 06:09 AM | #63 |
Junior Member
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" } |
09-24-2020, 05:44 AM | #64 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Sep 2020
Device: PW1
|
Quote:
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 |
|
09-29-2020, 01:20 AM | #65 |
Junior Member
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? |
Advert | |
|
06-08-2021, 11:39 AM | #66 |
Junior Member
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 |
08-13-2021, 06:26 PM | #67 | |
Junior Member
Posts: 5
Karma: 10
Join Date: Aug 2021
Device: PW2
|
Quote:
|
|
10-28-2021, 03:56 AM | #68 |
Junior Member
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. |
03-02-2022, 05:17 AM | #69 |
Junior Member
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) |
05-12-2022, 10:13 AM | #70 |
Junior Member
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 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 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 10:17 AM. |
05-14-2022, 07:27 PM | #71 |
Junior Member
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. |
05-17-2022, 05:39 AM | #72 | |
Junior Member
Posts: 7
Karma: 10
Join Date: Nov 2021
Device: Paperwhite 3 (7th gen)
|
Quote:
Last edited by XTy9zVWXwn; 05-17-2022 at 05:42 AM. |
|
05-30-2022, 07:28 AM | #73 | |
Junior Member
Posts: 7
Karma: 10
Join Date: May 2022
Device: Kindle PW3
|
Quote:
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. |
|
06-03-2022, 11:10 AM | #74 |
Junior Member
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.
|
06-21-2022, 02:50 AM | #75 | |
Junior Member
Posts: 7
Karma: 10
Join Date: Nov 2021
Device: Paperwhite 3 (7th gen)
|
Quote:
|
|
|
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.... | Greg Anos | Lounge | 7 | 01-16-2010 11:23 AM |