![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Feb 2021
Device: Kindle 4
|
Extending/refreshing screensaver timer?
I've recently set up and old Kindle 4 (4.1.4) to act as a weather station, which seems to be a fairly common project. I am using the Online Screensaver Extension script (https://www.mobileread.com/forums/sh...d.php?t=236104) with the modifications to allow it function on Kindle 4 found in this post: https://www.mobileread.com/forums/sh...2&postcount=36
This works great...except that it only updates 4 or 5 times before stopping. Using the log file for the script, I was able to track down the problem: Code:
Thu Feb 11 03:05:09 UTC 2021: wait_for called with 900, now=1613012709, Powerd state: Screen Saver, defer_suspend:0, Remaining time in this state: 53.913745, Battery Level: 58% Battery logging: On Thu Feb 11 03:20:22 UTC 2021: wait_for called with 900, now=1613013622, Powerd state: Screen Saver, defer_suspend:0, Remaining time in this state: 41.375632, Battery Level: 56% Battery logging: On Thu Feb 11 03:35:35 UTC 2021: wait_for called with 900, now=1613014534, Powerd state: Screen Saver, defer_suspend:0, Remaining time in this state: 28.618913, Battery Level: 56% Battery logging: On Thu Feb 11 03:50:47 UTC 2021: wait_for called with 900, now=1613015447, Powerd state: Screen Saver, defer_suspend:0, Remaining time in this state: 15.851457, Battery Level: 56% Battery logging: On Thu Feb 11 04:06:00 UTC 2021: wait_for called with 900, now=1613016360, Powerd state: Screen Saver, defer_suspend:0, Remaining time in this state: 3.076768, Battery Level: 56% Battery logging: On Thu Feb 11 04:21:12 UTC 2021: wait_for called with 900, now=1613017272, Powerd state: Ready to suspend, defer_suspend:1, Remaining time in this state: 33.024700, Battery Level: 56% Battery logging: On So I'd like to know if there's a command I can add to the script that would extend the time remaining in the screensaver state, or to refresh it somehow, so the script can continue running indefinitely without needing to keep it plugged in (since I understand that when plugged in, the Kindle will stay in screensaver mode indefinitely.) I am aware that the length of the time the screensaver is active can be modified through the t2_timeout setting, though no matter what value is set it would always be a fixed amount of time (also not sure if there's a maximum value.) Any suggestions would be appreciated. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,506
Karma: 5000046
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
|
How do you set t2_timeout setting?
I dug up my K4NT notes and I can see that I couldn't get it changed by editing or replacing the file, and I needed to use command (example is for timeout before Kindle goes to sleep): Code:
mntroot rw kdb set system/daemon/powerd/t1_timeout 600 mntroot ro |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,179
Karma: 3592925
Join Date: Sep 2014
Location: Ukraine
Device: Kindle
|
|
![]() |
![]() |
![]() |
#4 | |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Feb 2021
Device: Kindle 4
|
Quote:
Code:
lipc-set-prop com.lab126.powerd -i touchScreenSaverTimeout 1 I am also seeing that you can simulate pressing the power button, so I could potentially just trigger the Kindle to wake up then go back into screensaver mode. |
|
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Feb 2021
Device: Kindle 4
|
I seem to have found a decent solution here. The command
Code:
lipc-set-prop com.lab126.powerd -i abortSuspend 1 Last edited by nimbulan; 02-12-2021 at 02:54 PM. |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Extending Author Metadata | Soap-dodger | Library Management | 13 | 06-09-2019 10:58 PM |
Sleep timer like the ipod sleep timer | lmroces | Kobo Reader | 2 | 01-12-2019 11:58 AM |
Extending Download Cover results | loviedovie | Calibre | 2 | 07-15-2017 01:05 PM |
Extending Overdrive Lending Period? | CatherineStewart | Kobo Reader | 9 | 09-12-2016 01:26 AM |
Amazon extending DXG Returns? | nremondelli | Amazon Kindle | 3 | 08-01-2010 04:37 PM |