![]() ![]() Standby (S3) is not I'm not sure if you tested your script on a Windows machine with the "S0 Modern Standby" feature, but try running the powercfg /a command to see if your laptop has it. This standby state is disabled when S0 low power idle is supported. The system firmware does not support this standby state. The following sleep states are not available on this system: Standby (S0 Low Power Idle) Network Connected The following sleep states are available on this system: In addition, someone posted a working script here, but it requires additional beeps:Ĭode: Select all C:\windows\system32>powercfg /a Specs of the HP laptop I am testing the script on:Įdit: Based on some research, it seems that "SetSuspendState" may not work in general for putting modern laptops into sleep mode. Can someone point me in the right direction for how to adjust the above sleep script to put my new laptop into sleep mode and not hibernate? I am not versed enough with AutoHotkey or the Windows API to know what's the right dllcall/argument to send to put Windows into "modern standby" sleep. You can verify what sleep mode your laptop supports by running powercfg /a in a cmd window. You can read about the difference between these 2 sleep modes in this recent Microsoft article from 03/2021. My old laptop has "S3 sleep" which is how the old Windows sleep used to work (which I assume is why the script works with my older laptop). Important note: "S0 Modern standby" is a new type of sleep that Windows has installed into recent laptops to make them wake faster from sleep mode (in a manner similar to smartphones). If you want me to pull logs from Event Viewer, etc. I am able to tell the difference because of the significantly longer boot-up time and the power button not flashing on/off as it does when the computer is in sleep mode. I have tested the above script with 2 laptops, a 2020 MSI Prestige laptop running Windows 10, and a 2020 HP laptop running Windows 11, and it has the same issue with both - it puts the laptop into hibernate, not sleep. If you have a recent Windows laptop (eg a laptop released in last 2-3 years, or an "Intel Evo" laptop, etc.), then you should be able to replicate the problem with the above script. However, on my new 2020 laptop with Windows "S0 modern standby", the script puts the computer into hibernate mode instead of sleep. I should note that on my old laptop from 2016, this script works fine and puts the laptop into sleep mode. Code: Select all #s::DllCall("PowrProf\SetSuspendState", "Int", 0, "Int", 0, "Int", 0) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |