Microsoft Windows Vista Community Forums - Vistaheads
Recommended Download



Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.

Driver Scanner 2009 - Free Scan Now

After scheduled task wake-up, computer goes back to sleep too soon

microsoft.public.windows.vista.general




Recommended Fix - Fix Vista Errors and Optimize Performance

Click On Your Flag for Translation
Simplified Chinese French Spanish Italian Portugeuse Japanese German Dutch
Driver Scanner 2009 - Free Scan Now
Reply
  #1 (permalink)  
Old 10-28-2007
Oli L
 

Posts: n/a
After scheduled task wake-up, computer goes back to sleep too soon
Hi all.

I'm having a problem with Scheduled Tasks and the sleep function. I've
created tasks with "Wake the computer to run this task" set, and the computer
does indeed wake up at the specified time to run the task, but it then goes
back to sleep two minutes later, before the task has had time to finish.
When I wake the computer myself later, the task carries on.

I've tried this with a task that runs a windows app, one that runs a command
line app, and one that runs defrag, and it's always the same - it suspends
again after 2 minutes.

Has anyone else had a problem with their computer resuspending / going back
to sleep prematurely? Does anyone have any ideas for how to stop it doing
this?

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-26-2008
 

Join Date: Mar 2008
Posts: 3
Alan111S is on a distinguished road
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Oli L View Post
Hi all.

I'm having a problem with Scheduled Tasks and the sleep function. I've
created tasks with "Wake the computer to run this task" set, and the computer
does indeed wake up at the specified time to run the task, but it then goes
back to sleep two minutes later, before the task has had time to finish.
When I wake the computer myself later, the task carries on.

I've tried this with a task that runs a windows app, one that runs a command
line app, and one that runs defrag, and it's always the same - it suspends
again after 2 minutes.

Has anyone else had a problem with their computer resuspending / going back
to sleep prematurely? Does anyone have any ideas for how to stop it doing
this?

Thanks.
Solution to Vista Task Scheduler Wake Up then Sleep after 2 minutes
I joined specifically to share a solution to a tricky Vista problem. When you wake a Vista PC through Task Scheduler or some other automated Wake Up program, Vista goes back to sleep after 2 minutes. See these threads for examples of this issue.

After scheduled task wake-up, computer goes back to sleep too soon

Vista Sleep Mode and Task Scheduler

The solution/workaround is:-

1) Switch on 'Media Sharing' in Network and Sharing Center
2) In Power Options, Advanced, Multimedia Settings, When Sharing Media, enable the setting 'Prevent idling to sleep'.
3) The above will fix the sleep after 2 minutes issue. Obviously, you need to set timeouts for sleep/hibernate as well to ensure your task has time to complete.

This has worked for me for a couple of months now. I have a PC which I log into remotely with LogMein, so it needs to be on all the time. I wake it up and run a backup at 6am. Since this fix it has always been available for login!

Enjoy

Alan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-01-2008
 

Join Date: Apr 2008
Posts: 2
golightlygl is on a distinguished road
Thanks: 0
Thanked 0 Times in 0 Posts
Alan, surely this just prevents the machine going to sleep in the first place? There are several ways to accomplish this. What we want to do is to have the machine go to sleep then wake up to perform a task according to the task scheduler.

If I have misunderstood then please confirm if your machine can go into full deep sleep, wake up to perform a task and then go back to sleep again only when that task is completed?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-01-2008
 

Join Date: Mar 2008
Posts: 3
Alan111S is on a distinguished road
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by golightlygl View Post
Alan, surely this just prevents the machine going to sleep in the first place? There are several ways to accomplish this. What we want to do is to have the machine go to sleep then wake up to perform a task according to the task scheduler.

If I have misunderstood then please confirm if your machine can go into full deep sleep, wake up to perform a task and then go back to sleep again only when that task is completed?
Yes I agree. That is how it should work. For me personally, I don't want my machine to idle to sleep. I didn't mean to mislead anybody.

For that solution, I think Microsoft have to fix the '2 minutes' problem properly.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-01-2008
 

Join Date: Apr 2008
Posts: 2
golightlygl is on a distinguished road
Thanks: 0
Thanked 0 Times in 0 Posts
In that case you could simply remove the Sleep After... settings in the Sleep section of Advanced Settings of the Power options and don't have to mss around with Multimedia settings.

But we're going off-topic. Personally, I expected this isue to ahve been solved in SP1 but no luck. I'm not sure why it hasn't received more attention as it is such a fundamental flaw in the power savings aspect of Vista.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 10-06-2009
matt mentor
 

Posts: n/a
Similar problem, found solution.
What you need to do is go into registry and set the timer for going back to sleep or hibernate for longer than 120 seconds. Here's how:

http://annoyances-resolved.blogspot....fter-wake.html



Oli wrote:

After scheduled task wake-up, computer goes back to sleep too soon
28-Oct-07

Hi all.

I'm having a problem with Scheduled Tasks and the sleep function. I've
created tasks with "Wake the computer to run this task" set, and the computer
does indeed wake up at the specified time to run the task, but it then goes
back to sleep two minutes later, before the task has had time to finish.
When I wake the computer myself later, the task carries on.

I've tried this with a task that runs a windows app, one that runs a command
line app, and one that runs defrag, and it's always the same - it suspends
again after 2 minutes.

Has anyone else had a problem with their computer resuspending / going back
to sleep prematurely? Does anyone have any ideas for how to stop it doing
this?

Thanks.

EggHeadCafe - Software Developer Portal of Choice
Visual Studio .NET 2005 - Unit Tests
http://www.eggheadcafe.com/tutorials...net-2005-.aspx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 10-06-2009
matt mentor
 

Posts: n/a
Solution
You will have to change the value from 120 seconds to however long you need the system to be awake. Just change the registry: http://annoyances-resolved.blogspot....fter-wake.html



Oli wrote:

After scheduled task wake-up, computer goes back to sleep too soon
28-Oct-07

Hi all.

I'm having a problem with Scheduled Tasks and the sleep function. I've
created tasks with "Wake the computer to run this task" set, and the computer
does indeed wake up at the specified time to run the task, but it then goes
back to sleep two minutes later, before the task has had time to finish.
When I wake the computer myself later, the task carries on.

I've tried this with a task that runs a windows app, one that runs a command
line app, and one that runs defrag, and it's always the same - it suspends
again after 2 minutes.

Has anyone else had a problem with their computer resuspending / going back
to sleep prematurely? Does anyone have any ideas for how to stop it doing
this?

Thanks.

EggHeadCafe - Software Developer Portal of Choice
C# and the .NET Platform
http://www.eggheadcafe.com/tutorials...-platform.aspx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 10-06-2009
matt mentor
 

Posts: n/a
Sorry, the link didn't work
<a href="http://annoyances-resolved.blogspot.com/2009/10/computer-goes-back-to-sleep-after-wake.html">http://annoyances-resolved.blogspot.com/2009/10/computer-goes-back-to-sleep-after-wake.html</a>



matt mentor wrote:

Solution
06-Oct-09

You will have to change the value from 120 seconds to however long you need the system to be awake. Just change the registry: http://annoyances-resolved.blogspot....fter-wake.html

EggHeadCafe - Software Developer Portal of Choice
WS-Security, SAML, Standards: Future of Webservice
http://www.eggheadcafe.com/tutorials...ml-standa.aspx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Article ID: 929463 The Task Scheduler does not wake the computer to run a scheduled task in Windows Vista KBArticles English 0 10-22-2007 20:00
Article ID: 937500 A Windows Vista-based computer that uses a PCI-E graphics device may stop responding when you wake the computer from sleep KBArticles English 0 10-22-2007 20:00
Article ID: 941996 A USB device may not work when you start a Windows Vista-based computer or when you wake the computer from sleep KBArticles English 0 10-22-2007 20:00
Network connection for a scheduled task from sleep =?Utf-8?B?V2luZHkgR2Vvcmdl?= microsoft.public.windows.vista.networking sharing 2 04-08-2007 14:16
Defragment as task, wake computer from sleep. Timdog microsoft.public.windows.vista.performance maintenance 7 03-26-2007 13:57




All times are GMT +1. The time now is 20:34.




Driver Scanner - Free Scan Now

Vistaheads.com is part of the Heads Network. See also XPHeads.com and Win7Heads.com.


Funny Commercials to make you laugh :-)

Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120