You are right, but i want to enhance the Software and the power usage.
I did not write the code, but i want to safe more energy during the time we do not use the phone, by predicting our usage. If we sleep, the phone can sleep too. If we waiting for a message and wake it up often we need a phone to get awake sooner. That what i describe as pulse.
I had still not code for this but i try to share it.
Update 20260311:
I checked if the R(eal)T(ime)C(lock) is working. And yes if its set by /sys/device/rtc/rtc0/wakealarm, it resumed my Suspend by mobile settings Suspend enhance Posh configuration in Time.
So this can be done. If i have some alarm Clock setting at 8 o Clock in the Morning i now can wake up my Librem5 from Suspend few seconds before to have a working Alarm. Right now it did not work still, but had read that newer Gnome Clock Version would support this. Still install them via Flatpak was not enough.
And second am not sure what level of Suspend use the Mobile Setting, and if my Phone reboots if i do a full “shutdown -h” command. I will try. And if i have to enter a(my) Disk-Encryption key (i hope not because it would be a simple Task).
Its not that easy to create a script for personal power savings. Because if my script resume i need to find out to enter a state only with “check time and personal offline Information” like for Calendar notes, or phone Usage to pressure/lower some pulse (wake up cycles). Or have a full online Stack to check Messages, Mails, Webpages, Push-Notifications.
For the Future i think i will try to have Push-Notifications, Messages, or Emails checked by my Server in real Time and only push some notifications or messages to my phone. Like the phone resume, got online and checked some Flag, but for that i have to wake up the WLAN or Mobile network/data connection every time. I am not sure if this is the best way.
The issue is still bigger than i thought because its different if you have some OS with perfect Driver and energy saving Kernel, or if you would just add some personal cron jobs on top as a user.
The OS Layer needs a full substitution and knowledge of drivers and disc encryption, while a second one with just a working Gnome Clock can be done with some addition RTC setting right now.
So my task is to have a less energy Mode first, by just a wake up script with high pulse often to check if the human wake up the phone from suspend by push the power button to build up pressure for my pules idea. Or if Human done nothing to lower the pressure. The second layer of my pulse pressure will be: to wake up some less often with low pulse to do the more energy using online check by enable network connection or read new Server side Push notifications.