156

In 8 hours it uses 20% of the battery. When Windows or Mac are put to sleep, the damn things can sleep for a week! This is the case with Linux on multiple laptops.

Is there some kind of manipulation going by ring -1 that detects Linux is running? Is Linux not respecting some procedure and kissing a step?

top 50 comments
sorted by: hot top new old
[-] BigTrout75@lemmy.world 122 points 1 month ago

If only going to sleep was simple. There's a bunch of different sleep states. S3 is ram and S4 is hibernate.

Check your supported sleep states. At the command line type cat /sys/power/state

https://www.kernel.org/doc/html/v5.4/admin-guide/pm/sleep-states.html

[-] Jesus_666@lemmy.world 76 points 1 month ago

It also doesn't help that ACPI is a badly-designed mess of a standard. I remember that in the 2010s one of Apple's selling points was that their laptops had sleep and hibernation that worked every time. Heck, MacOS X could even decide intelligently when to do which. This mostly worked because they fully controlled the hardware, firmware, and software. Other laptop manufacturers could just take their best stab at implementing ACPI power states and hope their implementation matched Microsoft's.

Microsoft tried to solve the mess by introducing the S0ix ACPI state (aka "Modern Standby"), which was defined in a way that could actually be implemented without too much guesswork. Unfortunately, this was during the Windows 8 era when Microsoft decided that laptops should be more like smartphones so S0ix is much closer to turning your screen off on a phone than to actual standby.

The system randomly waking up and deciding to do work is an explicitly intended feature because what if you get a Teams message while your laptop is in your bag? Sure, you might say that you'd either have Teams on your phone or wouldn't immediately care but that kind of thinking won't get you anywhere within Microsoft. Also, Windows actually has very little restraint about what it does when it wakes up so it might decide to install a heavy update or an application might decide it's important enough to do work right now. While the laptop is in your bag. Cue you wondering if the laptop turned off because the battery's empty or because it overheated.

And to make things worse Microsoft specified that in order to be allowed to use Modern Standby, the device must not offer S3 (sleep/suspend-to-ram). Some manufacturers still allow you to enable S3 but it's a legacy feature that's even less well supported than before.

[-] Ghoelian@piefed.social 22 points 1 month ago

The system randomly waking up and deciding to do work

My work macbook did this by default as well, among other dumb things like leaving bluetooth enabled on sleep so my headphones would constantly connect to the laptop when on the train trying to listen to music.

Thankfully the waking up thing is just a setting, but by default, imho, mac os's sleep is also garbage.

[-] prole@lemmy.blahaj.zone 6 points 1 month ago* (last edited 1 month ago)

I've got Sony Bluetooth earbuds a few years back and I guess they have something called "multipoint" where they can connect to multiple devices at once. I had to Google why anyone would want that, but I guess it's to make switching between devices faster.

Sometimes I'll be walking down the sidewalk with my earbuds in, connected to the phone in my pocket, and they'll just randomly make the sound it makes when connecting or disconnecting. Like I'm connecting to the BT of a random house or business I walked past that I never explicitly paired with.

I can't exactly put my finger on why, but I find it very unsettling every single time and wish I could turn that feature off.

load more comments (4 replies)
[-] psycotica0@lemmy.ca 6 points 1 month ago

This is the one I was going to link.

I have my laptop in s2idle mem_sleep most of the time because this boots quick and allows me to wake the computer by pressing a key on my USB keyboard plugged into a hub plugged into my dock into my laptop.

And it gets from my office and back just fine on that. But if I'm traveling or something I'll switch it to deep mode before I leave so it actually actually goes to sleep in my bag.

It takes extra time and jank to boot, and I have to wake it up by opening the lid, but if I'm traveling that's normal since I don't travel with my dock or USB keyboard anyway.

This is one of those cases where it would be nice if the tech always did what I wanted, but I do actually want different things at different times, and so I do actually benefit from the control of being able to choose.

My hardware doesn't support "shallow" sleep, for whatever reason.

[-] dustyData@lemmy.world 10 points 1 month ago

The reason is, as usual, that Microsoft lobbied hard to make their way the standard way of doing sleep modes. Then, when implementing it, they strong armed all the OEM to make hardware fit their nonstandard, slightly off center, way.

So, now windows kind of work with all hardware, but open source is fucked because to make the hardware actually work requires reverse engineering whatever custom crap windows does.

[-] The_Decryptor@aussie.zone 7 points 1 month ago

The sleep stuff is part of the ACPI standard, it's all documented.

It's up to the motherboard/SoC to support it properly, and Microsoft has an "entire system view" of how Windows works and can integrate it deeply. Compare that to Linux, the companies involved mostly care about servers, and the distros are assembled by disparate groups that don't have the hardware testing capability that MS or OEMs have.

load more comments (5 replies)
[-] LeTak@feddit.org 107 points 1 month ago

Your system goes to sleep and wakes up? My system goes to sleep and then crashes. We are not the same

[-] LeFrog@discuss.tchncs.de 24 points 1 month ago

Your system and me have a lot in common (⌐■_■)

[-] Technotica@lemmy.world 6 points 1 month ago

Mine too! Well one of mine, and I still don't know why just this one. But hey, it's not like Linux cares if it is crashing, it always comes back.

load more comments (1 replies)
load more comments (3 replies)
[-] ViatorOmnium@piefed.social 56 points 1 month ago

It's mostly a mix of newer laptops not supporting suspend to RAM (only suspend to idle), and faulty hardware requiring proprietary hacks to actually go idle.

[-] Maestro@fedia.io 52 points 1 month ago

Windows doesn't sleep. Ever. Sleep is now just a nickname for Modern Standby, which is just running in low power mode doing a whole bunch of shit. The amount of times I come back to my laptop and it has gotten stuck at a reboot is just embarrassing. I dual-boot and have Grub, so whenever Windows tries to reboot itself it gets stuck.

People have gotten their laptops damaged because they thought they were sleeping and put them in a bag, when Windows decides to try to update itself while the fans are blocked inside the bad. Bam, heat damage.

[-] hendrik@palaver.p3x.de 14 points 1 month ago* (last edited 1 month ago)

Shouldn't modern laptops have temperature sensors and just deal with it in some way? I had this happen to me a few times with my old Thinkpad from 12 years ago. Threw it into the backpack in a rush and an hour later I'd pull it out, hot and doing something I didn't want it to do... But it never suffered any kind of damage from that. Was just very annoying.

[-] Maestro@fedia.io 20 points 1 month ago

You can't interrupt Windows Update either. So, rock meets hard place?

[-] hendrik@palaver.p3x.de 10 points 1 month ago

Sure 😆 In the meantime I found a solution for all the Windows Update debacle. Bought a newer laptop, went home and just wiped the entire SSD before installing Linux. Now I don't get any dual-boot or Windows update. Also goes to standby 100% of the time. ¯_(ツ)_/¯

load more comments (2 replies)
load more comments (1 replies)
[-] devaly@ani.social 32 points 1 month ago

Always wondered this. My steam deck dies in a day if put to sleep or hibernate.

[-] PotatoesFall@discuss.tchncs.de 21 points 1 month ago

if the battery dies during hibernate, it's not hibernating

incidentally I have been using linux for years and have never had a working hibernation setup. I'm convinced it's a hoax at this point

load more comments (5 replies)
[-] rumschlumpel@feddit.org 18 points 1 month ago* (last edited 1 month ago)

Really, hibernate as well? On my linux desktop and laptops, hibernate completely cuts the power. It's definitely possible that this works differently for a handheld device, though, and I don't think I even tried using hibernate on an ARM device.

load more comments (1 replies)
[-] LeTak@feddit.org 26 points 1 month ago

I just want the option to put my Linux laptop into S3 ACPI power State. Daim you modern W11 hardware and S0!!!

load more comments (1 replies)
[-] teawrecks@sopuli.xyz 26 points 1 month ago

Worth noting that this is also an ongoing issue with windows. Only apple has actually solved this, and they do so by owning the whole stack. Each apple product has a specific OS, CPU, and motherboard that were all specifically designed with the end-product user-experience in mind.

But for PCs, the OS, CPU, and motherboard are all designed and built by different companies, each only designed to be generically compatible with the other components. None of them are designed for a specific end-product, so features that require all of the components to play perfectly together for a specific end-user experience (like sleep state) often end up not quite aligning.

None of this helps you, but I think it's worth understanding why the problem exists and why it may just always exist. The best bet is that companies like System76 or Valve solve sleep states for specific linux-based products, and then the rest of us maybe hopefully see some benefit from that.

But IMO this is just a trade-off. It's like a pick 2 situation between Customization, Stability, and Privacy (where a reliabile sleep state is Stability). You can have stability and customization, but you'll probably pay a lot, and the company who sold it will want telemetry data to improve the experience for others. You can have stability and privacy, but the product will be very locked down to a specific use case to ensure a stable experience.

[-] green_link@lemmy.world 6 points 1 month ago

It's not that apple solved it, it's that Microsoft purposely fucked it up.

It's called "modern standby" and if you put your laptop to sleep while it is plugged into power, some windows services and wifi aren't actually put to sleep, and instead will ping windows update servers to download and install some updates while the machine is "asleep".

Even if and when you put the laptop to sleep while plugged into power and then remove power to say out the laptop in your bag. Those services that aren't put to sleep never check to see if you are still on wall power or battery and keep doing what they do draining the battery

Linus tech tips on YouTube did a whole deep dive into it. Some laptops you can disable modern standby through the command prompt but newer hardware doesn't allow for it. The only real workaround is unplug your laptop for a few seconds before putting it to sleep.

load more comments (2 replies)
load more comments (1 replies)
[-] MangoPenguin@lemmy.blahaj.zone 25 points 1 month ago* (last edited 1 month ago)

No idea if this applies to a lot of laptops, but on my HP with an i5-8350U every Linux distro I've tried seems to come configured using s2idle instead of deep sleep, and battery will drain very quickly even in 'sleep' mode.

If running cat /sys/power/mem_sleep returns "[s2idle] deep" then you can add mem_sleep_default=deep to your kernel args and it will actually go to sleep properly.

On Fedora this was sudo grubby --update-kernel=ALL --args="mem_sleep_default=deep" but it varies by distro.

Why it seems like every distro I've used has this set incorrectly I do not know, it's baffling.

[-] onlinepersona@programming.dev 6 points 1 month ago* (last edited 1 month ago)

Interesting. "s2Idle" sounds like it's idling and wasting cycles when it's supposed to be sleeping. I'll try those commands.

Also perplexing to me that idle is chosen as a default.

load more comments (2 replies)
[-] Baggie@lemmy.zip 25 points 1 month ago

I once did a deep dive on sleep mode for some problem a friend was having. I'm now convinced it might be the worst thing I've ever seen in modern computing. It's globally horrendous, poorly implemented, and causes random problems in unfathomable places. It's amazing it ever works at all.

load more comments (8 replies)
[-] Lehmuusa@nord.pub 23 points 1 month ago

On my Linux computer I just close the laptop's lid and it goes to sleep, consuming almost no battery power. I can open it hours later and have basically the same amount of battery left as before.

But some laptop manufacturers have proprietary systems in place for the sleep mode that are not supported in Linux because it would be a gargantuan effort when the laptop manufacturer refuses to coöperate.

[-] GalacticGrapefruit@lemmy.world 13 points 1 month ago

This is the answer.

Proprietary firmware. Fuck Intel.

load more comments (1 replies)
[-] moth@anarchist.nexus 21 points 1 month ago

moth doesn't know what CPU you use, but newer AMD chips don't support S3. AMD removed that because they think modern suspend is better, an opinion that doesn't seem to be shared by the consumers.

load more comments (6 replies)
[-] JasonDJ@lemmy.zip 19 points 1 month ago

I've only used windows at work in the past 10 years or so but my windows experience with sleep was far far worse.

My laptop would always wake up in my bag on my hour+ commute. The laptop would be scorching hot and the battery dead by the time I got to the office. Every time.

Never experienced that in Linux.

Recently I switched to a Linux computer at work and it's much better in every regard.

My personal desktop (runs arch (btw)), did have some trouble with sleep recently tho...I replaced my 5700G with a 5600X3D and it would refuse to wake from sleep, necessitating a hard shutdown (by PSU switch!)...but I think that was a bios bug. My bios was already very close to latest but I think upgrading that was what ultimately fixed it. Now it works fine.

[-] Zacpod@lemmy.world 9 points 1 month ago

Every piece of shit windows laptop since they flipped from S3 sleep to "modem standby." garbage. Thing wakes up in the bag at the slightest whiff of wifi. "Oh! Network! Want me to connect so I can install updates, delete all your pinned tabs, break a few apps, and infect notepad with AI slop vulnerabilities? No answer? That must mean you want that - doing it now, boss!"

Dell, Lenovo, and Surface laptops all do the same shit. I fucking hate windows.

Dell support even told me, with a straight face, that if I didn't fully shut down my laptop before putting in my bag that I'd void the warranty.

[-] onlinepersona@programming.dev 6 points 1 month ago

Dell support even told me, with a straight face, that if I didn't fully shut down my laptop before putting in my bag that I'd void the warranty.

That's insane, what the fuck? BTW, the owner of Dell is a right-wing dude who supports DHH. I'm not surprised they they have such shitty customer service.

load more comments (1 replies)
load more comments (3 replies)
[-] TehPers@beehaw.org 18 points 1 month ago

When Windows or Mac are put to sleep, the damn things can sleep for a week!

When I put my Windows work laptop to sleep, it damn well can sleep for a week. In fact, it sleeps so well that you could fell a tree next to it and it still wouldn't wake up.

They should really rename that button to "coma". "Sleep" implies you can wake it up.

load more comments (2 replies)
[-] HelloRoot@lemy.lol 15 points 1 month ago* (last edited 1 month ago)

I rarely put my linux to sleep because I had this experience in the past, but yesterday I've had my minisforum v3 laptop in sleep for 3 hours and it stayed fully charged at 100% battery. It made me think the battery percentage readout was broken, but no, it strarted draining after using it for a while.

No clue if it's something I did back then during install (arch linux btw) or whether it was like this out of the box, but it really surprised me. And I'm gonna try using it more in the future.

[-] RogueBanana@piefed.zip 9 points 1 month ago

Please preach us the forbidden knowledge you hold

load more comments (3 replies)
[-] parsimon@programming.dev 14 points 1 month ago

I recommend using hibernate (suspend to disk): your computer will "sleep" for 10 years without draining. The only cost is about 7 seconds to boot on modern hardware. For short interruptions with instant wakeup, you can still use light sleep states.

It combines perfectly with LUKS-encrypted root and swap partitions: your data is safe even if someone steals your computer and swakes it up.

load more comments (9 replies)
[-] Kind_to_Everyone@slrpnk.net 14 points 1 month ago

Sleep on Windows 11 is horrendous. It appears to be little more than locking the session and turning off the screen.

[-] borokov@lemmy.world 12 points 1 month ago

When I put windows to sleep it just wake up in middle of the night to install whatever update, restart and slowly empty it battery until it die.

load more comments (1 replies)
[-] hexagonwin@lemmy.today 8 points 1 month ago

i use a kaby lake (7th gen intel i5) laptop, and sleep works well on all linux, freebsd, windows. i'm using s3 sleep, are you on a newer machine that only supports s0ix?

load more comments (3 replies)
[-] daychilde@lemmy.world 6 points 1 month ago

No rest for the wicked?

[-] the_riviera_kid@lemmy.world 6 points 1 month ago

From what I heard, the sleep mode on the steam deck is just the default linux sleep mode. It works almost flawlessly.

I don't think it's quite true though because I can leave it in sleep mode for days and it just fires back up where it left off with almost no noticeable battery drain. If I put my desktop pc to sleep (bazzite) it acts like a stroke victim. IF it manages to wake up. Usually it just has to be restarted so I don't waste my time and just shut it down now.

[-] son_of_darkness@lemmy.world 6 points 1 month ago* (last edited 1 month ago)

I mean, it is more than thirty years and has lots of responsibility.. That or lack of melatonin

[-] majster@lemmy.zip 6 points 1 month ago

Windows has same problems. Its hot bag syndrome. Issue lies at hardware and firmware level. FYI my T480 configured for deep sleep looses only 1% per day sleeping.

I didn't configure hybernation though.

load more comments (2 replies)
[-] Safeguard@beehaw.org 6 points 1 month ago* (last edited 1 month ago)

I use CachyOS and enabled some serious battery saving techniques:

s2idle (although stupid name) is the best option. And also install all the tlp stuff.

Those things together made my machine incredible. (X13 gen3 and a P15 Gen1)

load more comments
view more: next ›
this post was submitted on 06 Oct 2026
156 points (94.8% liked)

Linux

15591 readers
494 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 3 years ago
MODERATORS