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

Page 1 of 2 12 LastLast

  1. Posts : 38
    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. Caledon Ken's Avatar
    Posts : 24,483
    Windows 10 Pro x64 Version 2004
       #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. Brink's Avatar
    Posts : 57,067
    64-bit Windows 10 Pro for Workstations build 21382
       #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 : 38
    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 : 38
    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. Try3's Avatar
    Posts : 7,762
    Windows 10 Home x64 Version 20H2 Build 19042.928
       #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 : 38
    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. Try3's Avatar
    Posts : 7,762
    Windows 10 Home x64 Version 20H2 Build 19042.928
       #8

    akkha,

    In that case I have no useful advice.

    Sorry I could not help,
    Denis
      My Computer

  9. Caledon Ken's Avatar
    Posts : 24,483
    Windows 10 Pro x64 Version 2004
       #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 : 38
    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


 
Page 1 of 2 12 LastLast

  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 19:08.
Find Us




Windows 10 Forums