• “Modern” standby in newer PCs

    Home » Forums » AskWoody support » PC hardware » PC hardware-General Questions » “Modern” standby in newer PCs

    Author
    Topic
    #2444054

    You may have noticed that the sleep mode your PC has is different from that of your smartphone.

    When a PC “sleeps,” that term has typically meant to go to “suspend-to-RAM” mode, also known as S3 or standby (now renamed “legacy standby.”) When it is in this mode, it’s oblivious to the outside world until a hardware event brings it out of S3. It could be a press of a key on a keyboard, a packet being sent to its IP on the LAN, or an internal wake timer, but it’s always some outside thing that wakes it. It isn’t capable of waking itself programmatically, as there are no programs running. They’re completely halted.

    Phones, of course, are not like that. When you press the little button that turns off the display, it’s not sleeping in the S3 sense. If it was, it would not be able to alert you when one of your posts on Facebook got a “like” or if a Snapchat came in (not to mention “old-fashioned” means of communication like email). Sometimes this “not really sleeping” bit can even help keep you safe.

    If you have your phone set to alert you when, for example, a tornado warning is declared for your area, the phone can compare the tornado warning area to the preset “home” location or to the current location of the phone, and if there’s a match, it can alert you.

    None of this functionality would be possible if the phone went fully to sleep.

    Microsoft, which in the Nadella era seems to believe that PCs are but large phones, decided that this kind of functionality should exist in PCs as well. Such was born the S2idle specification, currently supported by both Intel and AMD. According to Microsoft, this would allow select system processes (like Windows Update) and Microsoft Store apps (!) to run while the PC is “sleeping.” It allows the PC to remain associated with its wifi access point, but with the wifi adapter in a low-power state that will allow it to instantly send or receive data without having to re-authenticate with the access point. It can even send and receive data while asleep, which is how apps like Snapchat or Facebook are able to send you notifications that something happened while the device is sleeping.

    The downside to this is obvious. A CPU that is completely asleep will use less power than one that’s waking up to process certain system processes and demands of various apps. The more time it spends active, the more power it will use. With S3, you know what processes are active– none of them. But with S2idle, how do you really know, let alone control, what processes are able to become active while the PC is sleeping?

    Many people have complained about phones that seem to drain the battery quickly while “sleeping.” Sometimes this is a function of the battery having aged and lost some of its capacity, but not always. In Android, there’s no clear line between an app that is active (like Firefox is now on my PC, which I am using to enter this post) and one that is inactive. When one leaves one app to use another, the first one remains in the background unless the system needs the RAM, and often apps that you haven’t even run since the last reboot (that you might be led to believe are not active) will send you a notification of some thing or other (often trivial in nature, like a game telling you that your energy has recharged and it’s ready to play).

    That does not seem ideal to me. I’m not a smartphone person… I have one with AOSP (degoogled), but mostly I just carry it around without ever hitting the button on the side to wake it the rest of the way up. When I do, most of the time, it’s to use it as a clock, and the rest of the time it is to turn on the wifi hotspot so I can use my laptop to connect to the internet when I am out and about.

    Compared to my slider phone, the time my smart phone goes between charges is short. Even with a years-old battery, the slider could go the better part of a week, while the smartphone is dead in a few days. I don’t want any of the notifications… I don’t text, I don’t do social media, and I really don’t even use the phone. I wish my phone had S3 that would deterministically put the CPU into sleep mode and keep it there until I tell it to come back to life.

    I am the same with my laptops. When I am at home and the power is connected, I am not really concerned about sleep… I have them set to stay awake when power is connected. On battery, though, closing the lid puts the unit to sleep, and I want it to remain that way until I am ready to use it again, at which time I will raise the lid (the hardware event to wake the unit).

    As I recently discovered, though, my XPS does not have the ability to use S3. I find that shocking! How can the PC not be able to do a true standby mode? That’s been the standard for years and years.

    I don’t mind innovation or trying new features. Why, though, was it necessary for Dell to remove the tried-and-true sleep mode? You can make some new thing the default without removing the old one. A simple setting in the UEFI would solve the problem and have zero impact on the OEM Windows setups that are set to use S2idle.

    Microsoft, being Microsoft, does not allow one to simply switch S2idle to S3 in the UEFI… changing the setting requires reinstallation of Windows (as they do with changing some other settings, like changing the SATA mode from RAID to AHCI). That’s not a reason to remove the option to change the setting, though… the option to switch from RAID to AHCI is still there, even though switching it would supposedly break the preinstalled Windows.

    I don’t really see the use case for a Dell XPS 13 laptop that would make the S2idle mode worthwhile. Does Dell they expect people to leave their smartphones at home and instead carry their XPS laptops (which do not come from the factory with a cellular modem, usually) around everywhere they go, waiting for the notification to come in so they know they got a SMS text or Snapchat? That’s how people use phones, not laptops, and I’d wager that any person who wants those alerts all the time is still going to carry a phone, and to use that instead of the laptop for responding to whatever the thing was.

    So what’s the rationale for this in PC-land other than “phones do it like that, and phones are cool, so laptops should too”?

    The claim from MS is that S2idle can deliver all of this added functionality while providing battery life that’s on par with what it would have using S3. I’d love to test that idea, but I can’t.

    There are all kinds of reports across the web of people using S2idle-equipped laptops with Linux and having dismal power consumption in what passes for sleep mode on those units. The claims of power consumption comparable to S3 clearly are not a given. The alleged benefits of S2idle don’t, as far as I know, even exist on Linux, so this is a clear-cut regression in functionality, and it’s one that didn’t have to be. What’s more is that Dell does sell the XPS with Linux preinstalled as an option, so they can’t really hide behind these machines being intended for Windows. All it would take is an option in the UEFI to change “Microsoft modern/connected standby (S2idle)” to “Legacy standby (S3),” with a warning that changing this setting could cause a user to have to reinstall Windows, if that is what they would like.

    Fortunately for me, the performance of S2idle is pretty good with Kubuntu 22.04 (5.15 kernel). I went to bed with the laptop on battery at 97%, slept 8 hours, then woke up and checked again. It had only gone down to 94%, or about 0.4% per hour, which is supposed to be on par with S3. Again, I’d love to be able to check that, if I could. But will it always be? Since S2idle does not deterministically stop all processes from running, I can’t be certain that what worked so far will keep working.

    If I had Windows on this machine, I would not be using any “Microsoft Store apps” anyway, but that still would only offer partial protection from stuff running during sleep. Windows Update will also run during sleep, and if Microsoft decides to install updates at that time, then that will happen too. I don’t want it doing that when I am on AC power, but it’s even worse if it is using my battery capacity to do updates when I want to preserve the battery for, you know, my stuff.

     

     

    Dell XPS 13/9310, i5-1135G7/16GB, KDE Neon 6.2
    XPG Xenia 15, i7-9750H/32GB & GTX1660ti, Kubuntu 24.04
    Acer Swift Go 14, i5-1335U/16GB, Kubuntu 24.04 (and Win 11)

    2 users thanked author for this post.
    Viewing 3 reply threads
    Author
    Replies
    • #2444880

      … As I recently discovered, though, my XPS does not have the ability to use S3. I find that shocking! How can the PC not be able to do a true standby mode? That’s been the standard for years and years….

      Hi Ascaris:

      I don’t know if this would work with your particular model of Dell XPS computer, but see Dell Customer55555’s 24-Oct-2019 post in Inspiron 5585 Won’t Wake From Sleep or Unexpected Shutdown in the Dell forum about how they turned on S3 (Legacy standby) by enabling “Force S3” in their BIOS settings and turning off  Connected Standby (the Win 8.1 name for Modern Standby per the MS Support article <here>) in their Windows registry by using regedit to browse to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power and changing the CSEnabled registry key from 1 to 0 .  According to the NotebookCheck article Useful Life Hack: How to Disable Modern Standby (Connected Standby) if you run the command powercgf /a in a command prompt and it shows that S3 Standby is “disabled when S0 low power idle is supported” (i.e., as opposed to S3 being unavailable) then this registry hack to set the DWORD for CSEnabled to 0 should work.

      I purchased a Dell Inspiron 5584 in Aug 2019 and the powercgf /a command shows my chipset only supports S3 (Legacy standby) as shown in the image below, but I’ve had ongoing issues with Sleep mode where my computer will either spontaneously wake from sleep with an ACPI wake alarm when it tries to hibernate or will not wake from Sleep mode and is completely unresponsive to all input devices (including the Alt+Ctrl+Del key combination), forcing me to perform a hard shutdown by holding down the power button for ~ 15 sec. See my 09-Jun-2020 post in GumboDude’s Can’t Come Out of Sleep Mode Issue – Inspiron 7586 in the Dell forum for further details. Having S3 enabled on your Dell XPS computer might decrease your battery power consumption during Sleep mode but it could also create new issues you weren’t expecting.

      Win-10-v21H2-Dell-Inspiron-5584-powercfg_a-Command-07-May-2022

      I followed all the steps in the Dell support article Steps for Fixing Windows Computers that Do Not Wake Up or Resume from Suspend or Hibernate Mode but Will Power On (including a reset to factory condition) and worked with Dell tech support for an entire year before my service warrant expired but I continue to have problems with S3 (Legacy standby) and Sleep mode. At this point I suspect my problem has more to do with a mismatch in hardware components because Dell installed an outdated motherboard in my laptop and then added newer hardware with modern power saving features like my Toshiba KBG40ZNS256G NVMe SSD that aren’t compatible with the PCI Express bus on my motherboard. The results of my powercfg /energy diagnostic report shown in my thread Do Inspiron 5584 Laptops Support Modern Standby (S0 Low Power Idle)? states that “PCI Express Active-State Power Management (ASPM) has been disabled due to a know incompatibility with the hardware in this computer“.
      ———–
      64-bit Win 10 Pro v21H2 build 19044.1645 * Firefox v100.0.0 * Microsoft Defender v4.18.2203.5-1.1.19200.5 * Malwarebytes Premium v4.5.9.198-1.0.1676 * Dell Update v4.5.0 (Windows Universal app) * Macrium Reflect Free v8.0.6635 * Inspiron 5583/5584 BOIS v1.18.0
      Dell Inspiron 15 5584, Intel i5-8265U CPU, 8 GB RAM, 256 GB Toshiba KBG40ZNS256G NVMe SSD, Intel UHD Graphics 620

      • #2446143

        Thanks for the reply!

        I looked in the UEFI (BIOS) for a setting like that, and I did find one to block sleep, which it describes as S3 or suspend, and I tried enabling that. When I boot back into my OS (Kubuntu 22.04 currently), I find that the option does… nothing. Sleep still works, and it’s still S2idle.

         

        Dell XPS 13/9310, i5-1135G7/16GB, KDE Neon 6.2
        XPG Xenia 15, i7-9750H/32GB & GTX1660ti, Kubuntu 24.04
        Acer Swift Go 14, i5-1335U/16GB, Kubuntu 24.04 (and Win 11)

        • #2446186

          Hi Ascaris:

          Just note that Dell Customer55555’s thread at Inspiron 5585 Won’t Wake From Sleep or Unexpected Shutdown that I mentioned in my post # 2444880 said they had to enabled “Force S3” in their BIOS and turn on the Connected Standby (CSEnabled) registry key in their Windows registry. Dell Customer55555 has an Inspiron / Win 10 computer so I have no idea if this solution would enable S3 (Legacy standby) on XPS or other non-Inspiron Dell models that use a Windows OS, or if your Kubuntu OS even has a configuration setting that is equivalent to Windows’ Connected Standby registry key.

          While searching for information on this topic I did find an 11-Mar-2020 post at FAQ Modern Standby by Dell employee DELL-Chris M in the XPS board of the Dell forum with several hints on how to reduce excessive battery drainage on XPS / Windows computers that use S0 (Modern Standby), including disabling of Intel TurboBoost in the BIOS settings. I have no idea why that post isn’t pinned at the top of Dell’s XPS board, since many XPS models are prone to this problem.

          All this is a moot point, however, if “s2idle” seems to be working well with your Kubuntu OS. I don’t know anything about Kubuntu but you might find some useful information in the devnull.land 18-Sep-2021 article Changing Laptop Suspend From s2idle to Deep Sleep (yet another Dell XPS owner) about the “s2idle” (Suspend-To-Idle), “shallow” (Power-On Suspend) and “deep” (Suspend-To-RAM) sleep states. The FAQ at https://www.kernel.org/doc/Documentation/power/states.txt also has information on how to examine the /sys/power/state and /sys/power/mem_sleep files to see which sleep states are supported by your Linux platform.
          —————-
          Dell Inspiron 15 5584 * 64-bit Win 10 Pro v21H2 build 19044.1645 * Firefox v100.0.0 * Microsoft Defender v4.18.2203.5-1.1.19200.5 * Malwarebytes Premium v4.5.9.198-1.0.1676

    • #2445269

      Interesting. I own a recently purchased XPS and my problem is the “boil in the bag” effect of the machine not going to sleep properly. I close the lid, unplug the machine, pop it in the case and into my bag then wander off. I get to my destination and open it up to find a boil in the bag laptop. I’ve only owned the machine over the winter, I fear the impact of this happening in the summer so instead have started using hibernate – which takes a while to wake. MS are really shooting themelves in the foot – it’s meant I’ve also bought an iPad Pro and a keyboard case – where in “sleep” I can leave it a week and lose a few % of charge.

      • #2446145

        I have thought about the boil-in-bag thing before, and that sort of thing is one reason I want a deterministic sleep mode. Of course, this sort of thing has been known to happen with traditional S3 sleep too… but the number of hardware events that can wake the PC up are limited, so if you get rid of those, it should (in theory) be able to ensure it remains asleep no matter what.

        When the OS has the ability to wake the PC when it feels like it, and when that OS is Windows 10 or 11, both of which think they are entitled to check for or perform updates any time they feel like it, and where Windows Update is explicitly one of the things that can operate while the PC is “asleep” or to cause the PC to wake, it seems like it would be harder to control. You can’t block Windows Update (by normal means), and even sleep won’t prevent it… and if it finds an update MS thinks is important enough, it will go ahead and install it right then. And if you have your PC set only to sleep when you tell it to (like I have mine), it will remain active once awakened, with all of the battery wasting and heat that can cause.

        I am not sure if other options can prevent that, but if the log confirms it is the update service that wakes the unit, it might be necessary to temporarily disable Windows updates with a utility like WUB (Windows Update Blocker).

        Dell XPS 13/9310, i5-1135G7/16GB, KDE Neon 6.2
        XPG Xenia 15, i7-9750H/32GB & GTX1660ti, Kubuntu 24.04
        Acer Swift Go 14, i5-1335U/16GB, Kubuntu 24.04 (and Win 11)

        1 user thanked author for this post.
    • #2446225

      I built a PC based on 9th gen Intel core on an ASUS Z-390A board a couple years ago.

      It’s running Windows 10 Pro, and the S3 sleep works great. The only thing that seems to wake it up is a scheduled Macrium Reflect image. Then it goes back to sleep.

      Certain applications can prevent sleep if they are left active, for example an audiostream. You can see what may be preventing sleep in Windows by using this in Command Prompt as administrator:

      “POWERCFG /requests”

      Power Requests prevent the computer from automatically powering off the display or entering a low-power sleep mode.

      For commands list run “POWERCFG /?”.

      For detailed command and option information, run “POWERCFG /? <COMMAND>”.

      I also have an older Dell Latitude laptop with a 5th gen Intel Core CPU and Windows 10 Pro, that appears to use S3 sleep without issue.

      Windows 10 Pro 22H2

      • This reply was modified 2 years, 11 months ago by JohnW. Reason: Fixed typo
    • #2446953

      Hi, understanding this statement doesn’t directly answer the issue between the different Sleep versions, my solution for 5+ years is to set closing the laptop or hitting the power button to Hibernate.

      Have never trusted Sleep mode, whether it was HP earlier on in the 5+ years or Dell since, and either from the user not considering what’s happening when they close the laptop or by devices powering back up on their own, was and is a big concern (by the way, like the boil-in-bag descriptive).

      Yes, Hibernate has it’s own issues, though at least I’m pretty sure when a laptop is powered down (especially with the lack of any notification lights, the new Dell Latitude 7420 series in particular) and it’s proven to be a stable approach to managing my organization’s laptops.

      Take care,

      IT Manager Geek

    Viewing 3 reply threads
    Reply To: “Modern” standby in newer PCs

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: