Yes, you will see a powerd "readyToSuspend" event as it's about to go into deep sleep and a "suspending" event as it goes into deep sleep (meaning things like cron activities won't run). I'm in the process of reworking a script that I have for preventing the device from going into a deep sleep when connected to a power source which I'll post in another thread eventually. I use my kindle to control my home automation and when it's plugged in I don't want it going into a deep sleep. I also use the script to support rotating screen images every 5 minutes via cron and sounding a grandather clock sounds at appropriate times, all of which I only want running when plugged into a power source. Enjoy!
Last edited by hanginwithdaddo; 04-24-2025 at 03:01 PM.
Reason: corrected typo
|