Results 1 to 10 of 10

Thread: Registry entry to send PC to sleep

  1. #1
    Registered User
    Join Date
    Feb 2007
    Location
    Surrey
    Posts
    6
    Thanks
    0
    Thanked
    0 times in 0 posts

    Registry entry to send PC to sleep

    I have changed a couple of registry entries to get two of my keyboard hot keys to make my PC Hibernate or Shutdown. What I really, really want is one to make it enter Sleep mode. This mode works fine as the default shut down action from the Start Globe menu.

    I have tried various combinations of switches on Shutdown and played with SuspendState but I cannot find the program and switches to enter as the command for SLEEP.

    Does anybody know the magic combination?

  2. #2
    Get in the van. Fraz's Avatar
    Join Date
    Aug 2007
    Location
    Bristol
    Posts
    2,919
    Thanks
    284
    Thanked
    397 times in 231 posts
    • Fraz's system
      • Motherboard:
      • Gigabyte X58A-UD5
      • CPU:
      • Watercooled i7-980X @ 4.2 GHz
      • Memory:
      • 24GB Crucial DDR3-1333
      • Storage:
      • 240 GB Vertex2E + 2 TB of Disk
      • Graphics card(s):
      • Water-cooled Sapphire 7970 @ 1175/1625
      • PSU:
      • Enermax Modu87+
      • Case:
      • Corsair 700D
      • Operating System:
      • Linux Mint 12 / Windows 7
      • Monitor(s):
      • Dell 30" 3008WFP and two Dell 24" 2412M
      • Internet:
      • Virgin Media 60 Mbps

    Re: Registry entry to send PC to sleep

    rundll32.exe PowrProf.dll, SetSuspendState sleep

    The above works when run as a shortcut. Haven't tried it any other way.

  3. #3
    Registered User
    Join Date
    Feb 2007
    Location
    Surrey
    Posts
    6
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: Registry entry to send PC to sleep

    Thanks for a quick reply. I have tried that and it makes my PC Hibernate, not sleep. The condition I get with Start, right arrow, Enter is Sleep, where the PC light slowly flashes on and off and recovery after pressing the main PC start button takes 7-10 seconds.

    The shortcut line to suggested puts the PC into full Hibernation with no light on the PC and much longer, about 40 seconds, to resume including the boot process.

    Changing the power setting to Allow Hybrid Sleep from On to Off or vice versa makes no differnece.

  4. #4
    Get in the van. Fraz's Avatar
    Join Date
    Aug 2007
    Location
    Bristol
    Posts
    2,919
    Thanks
    284
    Thanked
    397 times in 231 posts
    • Fraz's system
      • Motherboard:
      • Gigabyte X58A-UD5
      • CPU:
      • Watercooled i7-980X @ 4.2 GHz
      • Memory:
      • 24GB Crucial DDR3-1333
      • Storage:
      • 240 GB Vertex2E + 2 TB of Disk
      • Graphics card(s):
      • Water-cooled Sapphire 7970 @ 1175/1625
      • PSU:
      • Enermax Modu87+
      • Case:
      • Corsair 700D
      • Operating System:
      • Linux Mint 12 / Windows 7
      • Monitor(s):
      • Dell 30" 3008WFP and two Dell 24" 2412M
      • Internet:
      • Virgin Media 60 Mbps

    Re: Registry entry to send PC to sleep

    Strange. Definitely puts my PC into standby, not hibernate. However, I'm running XP, and I'm guessing you're running Vista.

  5. #5
    Registered User
    Join Date
    Feb 2007
    Location
    Surrey
    Posts
    6
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: Registry entry to send PC to sleep

    That's right, Vista Home Premium. Between my post and your reply, I tried changing the action that the Power button produces from Shutdown to Sleep, hoping that SuspendState would be affected. No joy, still Hibernate.

    Throughout though, Start, Right arrow, Enter does put my PC to sleep. This is becoming a quest....

  6. #6
    Get in the van. Fraz's Avatar
    Join Date
    Aug 2007
    Location
    Bristol
    Posts
    2,919
    Thanks
    284
    Thanked
    397 times in 231 posts
    • Fraz's system
      • Motherboard:
      • Gigabyte X58A-UD5
      • CPU:
      • Watercooled i7-980X @ 4.2 GHz
      • Memory:
      • 24GB Crucial DDR3-1333
      • Storage:
      • 240 GB Vertex2E + 2 TB of Disk
      • Graphics card(s):
      • Water-cooled Sapphire 7970 @ 1175/1625
      • PSU:
      • Enermax Modu87+
      • Case:
      • Corsair 700D
      • Operating System:
      • Linux Mint 12 / Windows 7
      • Monitor(s):
      • Dell 30" 3008WFP and two Dell 24" 2412M
      • Internet:
      • Virgin Media 60 Mbps

    Re: Registry entry to send PC to sleep

    It really makes me laugh how the command-line shutdown app that comes with Cygwin (to get some POSIX-goodness on your windows machine) is loads better than the Microsoft equivalent...

    Code:
    shutdown -p 0
    works like a treat with that

    Not really much use to you though, I expect...

  7. #7
    Registered User
    Join Date
    Feb 2007
    Location
    Surrey
    Posts
    6
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: Registry entry to send PC to sleep

    Thanks, Fraz. I restart this search every couple of months, hoping that something may have changed on my PC (I do a lot of fiddling) and also because it is so strange that finding out why it damn well won't work is almost as important as getting it to work.

    See you in a couple of months, then.

  8. #8
    Member
    Join Date
    Nov 2003
    Location
    Salisbury
    Posts
    170
    Thanks
    2
    Thanked
    6 times in 6 posts
    • hibby's system
      • Motherboard:
      • Supermicro C7Z87-OCE
      • CPU:
      • Intel Core i7-4770
      • Memory:
      • 2x8GB Corsair DDR3 Vengeance LP 1600MHz (9-9-9-24)
      • Storage:
      • 256GB Samsung 840 Pro; 120GB OCZ Vertex 3; 1TB Samsung SpinPoint F1 HD103UJ; 250GB Seagate 7200.10
      • Graphics card(s):
      • Sapphire HD 7970 Vapor-X GHz
      • PSU:
      • 620W Corsair HX620
      • Case:
      • Antec P182
      • Operating System:
      • Windows 7 Ultimate 64bit
      • Monitor(s):
      • 24" Dell U2413; 24" Dell 2408WFP; 17" Dell 1704FPT
      • Internet:
      • Slow, rural broadband

    Re: Registry entry to send PC to sleep

    Is there a setting in power management for "When I press the sleep button do:"? I've got it on my Win2k machine, and I'm fairly sure I've seen it on my XP machine. That's assuming it's been carried over to Vista of course. Might be one of those things that Microsoft does to make life complicated.

    By the way, the sleep state you described doesn't sound like it's doing much if the light's still on. Is it going to the full S3 state of Suspend-to-RAM, or just S1 where it leaves fans, etc running? You might want to make a quick trip into the BIOS if you're not sure.
    If you can't keep up, stick with reality...

  9. #9
    cat /dev/null streetster's Avatar
    Join Date
    Jul 2003
    Location
    London
    Posts
    4,138
    Thanks
    119
    Thanked
    100 times in 82 posts
    • streetster's system
      • Motherboard:
      • Asus P7P55D-E
      • CPU:
      • Intel i5 750 2.67 @ 4.0Ghz
      • Memory:
      • 4GB Corsair XMS DDR3
      • Storage:
      • 2x1TB Drives [RAID0]
      • Graphics card(s):
      • 2xSapphire HD 4870 512MB CrossFireX
      • PSU:
      • Corsair HX520W
      • Case:
      • Coolermaster Black Widow
      • Operating System:
      • Windows 7 x64
      • Monitor(s):
      • DELL U2311
      • Internet:
      • Virgin 50Mb

    Re: Registry entry to send PC to sleep

    isnt it a powersaving option within the bios, ither S3/S5? suspend to ram (ie hibernate) or something...

    maybe have a fiddle, not sure if it'll balls up anything tho

  10. #10
    Lovely chap dangel's Avatar
    Join Date
    Aug 2005
    Location
    Cambridge, UK
    Posts
    8,385
    Thanks
    407
    Thanked
    449 times in 331 posts
    • dangel's system
      • Motherboard:
      • See My Sig
      • CPU:
      • See My Sig
      • Memory:
      • See My Sig
      • Storage:
      • See My Sig
      • Graphics card(s):
      • See My Sig
      • PSU:
      • See My Sig
      • Case:
      • See My Sig
      • Operating System:
      • Windows 10
      • Monitor(s):
      • See My Sig
      • Internet:
      • 60mbit Sky LLU

    Re: Registry entry to send PC to sleep

    open a command prompt and enter:

    powercfg -a

    It will tell you which sleep states are available.
    System 001: Maximus VII Formula, 4790k i7, RTX 2080ti FE (incoming), 16GIG Corsair Vengence DDR3 RAM CL9, Corsair HX1000, ROG SWIFT PG278Q , SSDs, Antec 1200 case, All watercooled. [main]
    System 002: A8 3850 APU, ASUS uATX FM1A75 MB, 4GB Corsair Vengeance DDR3, Corsair psu, OCZ Agility 3, 1TB F3, Dell 2001FP 20" LCD, £7's worth of 5.1 speakers (they rock) Windows 7 x64[wife/server]
    System 003: AsRock MB, APU, 8 GIG Corsair, Silverstone HTPC case, stock cooler, GT220 1gbDDR3, WD Green 3TB, Kingston 40gb SSD, MCE Remote, Panasonic 50" LCD (87BDX) via HDMI Windows 8.1.1 (32) [media centre]
    System 004: Asus UL50AT Intel Core 2 Duo,4GB, Intel Gen 2 80GB SSD, Win 8.1.1 x64 [no justification]
    System 005: HP Proliant N40L Microserver, 4x2TB drives, fan mod, Pico PSU mod, Win7 x86 [file server]
    System 006: Dell Optiplex 9010, i7, 8gb, 128gb Samsung 830 x 2 (boot and VM drive), 1TB WD HDD, ATI something, Windows 8.1.1 x64 RTM [work]


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Caller ID on your PC
    By mattc in forum Help! Quick Relief From Tech Headaches
    Replies: 29
    Last Post: 22-09-2010, 11:52 AM
  2. Callout and Sleep!
    By jamin in forum General Discussion
    Replies: 6
    Last Post: 20-04-2007, 02:35 PM
  3. Multiple problems - help!
    By Ruggerbugger in forum Help! Quick Relief From Tech Headaches
    Replies: 7
    Last Post: 18-08-2006, 11:41 PM
  4. Wake on LAN & WinXP sleep state..
    By BlueMagician in forum Networking and Broadband
    Replies: 10
    Last Post: 13-04-2006, 03:09 PM
  5. River IQ Game
    By mart_haj86 in forum General Discussion
    Replies: 13
    Last Post: 03-03-2006, 04:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •