Sleep Return Timeout for Unattended Wake Up

ByLine
How to Change the Return to Sleep Timeout for a Unattended Wake Up in Vista
Synopsis
This will show you how to change how long Vista will wait to go back to sleep mode automatically after waking up unattended and idle.
How to Change the Return to Sleep Timeout for a Unattended Wake Up in Vista

information   Information
This will show you how to change how long Vista will wait to go back to sleep mode automatically after waking up unattended and idle. The default time is 120 seconds (2 minutes).
Note   Note




Here's How:
1. Open the Start Menu.​
2. In the white line (Start Search) area, type regedit and press Enter.​
3. If prompted, click on Continue in the UAC prompt.​
4. In regedit, go to: (See screenshot below)​
Code:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0\DefaultPowerSchemeValues
Reg1.jpg
5. In the left pane, click on the triangle to expand DefaultPowerSchemeValues. (See screenshot above)​
6. Click on the key (see table tip below) that is for the Power Plan that you want to change the wait time for. (See screenshot above)​
NOTE: Normally, you would just do this for the Power Plan that you have selected (see tip below). If you have more than one user, then you may also want to include their Power Plan, or all of them.​
Tip   Tip


Registry Key

Power Plan

381b4222-f694-41f0-9685-ff5bb260df2e

Balanced

8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c

High performance

a1841308-3541-4fab-bc81-f71556f20b4a

Power saver

Not available

Created Custom Power Plan

NOTE: For more about how to see and change a Power Plan, see STEP TWO here: How to Troubleshoot a Vista Sleep Mode Problem and Find a Solution
Power_Plans.jpg
7. In the right pane, right click on ACSettingIndex (while on AC power) or DCSettingIndex (while on battery power) and click on Modify. (See screenshot below)​
NOTE: You can choose to do this with one or both of these for what you want the timeout period to be for them.​
Reg2.jpg
8. Dot Decimal, and type in how many seconds you want Vista to wait to go back to sleep automatically after an unattended wakeup. (See screenshot below step 9)​
NOTE: The default time is 120 seconds.​
9. Click OK or press Enter.​
Modify.jpg
10. Close regedit.​
11. Log off and log on, or restart the computer to apply.​


That's it,
Shawn




 
Last edited by a moderator:
Shawn Brink

Comments

Nice to see such a time switch exists. I shut the lid on my laptop, it wakes up and new shuts down again. Or is this when you have set it to sleep after a certain idle time and that sleep is different. I have done all suggested in your excellent tutorials and still it wakes up. Microsoft help said he couldn't help me any more, except to refer me higher which would cost me money. http://www.vistax64.com/vista-performance-maintenance/185853-network-adapter-waking-laptop-sleep.html#post856350

The Optomize__Power document from Microsoft I found, he said only referred to sleep after idle, not when I shut the lid, which sounds silly to me. It says,

Wake on Timer

Windows Vista systems are capable of waking from Sleep due to a timer event, such as a scheduled task or Windows Media Center television recording. The wake on timer feature enables the power manager to program the platform timer alarm to wake the system at a predetermined future time, based on requests from applications and services.
The global ability for the system to wake from timer is controlled in Windows Vista power policy. By default, the ability to wake from Sleep on timer is enabled for all power plans and both AC and DC power states.
Friendly name
Allow wake on timer
Description
Allow Windows to automatically wake your computer from sleep on a timer for scheduled tasks and other programs.
GUID
bd3b718a-0680-4d9d-8ab2-e1d2b4ac806d
Symbol
GUID_WAKE_ON_TIMER
Defined in
Ntpoapi.h
Balanced defaults
Enabled (AC)
Enabled (DC)

The Windows power manager programs the platform timer alarm when the system enters the Sleep state. Disabling wake on timer for DC power prevents the power manager from programming the platform timer alarm if the system is on DC power when the computer enters Sleep. Similarly, disabling wake on timer for AC power prevents the power manager from programming the platform timer alarm when the system is on AC power and enters a Sleep state.
Disabling wake on timer can help extend usable mobile PC battery life by preventing the system from automatically waking from Sleep and allowing the system to wake from Sleep only when the user is ready to interact with the system again. System manufacturers designing ultraportable laptops for business and productivity use may want to disable the wake on timer policy.
However, it is important to note that if wake on timer is disabled, the following Windows functionality are not available on the system:
·Hibernate idle time-out.
·Windows Media Center television recording.
·Scheduled tasks that are programmed to wake the computer from the Sleep state.
·Automatic checks for new Windows Update if the preconfigured time occurs when the system is in the Sleep state.
·Any other program or service that attempts to schedule a wakeable timer via the SetWaitableTimer API.
How do you disable this sucker, if it does apply to the sleep when you shut the lid?
 
Hello Oldroser,

From this and your other post, you might check your BIOS power management settings to see if it may also contain a "Wake on LAN" type option that needs to be disabled.

Hope this helps,
Shawn
 
Well, after I re-enabled the "allow the computer to put this device to sleep to save power" on the USB hubs, which a Microsoft specialist working on this problem had disabled, it slept until I woke it up twice. Unfortunately, the third time it went to sleep but couldn't be awakened. Had to hit the power button to turn it off. Curse it!
 
Hey, can this be posted in Seven forums too? I just did it for Windows 7, and did it because I used this same tutorial last year for Vista to allow a program to start via scheduler from sleep mode, and stay running long enough to complete it's task - two minutes isn't long enough for iTunes to start and download podcasts. :)

Thanks for the great site(s) and great help!
 
Hello WildHare, and welcome to Vista Forums.

Sure thing. I'll get it added tonight sometime. :)
 
This unattended wake sleep timeout is part of windows 7 also unfortunately. If I turn my computer on from sleep and walk away without moving the mouse my computer should not go to sleep after 2 minutes.

I delete this regedit key and now my computer doesnt auto sleep :)

Code:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0\DefaultPowerSchemeValues
 
This unattended wake sleep timeout is part of windows 7 also unfortunately. If I turn my computer on from sleep and walk away without moving the mouse my computer should not go to sleep after 2 minutes.

I delete this regedit key and now my computer doesnt auto sleep :)

Code:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0\DefaultPowerSchemeValues
Hello Darth, and welcome to Vista Forums.

That's a bit drastic to delete your power plans, when you probably could have changed the power plan settings to never Sleep instead. However, as long as it works and your happy with it though. :)
 
I deleted the setting not the profile. Ive looked for another way to eliminate auto sleep after unattended wake but I haven't found one.
 
Other than what you did, the usual way was to set a high enough wait time that you would be active on the computer before it reaches thatm to effectively be the same as disabling it.

Thank you for sharing it. :)
 
Top