How do y'all deal with sleep states on modern laptops?
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 :/
like this
empireOfLove, Noble Shift, eldrichhydralisk, lex, fenfir, user68k, BossPaint, iopq, Lee Duna, doot, dotslashme, wingsfortheirsmiles, The Picard Maneuver, brettings, kr0n, avidseeker, sojejut, yiliu, Atemu, WestwardWind, Tehgingey, Father Ogre, atlasraven31, Exec, featured, Something Burger π, sponge, mashbooq, Slightly Mad, Thebug0304, prise, drunk_spelunk, Cmar, PlatinumSf, Alex, linucs, Pazintach, vomitVerifier, WhiskyPriest, usualsuspect191, Trace, jbk, ππππππ, TheChargedCreeper864, dingdongitsabear, woelkchen, doricub, Wyrryel, DumbAceDragon, Solemn, throwawayish, Oligominerale, RozaΕtuno, mrnarwall, Libertus, AngryCommieKender, π (she/her), newbeni, water, Proxima_Centauri11, dwebl, ThyTTY, _errer, LuycYQ2uUiTjR3yLri, Ready! Player 31, Yamato_San, ΡΡχυαβ ρσβΡΡσρΡ, smay, CrackaAssCracka, ΔΙΙΔ, sethroque, CuttingBoard, illusoryMechanist, Elbullazul and 66 other people like this.
don't like this
Mane25 and Feathercrown don't like this.
doot
in reply to Sh1nyM3t4l4ss • • •like this
Granixo and Alex like this.
WestwardWind doesn't like this.
Toyful
in reply to Sh1nyM3t4l4ss • • •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
like this
usualsuspect191, Majestic, ππππππ, gever4ever, Chronographs, tomcatt360, Kangie and goondu like this.
don't like this
Pants, β±Ώeus, Jobe1105, CaptainBuckleroy, suny, Atemu, Alex, WarMarshalEmu, Trace, TheMissingBit, dingdongitsabear, RandomLegend [He/Him], jray4559, dongo, bingbong, Zamundaaa, ShiningWing, baru, everett, goondu, joseandres42 and jumping_redditor don't like this.
solarvector
in reply to Toyful • • •like this
prise, Toyful, Ian, Atemu, cmnybo, PlatinumSf, umami_wasabi, Alex, Sh1nyM3t4l4ss, MountingSuspicion, Kalcifer, MtDewaholic, Pazintach, usualsuspect191, Trace, ππππππ, jbk, TheChargedCreeper864, jray4559, southsamurai, Krauerking, dongo, bingbong, ShiningWing, baru, Ryru Grr, LogarithmicCamel, laxe, everett, chepox, einsteinx2, sponge, TheButtonJustSpins, wviana, CouldBeLies, joseandres42, furikuri and jumping_redditor like this.
baru doesn't like this.
Toyful
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.
like this
solarvector, usualsuspect191, tomcatt360, Kangie, ShiningWing, wviana, CouldBeLies and furikuri like this.
eshep
in reply to 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.
like this
goondu, wviana, CouldBeLies and jumping_redditor like this.
Linux reshared this.
Kangie
in reply to solarvector • • •don't like this
Zamundaaa, ShiningWing, baru, wwwmoo, everett, goondu, wewbull, einsteinx2, wviana and πΈγγγ³πΈ don't like this.
BrianTheeBiscuiteer
in reply to Sh1nyM3t4l4ss • • •goondu likes this.
anon5621
in reply to Sh1nyM3t4l4ss • • •How to achieve S0ix states in Linux*
01.orglike this
usualsuspect191, prongs, XPost3000 and wviana like this.
Player2
in reply to Sh1nyM3t4l4ss • • •like this
usualsuspect191, ππππππ, woelkchen, nbailey, Jonsk, Ready! Player 31, erezac, souperk, smay, CuttingBoard, Elbullazul, prongs, chepox, kemsat, nothacking, XPost3000, goondu, SneakyThunder, kim (she/her), ditty, wviana, sdoorex, Rin, fabian_drinks_milk, IronKrill, samn, furikuri and jumping_redditor like this.
wviana
in reply to Player2 • • •Player2
in reply to wviana • • •furikuri likes this.
Rando
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
like this
Trace, ΔΙΙΔ, tomcatt360, Skull giver, Ready! Player 31, prongs, canadaduane, BuoyantCitrus, Number358, XPost3000, kim (she/her), lidstah, ditty, TheButtonJustSpins, sdoorex, fabian_drinks_milk, samn and furikuri like this.
ππππππ
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.
like this
tomcatt360, XPost3000, ditty and wviana like this.
jbk
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 runningcat /sys/power/mem_sleep
afaik.like this
maxprime, DeathCubeK, BuoyantCitrus, Tristano, qayxsw10987, XPost3000, ditty, wviana, sdoorex and fabian_drinks_milk like this.
DeathCubeK doesn't like this.
Sh1nyM3t4l4ss
in reply to jbk • • •like this
jbk and jumping_redditor like this.
dingdongitsabear
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.
like this
dongo, Elbullazul, prongs, BuoyantCitrus, chepox, XPost3000 and ditty like this.
AProfessional doesn't like this.
Ashkan :Verfied:
in reply to dingdongitsabear • • •@Sh1nyM3t4l4ss
I believe Macbooks have higher battery capacity. Don't they?
like this
prongs, chepox and ditty like this.
AProfessional doesn't like this.
cre0
in reply to Ashkan :Verfied: • • •SkinnyBob doesn't like this.
dingdongitsabear
in reply to Ashkan :Verfied: • • •like this
dongo, canadaduane, einsteinx2, loutr and ditty like this.
owatnext
in reply to dingdongitsabear • • •like this
Zombiepirate and Rustmilian like this.
dingdongitsabear
in reply to owatnext • • •owatnext
in reply to dingdongitsabear • • •cat /sys/power/mem_sleep
returnss2idle [deep]
, whatever that means. I just leave it at the default settings. Perhaps I am just lucky?like this
Zombiepirate likes this.
NikkiAtNight
in reply to Sh1nyM3t4l4ss • • •wviana likes this.
wviana
in reply to NikkiAtNight • • •cat /sys/power/mem_sleep
?undrwater
in reply to Sh1nyM3t4l4ss • • •jumping_redditor likes this.
don't like this
Sh1nyM3t4l4ss, dongo, tomcatt360, Kangie, harpuia, wviana and segfault don't like this.
ProtonBadger
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...
sponge likes this.
PeterPoopshit
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.
Kangie
in reply to Sh1nyM3t4l4ss • • •like this
joseandres42 likes this.
don't like this
Zamundaaa, Capillary7379, baru, screamingtrees, everett, evilflexo, goondu, pixelscience, yum13241, joseandres42, fabian_drinks_milk, πΈγγγ³πΈ and jumping_redditor don't like this.
sun_is_ra
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
like this
Yamato_San, smay, sethroque, illusoryMechanist, Elbullazul, beeng, BlueTardis, prongs, Still, FinancedPizza, kemsat, einsteinx2, Number358, nothacking, qayxsw10987, XPost3000, abrasiveteapot, Jason P, kim (she/her), ditty, pitl, sdoorex, Rin, fabian_drinks_milk, samn, furikuri and jumping_redditor like this.
Kangie
Unknown parent • • •MetaRobert likes this.
don't like this
OmidMnz, everett, MetaRobert, evilflexo, goondu, harpuia, pixelscience, wviana, fabian_drinks_milk and πΈγγγ³πΈ don't like this.
eshep
in reply to Sh1nyM3t4l4ss • •Does
systemctl suspend
/systemctl hibernate
not do what your looking for?Jack likes this.
Linux reshared this.
RandomVideos
in reply to Sh1nyM3t4l4ss • • •like this
SneakyThunder, russjr08, averagedrunk, ElTacoEsMiPastor, shotgun_crab, IverCoder and furikuri like this.
russjr08
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.
like this
sponge, ditty, averagedrunk, IverCoder and furikuri like this.
testingtesting123
in reply to Sh1nyM3t4l4ss • • •sp00nix
Unknown parent • • •rotopenguin
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.
211879 β S0ix: Unable to achieve S0ix on Dell XPS 13 9310
bugzilla.kernel.orglike this
wviana, fabian_drinks_milk and ABeeinSpace like this.
yum13241
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.
like this
creation7758, torvusbogpod, fabian_drinks_milk, ABeeinSpace, jumping_redditor and user68k like this.
rotopenguin
in reply to yum13241 • • •like this
torvusbogpod, tehBishop and jumping_redditor like this.
yum13241 doesn't like this.
yum13241
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.
jumping_redditor likes this.
yum13241
in reply to sp00nix • • •sp00nix
in reply to yum13241 • • •yum13241
in reply to sp00nix • • •