Sleep mode command line doesn't work with Windows 10 anymore ?

Page 1 of 2 12 LastLast

  1. Posts : 41
    Windows10
       #1

    Sleep mode command line doesn't work with Windows 10 anymore ?


    rundll32.exe powrprof.dll,SetSuspendState 0,1,0
    OR
    %SystemRoot%\System32\rundll32.exe PowrProf.dll, SetSuspendState Sleep


    It will put computer to sleep but after wakeup it show BIOS screen(5 second) -> Windows welcome screen(2second) -> Desktop

    But if I sleep from the Windows button it will wakeup normally to the Desktop straight away


    Question is what is the proper command line to sleep for Windows 10 ?

    Thanks in advance


    --------------------------
    My specs: Core i7-6700 | Gigabyte H170-D3HP (BIOS F20g) | Kingston Hyper-X 2133 (4GBX2) | SAMSUNG 850 EVO 250GB | Windows10 Pro (1803)
      My Computer


  2. Posts : 30,173
    Windows 11 Pro x64 Version 23H2
       #2

    I'm not sure of command but have you consider setting your power button to "Sleep".

    Then a gentle click and it should go to sleep.
      My Computer


  3. Posts : 68,862
    64-bit Windows 11 Pro for Workstations
       #3

    Hello akkha, :)

    If you have hibernate enabled, then that command will hibernate the computer instead of sleep.

    Enable or Disable Hibernate in Windows 10 | Windows 10 Tutorials
      My Computers


  4. Posts : 41
    Windows10
    Thread Starter
       #4

    Brink said:
    Hello akkha, :)

    If you have hibernate enabled, then that command will hibernate the computer instead of sleep.

    Enable or Disable Hibernate in Windows 10 | Windows 10 Tutorials
    My computer is already Disable Hibernate (I knew it. I have never enable Hibernate) thanks.
      My Computer


  5. Posts : 41
    Windows10
    Thread Starter
       #5

    Caledon Ken said:
    I'm not sure of command but have you consider setting your power button to "Sleep".

    Then a gentle click and it should go to sleep.
    Yes I used those command line to create a Sleep shortcut. But the wakeup result is weird like I explained above. Thanks
      My Computer


  6. Posts : 16,926
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #6

    akkha,

    Your description sounds like resuming from hibernate.

    Do you have a sleep state available on your computer? Right-click on the Start button & open PowerShell [Admin] / Command prompt [Admin] then enter this command
    powercfg -a

    Does the response include this as an available sleep state
    Standby (S3)
    or not?

    If not, does it include
    Standby (S0 Low Power Idle)
    instead?

    Denis
      My Computer


  7. Posts : 41
    Windows10
    Thread Starter
       #7

    Try3 said:
    akkha,

    Your description sounds like resuming from hibernate.

    Do you have a sleep state available on your computer? Right-click on the Start button & open PowerShell [Admin] / Command prompt [Admin] then enter this command
    powercfg -a

    Does the response include this as an available sleep state
    Standby (S3)
    or not?

    If not, does it include
    Standby (S0 Low Power Idle)
    instead?

    Denis
    I only have 3 options in Start button -> Power -> Sleep / Shut down / Restart

    Sleep mode command line doesn't work with Windows 10 anymore ?-2018-05-17_23-30-08.jpg
    Thanks
      My Computer


  8. Posts : 16,926
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #8

    akkha,

    In that case I have no useful advice.

    Sorry I could not help,
    Denis
      My Computer


  9. Posts : 30,173
    Windows 11 Pro x64 Version 23H2
       #9

    If your power button supports sleep, which I think you posted above, have you tried that?

    When you disabled hibernation did you issue powercfg command

    powercfg -h off
      My Computer


  10. Posts : 41
    Windows10
    Thread Starter
       #10

    Caledon Ken said:
    If your power button supports sleep, which I think you posted above, have you tried that?

    When you disabled hibernation did you issue powercfg command

    powercfg -h off
    My problem is solved after I issue powercfg -h off. Thank you very much Caledon Ken and everyone for helping me.

    Sleep mode command line doesn't work with Windows 10 anymore ?-2018-05-18_10-23-34.jpg
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 22:52.
Find Us




Windows 10 Forums