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.

  • athairmor@lemmy.world
    link
    fedilink
    English
    arrow-up
    31
    ·
    25 days ago

    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.

    • d00phy@lemmy.world
      link
      fedilink
      English
      arrow-up
      11
      ·
      25 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.

  • hardcoreufo@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    ·
    25 days 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.”

  • diffusive@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    1
    ·
    25 days ago

    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
      link
      fedilink
      English
      arrow-up
      6
      ·
      25 days ago

      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

      • diffusive@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        24 days ago

        This kind of stuff must happen at hardware level… wake on lan is in hardware.

        Ethernet cards keep in getting packets (arp at very least) even if they are not directed for them. If the OS needs to check all packages it would be always on

        That said… wake on lan is also a waste of energy if you don’t need (why powering the Ethernet cards?)

        • glimse@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          24 days ago

          The setting I am suggesting gets disabled keeps the card powered during sleep so Wake on LAN can work on a hardware level.

          The OS isn’t checking the packets. The NIC gets a packet and wakes up the OS.

          I am not defending it, just explaining how to stop it from happening. A lot of people who know what Wake On LAN is don’t know about Wake On Magic Packet

  • Treczoks@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    1
    ·
    edit-2
    24 days ago

    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.

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

  • chunes@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    24 days 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
      5
      ·
      edit-2
      24 days 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.

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

  • Burnoutdv@feddit.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    24 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

    • squaresinger@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      24 days 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
    2
    ·
    24 days 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.

  • Midnight Wolf@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    25 days ago

    Re the windows waking up, it’s likely a network card/chip to blame. You can disable the ability to wake inside Device Manager. Every time I had a system wake unexpectedly, networking was to blame.

    • squaresinger@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      24 days ago

      I also had it that one laptop was configured to wake any time the mouse moved even a tiny bit. So walk past the laptop, laptop is now awake.

      Sadly I cannot configure any of that on my work laptop, because helpdesk thinks allowing me to do so would be a security risk or something like that.