Skip to main content


How do y'all deal with sleep states on modern laptops?


This entry was edited (1 year ago)
in reply to Sh1nyM3t4l4ss

It barely holds 3hrs of charge anyway (thanks jetbrains), meh

WestwardWind doesn't like this.

in reply to Sh1nyM3t4l4ss

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

in reply to solarvector

Fair enough

I haven't had any luck with sleep/hibernation for a while as it usually leads to my WiFi not working when I wake it up and requires a restart to fix it anyways.

in reply to Toyful

@Toyful
WiFi not working after suspend should at worst only require reloading the module, not a full reboot. This is a common thing I've noticed with many b43 and some old iwl cards.

Linux reshared this.

in reply to solarvector

A saved desktop session handles this, and every major DE has supported that for, what 20 years?
in reply to Sh1nyM3t4l4ss

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.
in reply to Sh1nyM3t4l4ss

Took article from arhieve web.archive.org/web/2023041805… .Also from what i understood ,scrolling the net on amd cpu,it's works properly okay
This entry was edited (1 year ago)
in reply to wviana

It's just infuriating when I close the lid, immediately remember that I needed to quickly look at whatever else on screen, and open it back up to a boot screen that takes 15-20 seconds to go away. First world problems maybe but my Android tablet can be locked without overheating in my bag and without losing all of its battery overnight, in addition to opening instantly.
in reply to Sh1nyM3t4l4ss

I have this same issue on my 11th Gen Intel Framework and I never found a solution after a lot of research. I’m upgrading from Intel to an AMD board so I hope it will make a difference.

My Steam Deck (AMD) gets amazing sleep performance and barely loses any charge so I hope I can match that with my new AMD board when I get it

in reply to Sh1nyM3t4l4ss

Manually hibernate and then shut the lid, else it will wake itself up.

I have an older Mid 2012 MBP that sleeps properly though.

in reply to Sh1nyM3t4l4ss

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 running cat /sys/power/mem_sleep afaik.

This entry was edited (1 year ago)

DeathCubeK doesn't like this.

in reply to jbk

s2idle is unfortunately the only supported state on my system apparently, no deep sleep :(
in reply to Sh1nyM3t4l4ss

my laptop is comparatively old (t480s, 8th gen) but had the same issues with battery drain on F38. I've switched to debian ~~and the situation is way better~~, overnight drain percentage-wise is in the single digits range. still nowhere close to my old macbook, but workable.

edit: no it isn't, tested F38 and D12 on separate partitions, both lose same amount; ~1 %/hr of standby (regardless of deep or s2idle setting), so 7-8% overnight.

edit 2: looking into making suspend-then-hibernate work, that should fix everything; sleep for 30 mins and hibernate afterwards.

This entry was edited (1 year ago)

AProfessional doesn't like this.

in reply to dingdongitsabear

@Sh1nyM3t4l4ss

I believe Macbooks have higher battery capacity. Don't they?

AProfessional doesn't like this.

in reply to Ashkan :Verfied:

They are on the higher-end of capacity but (especially Apple silicon) are much more power-efficient.

SkinnyBob doesn't like this.

in reply to Ashkan :Verfied:

not important for this use case. I'm referring to the fact that I can close it shut and leave it for a week. I open it and it's ready to go and the battery has barely lost a percentage point. that's 2010 tech and something completely unattainable to me 13 years later. I've moved on from macOS but can't help being envious.
in reply to dingdongitsabear

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.
in reply to owatnext

I can't come close to that number, 7-8% overnight. do you have suspend to disk enabled?
in reply to dingdongitsabear

I just checked my settings, seems that when I close the lid, it is set to sleep. Running cat /sys/power/mem_sleep returns s2idle [deep], whatever that means. I just leave it at the default settings. Perhaps I am just lucky?
in reply to Sh1nyM3t4l4ss

For some reason, sleep mode doesn't even work on my laptop cause it'll never resume, it seems to treat any call to sleep as a call to shutdown. I've always had to just save my work and poweroff if i was going anywhere without a charger. I had a little bit of luck with TLP until I had a microcode update and that somehow broke it even worse.
in reply to Sh1nyM3t4l4ss

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...

in reply to ProtonBadger

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.

This entry was edited (1 year ago)
in reply to Sh1nyM3t4l4ss

Just shut down when you're done with the laptop. On a modern system you can get to your saved desktop session in < 30 seconds, including decrypting LUKS and logging in.
in reply to Sh1nyM3t4l4ss

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

Unknown parent

Kangie
Go implement better sleep then.
in reply to Sh1nyM3t4l4ss

@Sh1nyM3t4l4ss
Does systemctl suspend / systemctl hibernate not do what your looking for?

Linux reshared this.

in reply to Sh1nyM3t4l4ss

You arent supposed to shut down your laptop when you dont use it for more than 10 minutes?
in reply to RandomVideos

That's actually exactly what I do with my old Macbook Pro - its the only laptop I have, but I think there must be an issue with the battery since if I let it suspend for a bit, when I come back to it I have to hard reset it in order for it to come back on...

I normally run Fedora 38 on it, but I still keep macOS on it for firmware updates (well, that was the original intent, I don't think Apple will be updating mine for much longer if they still even are), but it occurs there too.

in reply to Sh1nyM3t4l4ss

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
Unknown parent

sp00nix
My 8th gen XPS used to support S3 and one update they killed it off. It kept finding the damn thing cooking it self in my bag. Had to resort to hibernation.
in reply to Sh1nyM3t4l4ss

I had to disable Volume Management Device in bios (a relative of Rapid Storage Tech, I think) to get any amount of battery life on an 13th gen Asus Zenbook. Learned it from bugzilla.kernel.org/show_bug.c…

Look at "cat /sys/kernel/debug/pmc_core/package_cstate_show" (need root to even peek into the debug dir). If you only have C1 and C2 and everything else is zero, then you're getting no S0ix joy. When things are working correctly, you should get some of the higher states, and a pile of C10 states when you close the laptop.

in reply to Sh1nyM3t4l4ss

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.

#BringBackS3Sleep

Mine supports s2idle [deep], 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.

This entry was edited (1 year ago)
in reply to yum13241

They removed S3 because Win 10 stopped using it. No OEM has ever read a spec such as ACPI. They only record the exact interaction with Windows, and make sure that the hardware works with that and to hell with anything else.

yum13241 doesn't like this.

in reply to rotopenguin

No OEM has ever read the ACPI spec? Then how does my power button work on Linux? Without ACPI, we would still have "It is now safe to turn off your computer." screens, ala Windows 95. (You can still enable that screen, lol)

I just wonder why M$ reinvented the wheel here. They could already force upgrades anyway, by just rebooting the laptop without the owner's permission like they already did. Fuck Modern Standby, and whoever even thought it was a good idea.

in reply to yum13241

I don't think that mattered my case. 90% of my day was running around on battery, which was pretty decent at one point.
in reply to sp00nix

It's a workaround for a glitch in Winblows which, if you don't apply, will cause Winblows to try and run its updates.
⇧