Windows 7 Sleep Command

Discussion in 'Windows 7 Help and Support' started by Kones, Mar 4, 2010.

  1. Kones

    Kones New Member

    Joined:
    Mar 4, 2010
    Messages:
    4
    Likes Received:
    0
    Hi, I'm new of here.

    Could anyone tell me the sleep command of Windows 7?

    I have try that:
    Rundll32.exe Powrprof.dll,SetSuspendState Sleep

    but it doesn't work, it will become hibenate.


    My powercfg

    C:\>powercfg -a
    此系統有以下幾種睡眠狀態: 待命 ( S1 S3 ) 休眠 混合式睡眠
    此系統缺乏以下幾種睡眠狀態:
    待命 (S2)
    系統韌體不支援此待命狀態。

    It seems my computer doesn't support the Sleep mode, but I can click the "sleep" option in Start menu and it run perfectly.

    Anyone can help? Thanks.

    Sorry for the Chinese
    character, I cann't find a way to modify Windows response in English.
     
  2. Mitchell_A

    Mitchell_A Excellent Member

    Joined:
    Feb 7, 2009
    Messages:
    5,068
    Likes Received:
    240
    Hello, and welcome to the forums :)
    You're trying to use Command Prompt to put your computer into sleep mode, correct?
     
  3. Captain Jack

    Captain Jack Extraordinary Member

    Joined:
    Mar 6, 2010
    Messages:
    1,952
    Likes Received:
    139
    Hello,

    In Windows 7 you have to disable the Hibernation in order for Sleep command to work through Command Prompt or Batch file. You can check this Tutorial as well Sleep Shortcut - Vista Forums its for Vista it should work for Windows 7. Just make sure you disable Hibernation follow this link to disable it Hibernate - Enable or Disable - Windows 7 Forums

    Hope this helps,
    Captain
     
  4. Kones

    Kones New Member

    Joined:
    Mar 4, 2010
    Messages:
    4
    Likes Received:
    0
    Thanks , Captain Jack and Mitchell_A.
     
  5. Captain Jack

    Captain Jack Extraordinary Member

    Joined:
    Mar 6, 2010
    Messages:
    1,952
    Likes Received:
    139
    Your Welcome Mate !!

    - Captain
     
  6. Mitchell_A

    Mitchell_A Excellent Member

    Joined:
    Feb 7, 2009
    Messages:
    5,068
    Likes Received:
    240
    Cheers! Thanks for using the forums, see you around :)
     
  7. user2390

    user2390 New Member

    Joined:
    Jul 22, 2012
    Messages:
    2
    Likes Received:
    0
    You must first disable Hibernate in windows and then put the computer in Sleep state. Use following two commands:
    powercfg -hibernate off
    rundll32.exe powrprof.dll,SetSuspendState 0,1,0

    and for doing reverse action, Hibernating the computer, use commands below:
    powercfg -hibernate on
    %windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Hibernate
     

Share This Page

Loading...