Most very recent laptops no longer support S3 sleep which used to be the default for a long time. On my old laptop it allowed me to just close the lid in the evening and open it again in the morning, and it would only loose a negligible amount of charge during that time.
My new laptop (Dell Inspiron 14 Plus, Alder Lake) uses s2idle by default on Linux (Fedora in my case), which depletes the battery very quickly. I tend to shut down my computer every evening now, but even when I just put my laptop in my bag for 2 hours it will have lost 10-15% when I get it out. It’s not terrible and I have gotten used to using my laptop like that but there’s got to be a better way right?
I know hibernation / suspend-to-disk is an option in theory, but I use secure boot (and also disk encryption), and that makes it a lot more complicated, involving compiling your own patched kernel, so no thanks.
The way sleep on modern laptops is supposed to work is apparently called S0iX but it is not used by default and I don’t know if or how I could make use of it on my laptop, and a guide that is linked everywhere on 01.org now just redirects to some generic intel site.
If you have a recent laptop without S3 sleep support, how are you dealing with this? Do you just live with the poor battery life, or is there some secret to getting more power saving sleep on modern machines?
Edit for mare clarification:
- The laptop does enter s2idle correctly, it just doesn’t get down to a very low power state at all and consumes ~5% an hour
cat /sys/power/mem_sleep
only returns[s2idle]
, no deep sleep is supported.echo deep | sudo tee /sys/power/mem_sleep
doesn’t work (tee: /sys/power/mem_sleep: Invalid argument
)- There’s no option in the BIOS to enable other sleep modes
- I’ve even tried patching the ACPI table myself to enable S3 sleep and it didn’t work. I have no idea if I did it correctly although according to dmesg it did seem to load my patch
Thank you all for your input but it looks like on this Dell laptop I’m stuck with horrible s2idle sleep :/
Hibernate on lid shut, and I hate it
My new Asus laptop didnt support S3 sleep.
Turns out it does indeed support it but the BIOS claims it isnt.
I found a patch for Linux ACPI that would make it enable S3 anyway and lived happily ever after
I have a Framework Laptop 13 (i5-1240P) and run Fedora Workstation. It uses s2idle (another name for s0ix, afaik) by default and the battery depletion is OK imo.
If it’s low on battery and I can’t charge it instantly though, I tend to make the next sleep state use ACPI sleep state S3 by running
echo deep | sudo tee /sys/power/mem_sleep
. You can check if that’s available on your platform (and the current mode) by runningcat /sys/power/mem_sleep
afaik.s2idle is unfortunately the only supported state on my system apparently, no deep sleep :(
deleted by creator
T480s here as well, running Void Linux. I just close the lid and whatever it does barely uses any battery. Something like 2-4% every 24 hours.
deleted by creator
I just checked my settings, seems that when I close the lid, it is set to sleep. Running
cat /sys/power/mem_sleep
returnss2idle
, whatever that means. I just leave it at the default settings. Perhaps I am just lucky?
Why did they have to remove S3 sleep anyway? At least it worked. What was wrong with S3 sleep? Hardware support? At least it didn’t set your backpack on fire. LTT made a video about your very problem. I would honestly just use shutdown.
Mine supports
s2idle
, and it’s 6 years old.On Windows, make sure to unplug the charger before closing the lid, otherwise it’ll try to run Windows updates because it thinks it on AC power.
Took article from arhieve https://web.archive.org/web/20230418052803/https://01.org/blogs/qwang59/2018/how-achieve-s0ix-states-linux .Also from what i understood ,scrolling the net on amd cpu,it’s works properly okay
I have a newish Dell XPS and I got to where I just hibernate all the time (automatic when I close the lid) because otherwise it would easily die in less than a day.
Alas that would be a luxury for me. I got an Asus Strix Scar 17 2022 with NVidia 3060. I game with it, use Wayland, everything is fine.
Except suspending/hibernating. When it wakes up the Plasma panel is pink, desktop is missing and the mouse is drawing trails. I have the NVidia suspend/hibernate scripts enabled, have a swap partition bigger than RAM, but everything still looks weird on wakeup. So I shut it down in the evening and boot it fully in the morning, no biggie I guess…
Not sure what distro you’re using but try the liquirox kernel. I did that one time on a really stubborn laptop and managed to get both the HDMI and the suspend feature working.
Using mainline or something to ensure I’m up to date on the latest kernel has never solved a single issue in my entire history of trying but using liquirox worked one time.
With my x1 nano there is an option for s3, but ai didn’t see many problems with s2idle like 5-10% after 8h overnight
Gentoo
is there some secret to getting more power saving sleep on modern machines?
The smartass answer is simply just “turn it off”
With SSDs, boot times are negligible now and I don’t see any need to sleep/suspend