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

G

Guest

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.
 
M

matt mentor

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.com/2009/10/computer-goes-back-to-sleep-after-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/tutorial...333-d9cb7032fc99/visual-studio-net-2005-.aspx
 
M

matt mentor

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.com/2009/10/computer-goes-back-to-sleep-after-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/tutorial...bc1f-d734a5292e2d/c-and-the-net-platform.aspx
 
M

matt mentor

<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.com/2009/10/computer-goes-back-to-sleep-after-wake.html

EggHeadCafe - Software Developer Portal of Choice
WS-Security, SAML, Standards: Future of Webservice
http://www.eggheadcafe.com/tutorial...aa3a-9f029c723c58/wssecurity-saml-standa.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top