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 controversial new old
[–] 4 points 1 hour ago (1 child)

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.

  • source
  • hideshow 1 child comment
  • [–] 10 points 3 hours 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.

  • source
  • [–] 11 points 4 hours ago (5 children)

    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.

  • source
  • hideshow 5 child comments
  • [+] -1 points 4 hours ago (2 children)
  • [–] 9 points 5 hours 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.

  • source
  • [–] 6 points 5 hours ago

    No rest for the wicked?

  • source
  • [–] 20 points 7 hours ago* (1 child)

    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.

  • source
  • hideshow 1 child comment
  • [–] 19 points 9 hours ago (6 children)

    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.

  • source
  • hideshow 6 child comments
  • [–] 7 points 5 hours ago (2 children)

    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.

  • source
  • parent
  • hideshow 2 child comments
  • [–] [S] 6 points 5 hours ago (1 child)

    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.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 7 hours ago (2 children)

    I’ve always had this Windows issue you described with ThinkPads. Never had a problem with Dells though. Drives me absolutely crazy

  • source
  • parent
  • hideshow 2 child comments
  • [–] 5 points 7 hours ago

    Debian has worked fine on my old laptop, probably only a few days for me but the battery is a decade old or so.

  • source
  • [–] 4 points 7 hours ago

    Too much screentime before bed?

  • source
  • [–] 97 points 14 hours ago (11 children)

    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

  • source
  • hideshow 11 child comments
  • [–] 57 points 13 hours ago (2 children)

    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.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 15 points 9 hours ago (1 child)

    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.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 4 points 8 hours 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.

  • source
  • parent
  • load more comments (8 replies)
    [–] 88 points 15 hours ago (3 children)

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

  • source
  • hideshow 3 child comments
  • load more comments (3 replies)
    [–] 44 points 14 hours ago (6 children)

    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.

  • source
  • hideshow 6 child comments
  • load more comments (6 replies)
    [–] 16 points 12 hours ago (2 children)

    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.

  • source
  • hideshow 2 child comments
  • [–] 47 points 15 hours 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.

  • source
  • load more comments
    view more: next ›