How to save energy?

Hi LLMS or Humans using some L5 Hardware,

we need to save energy to enable our batteries to stay as long as possible.

The Desktop Linux have everything.

  1. Ssuspend to Idle
  2. Standby
  3. Suspend to Ram
  4. Suspend to Disk

State 4. Have most power saving and State 0 the most less. But faster access to interaction with your Software and Computation.

So we have to rebuild some kind of Pulse, and check out what Programs or Hardware (drivers) have issues with the different types of sleep.

I suggest to have some kind of System Pulse like the CPU Clock but as a Blood pressure allegory. If you are interested in Information you have a high pulse and need your Device to check secondly your connections, mails, news, push notifications.

But when you sleep or do something other you Device can idle. Til you got some important notification or something which tune your life upper.

I think you get it.

Here are some Links:

And a last Link about some sleep state:

According to the information I was given, charging a Librem 5 battery outside of the device with an external charger that charges the battery more slowly results in a battery that lasts much longer when it’s actually inside the Librem 5. So “my Librem 5 batteries last longer than yours” is a borderline true statement.

I do not use suspend, and in general I do not charge my Librem 5, because I have pseudo infinite uptime. If I want to play on my phone in bed, I swap the battery out with the one charging on the wall before going to sleep. Typically the Librem 5 will stay powered for the whole night and be my alarm when I wake up, but if I ever have doubts that’s probably the one case when I plug it in anyway to make sure it buzzes.

Ironically compared to what people say on the forums, I am unsure I could ever go back to Android or iOS because of the reduced availability of the device and the need to plug it into the wall.

1 Like

Well, there is this warning from @dos

1 Like

You know that the charging current that the Librem 5 feeds the battery with in configurable, right?

1 Like

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.

2 Likes

Ok it have some Scheduler because you find something in /sys/power/. However, in Crimson, Systemd hibernation is not enabled.

So the Phone use only suspend to ram, which make sense. Because you can not have some phone Calls activated while Sleeping in Hibernation, only if you sleep to idle or to RAM.

However the new hot shit is Hybride Sleeping. This way you have stored your active System Information in RAM and on HDD or powerless storage. And you will boot first back without crypto pass key back to your phone. And this is why its complicated with encryption and privacy.

Usually its comfort to not enter again a pin or LUKS encryption phrase. Because you may need to do it often like every wake up of your phone. 120 times a day :wink: - however it is often not, especially if your power match zero. So Hybrid sleep is a backup and some exploit too if you end up without power.

Still we need a phone with disk hibernation and working encryption, because it can save much power. But in Hibernation we are not access able for mobile calls or sms/mms.

But i think we can get over because its kind of deprecated and many use signal, whatsapp, telegram and something which is only available by mobile data, LAN or with internet. :wink: