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.

  • chunes@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month ago

    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
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      1 month ago

      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.

    • zalgotext@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 month 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

  • BrightCandle@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month 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.

  • someguy3@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 month ago

    Works fine on mine. Windows will wake up and check for updates if you don’t turn that off. It doesn’t work on Linux?

    • squaresinger@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 month ago

      On Linux on kernel 6.11+ it freezes every single time on wakeup.

      On kernel 6.10 it freezes when the laptop has been sleeping for more than a few hours.

      Hibernate just reboots the PC.

  • Wahots@pawb.social
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month ago

    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
      link
      fedilink
      arrow-up
      0
      ·
      1 month ago

      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
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 month ago

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

  • hendrik@palaver.p3x.de
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 month ago

    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.

    • arin@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 month ago

      Yes modern standby has burned my laptop in my backpack after the windows implementation… Insane

  • hardcoreufo@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month ago

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

    • Baron von Fajita@infosec.pub
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 month ago

      Newer Dells have removed the s3 deep sleep. I believe the cutoff is between Intel 11th gen and 12th gen in (at least) Latitudes. I have a i7 12th gen that sucks at sleep, but an i5 8th gen that sleeps well.

    • fuckwit_mcbumcrumble@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 month ago

      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.

      • SheeEttin@lemmy.zip
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 month ago

        It’s not about security. It’s about maintaining a network connection so you can stream Spotify and receive Facebook updates while it’s “sleeping”. It’s fucking stupid.

    • I think the laptop really does matter, and it’s because chipsets are not all equal in how well their sleep modes are supported in the OS.

      I’ve been buying XPS13s for over a decade; I’ve had four (three personal, and one requisitioned for me by my job), and sleep and suspend have worked almost flawlessly on them under Linux. In the office, most everyone else would move between meetings or to their desks with the lids almost closed, to prevent sleep and the problems it caused, but I’d just fearlessly close my lid; it was ironic to me that running Linux on the XPS I had more reliable sleep behavior than the Windows people on their laptops.

      For OP: low power, initialization, and restoring state has to be implemented by each chip, and there are a lot of shitty, poorly implemented chips. Then the OS also has to store and restore state for each chipset, and even if the chip implements it well, the OS has to do a good job restoring power in the correct order and restoring the state for each chip. If anything goes wrong in either the chip or driver implementation, you get a broken state.

      This is aggravated by the fact that Linux is a monolithic kernel, and if any device drivers get borked it usually borks the whole kernel. This wouldn’t be as bad a problem if Linux were a microkernel architecture and drivers could just be killed and restarted.

  • infinitevalence@discuss.online
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month ago

    Sleep on my minisfourm v3 is awesome with Linux. It correctly detects the keyboard cover, auto rotates based on the accelerometer and can be unlocked using the fingerprint sensor.

  • HubertManne@piefed.social
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month ago

    Its mostly the blue light and the lack of melatonin. Seriously though I have not had an issue with it in linux and not really that much with windows but half the time I shut my machine down.

  • floo@retrolemmy.com
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month ago

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

      • floo@retrolemmy.com
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 month ago

        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.

    • squaresinger@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 month ago

      Sleep and hibernate don’t work for me.

      Hibernate just acts like a power loss. After shutting down the state is just lost and the laptop starts up with a fresh boot.

      With Modern Sleep, kernels 6.11+ go to sleep fine, but don’t manage to wake back up. The keyboard lights up for half a minute, the fan goes on, the screen stays dark and after half a minute the laptop goes back to sleep. Kernel 6.10 sometimes works, sometimes behaves like 6.11+. I’d say it works 80% of the time.

      I disabled Modern Sleep in BIOS and tried to enable S3, S2 and S2+S3 in BIOS instead. I set the corresponding sleep states in Linux as well, and no matter which one of the non-modern-sleep options I try, and no matter if I’m using kernel 6.10 or 6.15, it never manages to wake up (same symptoms as above).

  • curiousPJ@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month ago

    My laptop refuses to stay asleep if fstab disks were disconnected prior to sleeping. It works perfectly fine for me now that I figured that out.

    Just one more weird behavior with fstab and kde or Linux or arch? I don’t know who to blame.

  • illusionist@lemmy.zip
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 month ago

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

    • cevn@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 month ago

      My system76 wont even go to sleep anymore. It just pretends, then if i put it in a backpack for a bit it is burning hot.

        • cevn@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 month ago

          Possibly, tbh I spent a few hours on it and gave up, the laptop is due for a replacement anyways. It has other problems too, the touchpad connector is very flaky. Not sure I would go with them again…

          • illusionist@lemmy.zip
            link
            fedilink
            English
            arrow-up
            0
            ·
            1 month ago

            Good to know, so far their on my buy list. Maybe not anymore :D My laptop is old but still works very good

            • cevn@lemmy.world
              link
              fedilink
              English
              arrow-up
              0
              ·
              23 hours ago

              Turns out that the touch pad was waking it up, once I fixed that sleep worked normally again. The only last issue is that the USB c port does not really work for charging so you have to lug their power adapter everywhere like a portable desktop. But if you could do USB to barrel power it would be completely fixed. Sometimes I have to apply strong downward pressure tl the touch pad but nbd.

              Spent 30 or so hours fixing all the issues with the laptop but now its great! Not for the faint of heart lol.

  • GreenKnight23@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 month 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.