this post was submitted on 14 Jul 2025
162 points (94.5% liked)

Linux

11976 readers
787 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 2 years ago
MODERATORS
 

And it's crap across the OSes. On Linux laptops don't wake up from sleep, on Windows they keep waking up when nobody asks for it.

In our home office room there's three laptops. My private one running Fedora, my work PC that sadly runs Windows and my wife's laptop also running Windows.

My work laptop and my wife's laptop keep waking up wasting electricity, and my private laptop needs a hard reset to wake it up every second time.

That feature should be stupid simple, yet it doesn't work across the board.

Rant over.

top 50 comments
sorted by: hot top controversial new old
[–] athairmor@lemmy.world 65 points 3 days ago (7 children)

And it's crap across the OSes.

Never had these problems with MacBooks. It’s probably one advantage of the OS and hardware being made by the same company.

[–] miguel@fedia.io 21 points 3 days ago

I noticed the same. The old macbook that I restored to become my 'writing' machine can sit asleep for a week (as I found out by accident) and just pops right up when opened. My windows and linux laptops have so many sleep issues.

[–] d00phy@lemmy.world 17 points 3 days ago

Agreed. For all the downsides people point out with Mac’s, they handle this and battery life quite well. My daily driver is a Mac, and everything I connect to runs some flavor of Linux. Then there’s the Windows 11 thing my work foists upon me.

[–] squaresinger@lemmy.world 14 points 3 days ago

That's fair, never had one, so I can't judge that.

[–] TVA@thebrainbin.org 13 points 3 days ago

Agreed, I disable sleep on all laptops other than my MacBook and my work laptop which manages to drain its battery and overheat itself on my bag semi frequently.

The MB has never had negative issues with sleep.

[–] illusionist@lemmy.zip 5 points 2 days ago (1 children)

I never had problems with sleep. Neither with fedora nor suse nor arch

load more comments (1 replies)
load more comments (2 replies)
[–] Lost_My_Mind@lemmy.world 67 points 3 days ago (2 children)

Hell, why is sleep so hard for most humans?

[–] lambalicious@lemmy.sdf.org 18 points 3 days ago

Absolutely unfair, I tell ya!

load more comments (1 replies)
[–] SheeEttin@lemmy.zip 45 points 2 days ago (1 children)

The problem is it's not stupid simple, it's actually fairly complicated. Each piece of hardware and its driver must be suspended. The GPU is a particularly tricky one. Its processor must be suspended, and the state saved. In the kernel, the driver must suspend its execution, and likewise save its state. Then on resume, each half has to reload and begin execution again. And if there's any mismatch in the resumed states, the GPU and/or driver crash and probably take the kernel with it.

Now do that for the Wi-Fi, Bluetooth, sound card, USB, disk controller, and every other device.

[–] HyperlinkYourHeart@lemmy.ml 8 points 2 days ago (1 children)
[–] racketlauncher831@lemmy.ml 5 points 2 days ago (1 children)

What are you talking about? This guy dies and comes back alive every time!

load more comments (1 replies)
[–] ter_maxima@jlai.lu 16 points 2 days ago

I have had no issues with sleep on macOS, so whatever they are doing we should try to copy !

The same MacBook air, that used to last over a week with the lid closed on macOS, now needs to be charged every 3 days on Asahi NixOS.

Linux is a much better operating system, even just for the sheer variety of software available, but power management isn't quite there yet in my experience on this laptop.

[–] Treczoks@lemmy.world 9 points 2 days ago* (last edited 2 days ago) (1 children)

wakes up when nobody asks for it.

Wrong. You might not have asked for it, but it is not your computer, it's Windows' computer. Microsoft decides when it wakes up.

[–] exu@feditown.com 15 points 2 days ago (2 children)

A few years ago Windows invented a new sleep state, s0ix, instead of the previous s3 state. This makes a laptop behave more like a phone, able to wake up when it receives new data.

Unfortunately this is usually implemented badly and also causing the removal or neglect of previously reliable s3 sleep.

[–] CriticalMiss@lemmy.world 11 points 2 days ago (2 children)

It’s actually insane that the only company who I’ve noticed pull off s0 sleep properly is Apple with their MacBooks, which is sad. I understand they likely had already figured out how to do it properly by working on it for iOS but still, goddamn, it can’t be difficult to fix it elsewhere?

I understand Linux is a FOSS OS (and they kinda at the mercy of hardware manufacturers to upstream support for hardware) so I have no complaints there, but Microsoft that makes so much money can’t get people to fix it? I call bullshir.

[–] GamingChairModel@lemmy.world 3 points 2 days ago

MacBook seamless suspend/sleep performance is like 25% of why my personal daily driver is MacOS. Another 50% is battery life, of which their sleep/suspend management plays a part. I've played around with Linux on Apple hardware but it's just never quite been there on power management or sleep/wake functionality. Which is mostly Apple's fault for poor documentation and support for other OS's, but it just is, and I got sick of fighting it.

load more comments (1 replies)
[–] squaresinger@lemmy.world 4 points 2 days ago (2 children)

I unlocked my bios (luckily Lenovo allows that with just a "secret" key combination in the bios) and disabled modern sleep, enabled S3 and S2 and tried that, with the result that my Linux freezes every time on wake up instead of only half the time...

Don't know what exactly they messed up there, but it's frustrating.

load more comments (2 replies)
[–] jmhmccr@lemmy.world 11 points 2 days ago
[–] Wahots@pawb.social 5 points 2 days ago (1 children)

It's amazing how bad Linux and Windows are at sleeping on my laptops. My steam deck has a power drain issue too, even when fully powered off.

[–] sunzu2@thebrainbin.org 4 points 2 days ago (1 children)

My steam deck has a power drain issue too, even when fully powered off.

Noticed this too... Does not feel very off

[–] Wahots@pawb.social 2 points 22 hours ago

It feels like everything is running on a VM, and the hypervisor is running constantly. Or something odd like that.

[–] chunes@lemmy.world 10 points 2 days ago (2 children)

First thing I do on any OS, but especially linux, is turn off every sleep-related option permanently. I don't care anymore. I won't fight with it.

[–] funkyfarmington@lemmy.world 8 points 2 days ago* (last edited 2 days ago) (1 children)

In 35 years of experience I've never got it to work correctly on any OS except IOS. I've only met ONE tech who claimed it worked for them, and that was in the 2000's. He couldn't demonstrate how exactly.

I do the same thing, turn that shit off because it does not work.

[–] ter_maxima@jlai.lu 3 points 2 days ago (1 children)

Do you mean iOS (iPhone) or IOS (Nintendo Wii) ? Or is there a third ?

[–] SheeEttin@lemmy.zip 6 points 2 days ago (1 children)

Cisco firmware is also IOS.

load more comments (1 replies)
[–] zalgotext@sh.itjust.works 3 points 2 days ago

Yeah I don't bother with sleep either, I just turn all my stuff off when I'm done with it. With the advent of SSDs and M.2 drives, it takes about 10 seconds for my desktop to boot from fully powered off. I can wait that long lol

[–] GreenKnight23@lemmy.world 8 points 2 days ago* (last edited 2 days ago)

my guess is because the CPU power levels are fucking trashed because of all the patches they have to run at runtime. before Intel went all "wild west" with their security practices to improve performance, sleep worked just fine for me.

keep in mind, this was before uefi too, so it might also have a hand in the problems.

[–] illusionist@lemmy.zip 8 points 2 days ago* (last edited 2 days ago) (5 children)

Never had I problems with sleep. Neither with arch, suse, fedora nor ubuntu. Neither with Gnome nor with kde.

Not even with windows.

Must be the hardware (brand).

load more comments (5 replies)
[–] Burnoutdv@feddit.org 4 points 2 days ago

This is purely anecdotally and pretty worthless as a guide or anything, but i got it working perfectly on my framework laptop running kde neon (basically Ubuntu with kde as de in rolling release mode) But its basically archeotech, past me followed a bunch of hints in the framework forum, did some unknown configuration and now it works reliable through all other updates since at least 20 month, battery holds around a week or so sleeping i think

[–] diffusive@lemmy.world 18 points 3 days ago (1 children)

I researched this in (checking notes) 2009 or so… things may have slightly changed since (and my memory is fading away)

At the time there was a standard for sleeping. Microsoft was part of the standard… and then they decided to implement in a different way (classic Microsoft, of course).

Hardware producers then adjusted to windows because… well… we were dozens of us using Linux on laptops.

This created issues in Linux because there were some purist developers that wanted to follow the standards, others that were more pragmatic and wanted to implement the windows way. In the end nothing worked.

Fast forward to today, windows waking up constantly I guess it’s broken as expected because it wants to allow background processes to do stuff. Linux not waking up sounds still the issue from 2009: there are multiple levels of sleep and the deepest was the most problematic. If I have to guess your laptop wakes up just fine if the battery is full and you left closed for few minutes… while it doesn’t when the battery is low-ish and/or you left sleeping for a longer period

[–] glimse@lemmy.world 7 points 2 days ago (3 children)

It's waking up because another device on the network (probably router) is pinging it

Disable "Wake on Magic Packet" and the Windows sleep issue goes away

load more comments (3 replies)
[–] floo@retrolemmy.com 18 points 3 days ago (1 children)

Sleep function works pretty flawlessly on macOS. Always has. The hibernation function is pretty great, too.

[–] Semi_Hemi_Demigod@lemmy.world 11 points 3 days ago (1 children)

On older Macs the light would pulse when sleeping in the same pattern as a human breathing while asleep.

[–] floo@retrolemmy.com 9 points 3 days ago (1 children)

I remember that. It was so cool.

I really miss when Apple made devices that had those awesome little touches. I still think Apple devices are pretty great, but they used to be better.

[–] Semi_Hemi_Demigod@lemmy.world 8 points 3 days ago

Same here. The hardware is still great but there’s not as much soul in the designs.

[–] Deconceptualist@leminal.space 12 points 2 days ago (4 children)

Wait, are you suggesting it's consistent and reliable on desktops?

[–] mbfalzar@lemmy.dbzer0.com 8 points 2 days ago (1 children)

I'm roughly 25 years into using computers daily and never turning them off and I've never had or used a desktop that didn't sleep and wake reliably, either naturally or using the sleep and wake buttons on the keyboard, with both Linux and Windows

[–] Deconceptualist@leminal.space 7 points 2 days ago* (last edited 2 days ago) (1 children)

Are you talking the full set of S0-S3 sleep as well as hibernation? Or just whatever your machine did by default? Because I've never had one do all of them correctly without freezing up or having some other issue, across multiple motherboard brands and BIOS updates and so forth. ~30 years here, Windows mostly then the last few on Linux.

load more comments (1 replies)
load more comments (3 replies)
[–] hendrik@palaver.p3x.de 12 points 3 days ago* (last edited 3 days ago) (1 children)

Maybe that's more an issue with modern standby? Or the hardware has some quirks. The last two laptops I had were a Thinkpad and now a Dell Latitude. And they both sleep very well. I close the lid and they'll drain a few battery percent over the day, I open the lid, the display lights up and I can resume work... Rarely any issues with Linux.

load more comments (1 replies)
[–] piefood@feddit.online 12 points 3 days ago

I haven't used sleep on any of my laptops for >20 years because it's been so unreliable. Rather than getting frustrated, I gave up pretending it would ever work, and adjusted accordingly.

[–] hardcoreufo@lemmy.world 10 points 3 days ago (3 children)

I have an old Dell XPS 13 sleep works great on for Linux probably can sleep a week or two and still have charge left when I open the lid. I have a newer framework and it's dead in 2 days while "sleeping."

[–] fuckwit_mcbumcrumble@lemmy.dbzer0.com 8 points 2 days ago (2 children)

S0 standby is the problem. It's a flawed idea from the start. The theory is it's more "secure" or something. But like... Who cares about stealing shit from memory going from sleep to wake.

Now my laptop drops 20% charge in 5-10 minutes and goes into hibernation. It draws more power than if it's on.

load more comments (2 replies)
load more comments (2 replies)
[–] BrightCandle@lemmy.world 10 points 3 days ago

In my case its because Sony messed up the bios in more ways than one and refuses to correct the problems. They work around it with their own drivers witin Windows and leave it like that, but it also breaks Linux functionality as a result.

load more comments
view more: next ›