An exciting post-Christmas patch series out on the Linux kernel mailing list this morning is proposing a new runtime standby ABI that is similar in nature to the “Modern Standby” functionality found with Microsoft Windows.

Antheas Kapenekakis sent out the patch series today proposing this new runtime standby ABI for Linux. Antheas Kapenekakis is one of the developers heavily involved in the Linux gaming handheld space with working on the OneXPlayer driver, ASUS ROG Ally improvements, MSI handheld improvements, and more.

  • zib@lemmy.world
    link
    fedilink
    English
    arrow-up
    36
    ·
    2 days ago

    I hope they implement it better than MS did for Windows 10/11. I recently setup a Windows 11 machine for work and had to enable hibernate specifically because S0 sleep is incapable of staying asleep for more than 30 seconds despite me disabling literally every device from being able to wake it up.

    • MSids@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      1 day ago

      I had a series of issues with my old tower that kept waking up and it was very frustrating.

      Just curious, did you do a powercfg /lastwake to see what woke it from suspend? For me I think it ended up being a scheduled task, something like Adobe updater, though I don’t remember exactly.

      • zib@lemmy.world
        link
        fedilink
        English
        arrow-up
        6
        ·
        1 day ago

        Yeah, that’s the frustrating thing. I would run that immediately after watching it wake up and it would gaslight me saying nothing woke it up.

        • MSids@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          1 day ago

          Very frustrating, I remember a similar experience, the command seemed to only show wakes caused by a device like mouse or wake on LAN.

          If you still have the machine, check those scheduled tasks (like UpdateOrchestrator tasks) and uncheck “Wake the computer to run this task” in its Conditions tab, or globally disable Wake Timers in Power Options

          • Fiery@lemmy.dbzer0.com
            link
            fedilink
            arrow-up
            2
            ·
            1 day ago

            Had this once, turned out to be some driver update software for a gaming mouse (at least something like that). Sucks for non-technical people that its quite hard to figure out for them without involving the ‘family IT guy’

            • lad@programming.dev
              link
              fedilink
              English
              arrow-up
              3
              ·
              1 day ago

              Tbf, these days windows is so obscure, it also sucks for technical people, sometimes it’s practically impossible to find where to configure something even if you know it can be configured, even worse if you don’t know for sure

    • Leon@pawb.social
      link
      fedilink
      English
      arrow-up
      17
      ·
      2 days ago

      I feel this. Initially I just closed the lid on my work laptop, but I kept waking up to my work monitor just sitting there shining in the middle of the night, because despite having put it in hibernate, it decides to spontaneously wake up and sit at the login screen. Couldn’t ever fix that, so now I unplug it when I quit my workday.

  • woelkchen@lemmy.world
    link
    fedilink
    arrow-up
    23
    ·
    2 days ago

    Modern Standby is the thing that causes your notebook to heat up when closing the lid and putting it into your backpack.

    It only really works on my Surface, on my work’s ThinkPad it merely mostly works, on my private Asus gaming notebook it’s entirely broken.

    Old standby on my Steam Deck is what works most reliable in my household.

    • lengau@midwest.social
      link
      fedilink
      arrow-up
      5
      ·
      1 day ago

      To be fair, Windows has had standby issues forever, so the only thing that’s different here from 20 years ago is that Linux does it reliably.

      • woelkchen@lemmy.world
        link
        fedilink
        arrow-up
        6
        ·
        1 day ago

        To be fair, Windows has had standby issues forever

        I have the same issues with my Intel MacBook. Maybe “background tasks can wake-up the system if needed” is not really needed on notebooks and actually a dumb concept for non-phone devices.

  • Björn@swg-empire.de
    link
    fedilink
    arrow-up
    21
    ·
    2 days ago

    Modern Standby is a low-power mode on Windows 11 for letting systems remain connected to the network and appear “sleeping” but will allow for instant wake-up for notifications, music playback, and other functionality. The display is off, the network remains online, and background tasks can wake-up the ystem if needed with Microsoft Modern Standby.

    • devfuuu@lemmy.world
      link
      fedilink
      arrow-up
      31
      ·
      edit-2
      2 days ago

      I was forced to use a mac recently. I believe this may be what it also does. It’s absolute insanity and I hate the behavior with passion. If I put it to sleep I want it to stay sleeping, dead, not running, not using the network, not draining my Bluetooth headphones that were connected and I expected for them to turn off… or to keep receiving slack notifications on it instead of them routing properly to the other really connected device…

      I hate this timeline.

  • LiveLM@lemmy.zip
    link
    fedilink
    English
    arrow-up
    7
    ·
    2 days ago

    On a semi-related note, does anyone know if there’s any modern laptops that still support regular S3 Sleep? Or did they all switch to S0ix?

  • FrostyPolicy@suppo.fi
    link
    fedilink
    arrow-up
    20
    arrow-down
    9
    ·
    2 days ago

    We don’t need this crap on Linux. Sleep is meant to be a low power mode where everything except ram is powered down, and you can pick up near instant where you left off. Not this kind of “sleep” where about everything is running like before. A desktop/laptop isn’t a mobile phone where this behavior is the standard.

    • Björn@swg-empire.de
      link
      fedilink
      arrow-up
      47
      arrow-down
      1
      ·
      2 days ago
      1. Not every Linux device is a desktop or laptop.
      2. Something similar was recently added to the Steam Deck to download updates before going properly to sleep.
      • Zykino@programming.dev
        link
        fedilink
        arrow-up
        5
        ·
        edit-2
        2 days ago

        SteamDeck’s isn’t the same at all. It is a fake sleep: “Go to sleep but you can finish downloading whatever you need before” (inside the steam software, outside of it it has no idea).

        On OLED screens you get to have the screen powered off. On LCD we see the screen is still powered. Maybe they just turn the brightness to the minimum and send black color of pixels?

        Anyway, once the download queue finish, the SteamDeck goes to proper hibernation and does only get to wake up when using the power button. Not at any notification or when a background process want it like I see explained on comments in this thread.

        Edit: The SteamDeck version looks a lot more like the “Finish the update and restart/shutdown/hibernate button”

    • priapus@piefed.social
      link
      fedilink
      English
      arrow-up
      31
      arrow-down
      1
      ·
      2 days ago

      Adding this doesnt mean removing sleep. Linux isnt only used for laptops and desktops.