void-runit icon indicating copy to clipboard operation
void-runit copied to clipboard

zzz suspend-to-ram default changed to s2idle

Open gt7-void opened this issue 5 years ago • 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

gt7-void avatar Nov 09 '19 23:11 gt7-void

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

leahneukirchen avatar Nov 10 '19 16:11 leahneukirchen

Recommended fix on these machines is to boot with mem_sleep_default=deep.

leahneukirchen avatar Nov 10 '19 17:11 leahneukirchen

Thanks a bunch! Fixed this issue on my early 2020 HP EliteBook x360 1030

kiselgra avatar May 01 '20 14:05 kiselgra