Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > After scheduled task wake-up, computer goes back to sleep too soon

Reply
Thread Tools Display Modes

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

 
 
Oli L
Guest
Posts: n/a

 
      10-28-2007
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.
 
Reply With Quote
 
 
 
 
Alan111S
Guest
Posts: n/a

 
      03-26-2008

Oli L;495820 Wrote:
> 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'
(http://tinyurl.com/28ffz5)

'Vista Sleep Mode and Task Scheduler' (http://tinyurl.com/2fhtjd)

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


--
Alan111S
Posted via http://www.vistaheads.com

 
Reply With Quote
 
golightlygl
Guest
Posts: n/a

 
      03-31-2008

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?


--
golightlygl
Posted via http://www.vistaheads.com

 
Reply With Quote
 
Alan111S
Guest
Posts: n/a

 
      04-01-2008

golightlygl;762706 Wrote:
> 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.


--
Alan111S
Posted via http://www.vistaheads.com

 
Reply With Quote
 
golightlygl
Guest
Posts: n/a

 
      04-01-2008

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.


--
golightlygl
Posted via http://www.vistaheads.com

 
Reply With Quote
 
matt mentor
Guest
Posts: n/a

 
      10-06-2009
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
 
Reply With Quote
 
matt mentor
Guest
Posts: n/a

 
      10-06-2009

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
 
Reply With Quote
 
matt mentor
Guest
Posts: n/a

 
      10-06-2009

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

BB 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
Cant wake up after put computer into sleep ~ChineseBoy~ Windows Vista General Discussion 3 06-02-2009 06:07 PM
Vista wakes up to run scheduled task but goes to sleep again 2 minslater j.scott.leckie@googlemail.com Windows Vista General Discussion 0 02-06-2008 07:24 PM
computer goes to sleep mode and will not wake up leimer Windows Vista Performance 1 10-24-2007 09:45 PM
Network connection for a scheduled task from sleep Windy George Windows Vista Networking 2 04-08-2007 01:16 PM
Defragment as task, wake computer from sleep. Timdog Windows Vista Performance 7 03-26-2007 12:57 PM



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