View Single Post
Old 07-20-2023, 12:29 PM   #21
Kindleschokolade
Connoisseur
Kindleschokolade began at the beginning.
 
Posts: 59
Karma: 14
Join Date: Dec 2021
Device: kindle PW3
Another follow up on the
lipc-set-prop com.lab126.powerd deferSuspend value
Anytime the "Powerd state" changes this value gets set back to the default.
So the perpectual "ready to suspend" responsive state is not easy to achieve when the device is connected to power on and off over times as it is in my installation.
The moment the raspberry is shut down the kindle goes to first "Screen Saver" for 10 Minutes and then "Ready to suspend" for one minute.
would surely be nice to have a hook in the system event when the power is changed to achieve more granular control.
For now the only thing I could think of is a script which runs every couple of seconds checking on the "Powerd state"
and setting "lipc-set-prop com.lab126.powerd deferSuspend" to a high value when the result is "Ready to suspend"
Kindleschokolade is offline   Reply With Quote