zzz suspend-to-ram default changed to s2idle
gt7-void opened this issue · 3 comments
It seems kernel 5.3 changed the default for s2ram to be s2idle, which drains the battery.
To recover the past behaviour, it seems suspend should do
printf deep > /sys/power/mem_sleep
right before it does
printf mem >/sys/power/state
See: https://www.reddit.com/r/voidlinux/comments/drm4nj/severe_battery_drain_in_sleep/
and
https://www.kernel.org/doc/html/v5.3/admin-guide/pm/sleep-states.html#basic-sysfs-interfaces-for-system-suspend-and-hibernation
I think this is not the right diagnosis, I have machines with 5.3.4 which default to [deep]
.
However, it seems to be a Dell XPS issue, e.g. https://bugzilla.kernel.org/show_bug.cgi?id=199689 orhttps://bugs.launchpad.net/ubuntu/+source/linux/+bug/1808957
Recommended fix on these machines is to boot with mem_sleep_default=deep
.
Thanks a bunch!
Fixed this issue on my early 2020 HP EliteBook x360 1030