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 07-02-2022, 02:32 AM   #76
andraz
Junior Member
andraz began at the beginning.
 
Posts: 7
Karma: 10
Join Date: May 2022
Device: Kindle PW3
For some reason, on random occasion (could be after 2 days or after a week) it stops working. And when I wake up the kindle pressing the button I see there's no airplane mode icon at the top-right corner. Internet won't work until I enable the airplane mode again. Why this happens, I have no idea yet. Has any of you noticed this?
andraz is offline   Reply With Quote
Old 08-06-2022, 06:52 PM   #77
b14d3
Junior Member
b14d3 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2022
Device: PW1
Hi everyone and thank you for all the effort you spent. Unfortunately I need some help to get the auto update working.
So to make it short: My PW1 running at 5.6.1.1 is jailbraked and manually updating the screensaver png is working properly. But if I activate auto update the script is trying to set the .../rtc1/wakealarm without success - as far as I understand...
To have a look in the log:

Code:
Sat Aug 6 22:33:56 EEST 2022: Enabling online screensaver auto-update
Sat Aug 6 22:33:57 EEST 2022: Full two day schedule: 00:00-06:00=480 06:00-24:00=10 24:0-30:0=480 30:0-48:0=10
Sat Aug 6 22:33:57 EEST 2022: WiFi is off, turning it on now
Sat Aug 6 22:34:03 EEST 2022: Screen saver image updated
Sat Aug 6 22:34:03 EEST 2022: Disabling WiFi
Sat Aug 6 22:34:03 EEST 2022: Schedule 06:00-24:00=10 used, next update in 10 minutes
Sat Aug 6 22:34:03 EEST 2022: Next update in 10 minutes
Sat Aug 6 22:34:03 EEST 2022: Failure setting alarm on rtc1, wanted 1659818643, got
Sat Aug 6 22:34:04 EEST 2022: WiFi is off, turning it on now
Sat Aug 6 22:34:10 EEST 2022: Screen saver image updated
Sat Aug 6 22:34:11 EEST 2022: Disabling WiFi
Sat Aug 6 22:34:11 EEST 2022: Schedule 06:00-24:00=10 used, next update in 10 minutes
Sat Aug 6 22:34:12 EEST 2022: Next update in 10 minutes
Sat Aug 6 22:34:12 EEST 2022: Failure setting alarm on rtc1, wanted 1659818652, got
Sat Aug 6 22:34:12 EEST 2022: WiFi is off, turning it on now
Sat Aug 6 22:34:19 EEST 2022: Screen saver image updated
Sat Aug 6 22:34:19 EEST 2022: Disabling WiFi
Sat Aug 6 22:34:19 EEST 2022: Schedule 06:00-24:00=10 used, next update in 10 minutes
Sat Aug 6 22:34:19 EEST 2022: Next update in 10 minutes
Sat Aug 6 22:34:19 EEST 2022: Failure setting alarm on rtc1, wanted 1659818659, got
Sat Aug 6 22:34:20 EEST 2022: WiFi is off, turning it on now
Sat Aug 6 22:34:26 EEST 2022: Screen saver image updated
Sat Aug 6 22:34:26 EEST 2022: Disabling WiFi
If I try to set the wakealarm manually
Code:
echo 1659835803 > sys/class/rtc/rtc1/wakealarm
and do a
Code:
cat sys/class/rtc/rtc1/wakealarm
, it is empty. Also
Code:
cat /proc/driver/rtc
displays no alarm set.

What additionally makes me wondering is the printed schedule
Code:
00:00-06:00=480 06:00-24:00=10 24:0-30:0=480 30:0-48:0=10
. I did not set the last part of the schedule in config.sh, but
Code:
00:00-06:00=480 06:00-24:00=10
. Don't know why this is printed in the log.

Thank you in advance for any hint.
Please ask, if I missed some important information.
b14d3 is offline   Reply With Quote
Advert
Old 08-27-2022, 06:25 AM   #78
muth
Junior Member
muth began at the beginning.
 
muth's Avatar
 
Posts: 1
Karma: 10
Join Date: Aug 2022
Device: KT2 - 5.10.3
Thanks to these two posts bellow, I could have onlinescreensaver working on a KT2 (basic 2014) with FW 5.10.3 :



Thanks a lot Peterson for the onlinscreensaver scripts, mironov for finding how to wake the kindle from sleep and jonnydeath for the path tricks!


Quote:
Originally Posted by mironov View Post
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
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
muth is offline   Reply With Quote
Old 12-10-2022, 02:20 PM   #79
dan-
Junior Member
dan- began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2022
Device: PW2
I'm trying to get this working on my PW2 on 5.11.1.1 but unfortunately screen saver is still the default linkss one

I had to edit the bash files paths for it to work, and it runs now with this output:

Code:
[root@kindle bin]# /mnt/us/extensions/onlinescreensaver/bin/scheduler.sh &
[root@kindle bin]# Sat Dec 10 11:45:03 MST 2022: Full two day schedule: 0:0-24:00=15 24:0-48:00=15
Sat Dec 10 11:45:03 MST 2022: WiFi is off, turning it on now
ping: bad address 'www.google.com'
ping: bad address 'www.google.com'
mv: can't preserve ownership of '/mnt/us/linkss/screensavers//bg_medium_ss00.png': Operation not permitted
Sat Dec 10 11:45:09 MST 2022: Screen saver image updated
Sat Dec 10 11:45:09 MST 2022: Disabling WiFi
Sat Dec 10 11:45:10 MST 2022: Schedule 0:0-24:00=15 used, next update in 15 minutes
Sat Dec 10 11:45:10 MST 2022: Next update in 15 minutes
Sat Dec 10 11:45:10 MST 2022: Start waiting for timeout (900 seconds)
Sat Dec 10 11:45:10 MST 2022: Starting to wait for timeout to expire
Despite the mv error, I have verified the script is actually getting the png I told it to and saved as bg_medium_ss00.png . But bg_ss00.png is what gets displayed (the default linkss image)

Surely Im doing something wrong here. Any help would be greatly appreciated. Thank you
dan- is offline   Reply With Quote
Old 12-10-2022, 11:15 PM   #80
dan-
Junior Member
dan- began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2022
Device: PW2
Worked on this quite a bit today and made progress but not quite there yet. I set in config to save as bg_ss00.png instead. Another issue I ran into (which was my fault of course) was that my png was not 8 bit. That gave error: eips: paint_image> cannot open "/mnt/us/linkss/screensavers//bg_medium_ss00.png":8bit only

I have it working reliably without issue when connected to USBnetwork and run manually (although gives the error com.lab126.powerd failed to set value for property deferSuspend (0x100 lipcPropErrInvalidState) ) but once I disconnect USB, it will update one more time then it stops updating
dan- is offline   Reply With Quote
Advert
Old 12-24-2022, 10:30 AM   #81
rxb
Junior Member
rxb began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Dec 2022
Device: pw3
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.
Amazing, thank you. I've been losing my mind tryingt to figure this out.
rxb is offline   Reply With Quote
Old 01-06-2023, 03:27 PM   #82
njnygaard
Junior Member
njnygaard began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2023
Device: DP75SDI
Just registered to throw my hat in the ring as someone interested in this issue.
I had this working for a period of time pulling an image from my local network.
It seems to have just died and I can't see any changes between my repository version and what is present on the kindle.

I have noticed that config.sh and utils.sh sometimes change in to some other text file.
I have no idea what is doing that but the scripts are wiped out and replaced with something else (looks like a readme or something).
I haven't had the foresight to capture a sample of that, but I will in the future.
My guess is that change is associated with the FS going RO for a period.
Remounting seems to fix the issue with the RO FS.

I believe I have tried all the things mentioned up until this point and I'm just stuck now.
Real shame because I had it working for a good long stretch yesterday.
I can see when I mount the device that it is downloading the latest images.
It just seems like it won't actually refresh the screensaver anymore.
Any tips are appreciated, even if it is go back and try something that worked for someone else in the same situation.
njnygaard is offline   Reply With Quote
Old 01-06-2023, 04:49 PM   #83
dan-
Junior Member
dan- began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2022
Device: PW2
Well I am glad its not just me. I have also been entirely unsuccessful in getting it to update the screen from sleep (updates no problem when connected to power). Ive also seen that issue where the files seems to become corrupted. I chalked it up to editing from USBMS and corrupting somehow but maybe theres more to it

I even went as far as to buy a K5 in addition to my PW2 (since they're so cheap) and unfortunately, same result, does not update from sleep state
dan- is offline   Reply With Quote
Old 01-06-2023, 04:52 PM   #84
dan-
Junior Member
dan- began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2022
Device: PW2
Glad I'm not alone. Hopefully we can figure this out. Same issue for me, does not update screen from sleep (but does work just fine when connected to power). I even went as far as buying a K5 in addition to my PW2 (since they're so cheap) and unfortunately same result, does not update from sleep

I've also noticed that file corruption issue. I chalked it up to an issue with editing from USBMS but maybe theres more to it
dan- is offline   Reply With Quote
Old 01-06-2023, 06:46 PM   #85
njnygaard
Junior Member
njnygaard began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2023
Device: DP75SDI
Here's an example of the corruption that happens sometimes.
I'm really not sure what is replacing the files in onlinescreensaver (only) or what the file is.
It just looks like chunks of the fonts readme?
My gut feeling is that this would be a conflict with another extension, but I didn't think I had any others installed.
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2023-01-06 at 4.43.11 PM.png
Views:	161
Size:	194.9 KB
ID:	198856  
njnygaard is offline   Reply With Quote
Old 01-07-2023, 11:46 AM   #86
njnygaard
Junior Member
njnygaard began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2023
Device: DP75SDI
Quote:
Originally Posted by dan- View Post
Glad I'm not alone. Hopefully we can figure this out. Same issue for me, does not update screen from sleep (but does work just fine when connected to power). I even went as far as buying a K5 in addition to my PW2 (since they're so cheap) and unfortunately same result, does not update from sleep

I've also noticed that file corruption issue. I chalked it up to an issue with editing from USBMS but maybe theres more to it
I got mine to work!
I have the script update from mironov.
Then in config.sh:
SCHEDULE="00:00-06:00=15 06:00-22:00=15 22:00-24:00=15"
SCREENSAVERFILE=$SCREENSAVERFOLDER/bg_ss00.png
DISABLE_WIFI=1
RTC=0
TEST_DOMAIN="192.168.1.146" #Personal
IMAGE_URI="http://192.168.1.146/kindle/image.png" #Personal

I've set the airplane mode to off.
After making all the changes, I restart the kindle from the interface and let it boot and go to sleep by itself.
I woke up this morning and my image was updating.

Notably I think the most important thing is assuring that the image is 8bit Gray. 16bit absolutely crashed my unit. RGB images get stretched out. I've written the image creation software in go, stealing a lot of the code from https://github.com/fogleman/gg
I've had to take code out of that repo because it was written for only RGB contexts and I couldn't think of a way to make a clean PR for Gray. I'll be working on that when I get the functionality I want out of my weather station.

I hope something there works dan-
I'll keep watching the thread.
njnygaard is offline   Reply With Quote
Old 01-10-2023, 11:29 PM   #87
XTy9zVWXwn
Junior Member
XTy9zVWXwn began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Nov 2021
Device: Paperwhite 3 (7th gen)
Has anyone managed to get it to work without turning off wifi? I've tried everything in the thread. But if I use the device and forget to turn wifi off, it will fail to update.
XTy9zVWXwn is offline   Reply With Quote
Old 02-10-2023, 08:28 AM   #88
charlesrg
Junior Member
charlesrg began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2023
Device: pw1
Sleepy Kindle PW5

I'm running on PW5, while testing I've set it up to update every 30 minutes and worked well, however when I change to 120/240 minutes standard schedule it never wakes up.
I'm wondering if the system goes to a deep sleep and the watchdog is not coming up.
Ideally I wanted it to update once a day in the morning, that would give me the best results. But I'm having a hard time having it wake up.

Anyone running successful on a PW5 ?
charlesrg is offline   Reply With Quote
Old 02-10-2023, 03:41 PM   #89
katadelos
rm -rf /
katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.
 
Posts: 219
Karma: 3333683
Join Date: Nov 2019
Location: United Kingdom
Device: K5, KT, KT2, KT3, KT4, KV, PW2, PW3, PW4, PW5
Quote:
Originally Posted by charlesrg View Post
I'm running on PW5, while testing I've set it up to update every 30 minutes and worked well, however when I change to 120/240 minutes standard schedule it never wakes up.
I'm wondering if the system goes to a deep sleep and the watchdog is not coming up.
Ideally I wanted it to update once a day in the morning, that would give me the best results. But I'm having a hard time having it wake up.

Anyone running successful on a PW5 ?
There's likely to be differences in how the RTC works on the PW5 vs the older devices that this extension was written for. The developer hasn't updated it for the better part of a decade so this is something that you're going to have to debug + fix yourself.
katadelos is offline   Reply With Quote
Old 02-10-2023, 05:24 PM   #90
charlesrg
Junior Member
charlesrg began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2023
Device: pw1
Quote:
Originally Posted by katadelos View Post
There's likely to be differences in how the RTC works on the PW5 vs the older devices that this extension was written for. The developer hasn't updated it for the better part of a decade so this is something that you're going to have to debug + fix yourself.
I kept digging and found that the code on post Post 78 works. So I'm using it. So far it's fine. Will refine it more later after I confirm it runs for a few days.
charlesrg 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 08:46 PM.


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