Battery charege reduction during suspend mode (~20% in 8 hours)
OS: Ubuntu 18.04 Kernel: 5.4.0-104-generic
What I've tried:
echo deep > /sys/power/mem_sleep (as root).
Output:
cat /sys/power/mem_sleep
s2idle [deep]
There are different modes by which a system can be suspended, which are explained in the Linux Kernel documentation. You can see the method that is in use on your system with the command
cat /sys/power/mem_sleep
Suspend to idle (s2idle
) uses the most power. "User space" is frozen, and I/O devices are put in low power state.
Standby (shallow
) involves suspension of some more low level functions, with more power savings.
Suspend-to-RAM (deep
) offers more significant savings: essentially only the RAM is kept powered to keep RAM contents and the state of the devices and CPU stored in RAM.
Then there is hibernation, Suspend-to-disk, where the state of the system is saved in swap space on disk, and the system essentially is fully powered off. On many hardware, this does not work reliably, and therefore this mode is disabled on Ubuntu by default. It is rather complicated to enable it. While previous modes allow a system to resume quickly, the time needed to start up a system that has been suspended to disk is comparable with the time needed for a cold start.
If your system is configured for the least energy saving option, then there probably will be a good reason. The configuration of your system is defined in files under /sys/power/
. You could try changing the contents of sys/power/mem_sleep
to [s2idle] deep
instead, to test that mode on your system.
/sys/power/mem_sleep
is stubbornly not changing.
Mar 13, 2023 at 7:00