Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zzz suspend-to-ram default changed to s2idle #33

Open
gt7-void opened this issue Nov 9, 2019 · 3 comments
Open

zzz suspend-to-ram default changed to s2idle #33

gt7-void opened this issue Nov 9, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@gt7-void
Copy link

gt7-void commented Nov 9, 2019

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

@Duncaen Duncaen added the bug Something isn't working label Nov 10, 2019
@leahneukirchen
Copy link
Member

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
Copy link
Member

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

@kiselgra
Copy link

kiselgra commented May 1, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants