Discussion:
Windows Taskplaner requirements for wakeup
(too old to reply)
Wendelin Uez
2024-10-29 07:21:15 UTC
Permalink
I want to execute a taskplaner action even if the machine is sleeping.

Windows taskplaner tasks can have an attribute set to wake up the machine if
sleeping at executoin time. Although I set this option my laptop does not
wake up.

In the energy saving plan there is an option like "allow timer for
activation". I think this setting should allow to run a timer even if
sleeping to wakeup at proper time. But I cannot find any change if this
option is set or not.

I've read that there are several levels of sleeping status, but it doesn't
make a difference if sleeping is invoked via energy saving plan or by using
powrprof.dll:
"%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState"
Paul
2024-10-29 11:45:12 UTC
Permalink
Post by Wendelin Uez
I want to execute a taskplaner action even if the machine is sleeping.
Windows taskplaner tasks can have an attribute set to wake up the machine if sleeping at executoin time. Although I set this option my laptop does not wake up.
In the energy saving plan there is an option like "allow timer for activation". I think this setting should allow to run a timer even if sleeping to wakeup at proper time. But I cannot find any change if this option is set or not.
"%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState"
The breadcrumb for this is "Wake Timer" or "WakeTimer".
WakeTimer must be enabled, before your scheduled task can execute from a non-running state.

https://answers.microsoft.com/en-us/windows/forum/all/how-do-i-set-up-wake-timers/a169813b-9440-4ebf-a110-1b7a20b605b4

WakeTimers are multiplexed through the RTC alarm clock register. The
next sequential task, its wake time is put in the RTC register, as the
time for the machine to come out of its non-running state.

For some things on the computer, Soft Off S5 may behave differently than S3 (Sleep) or S4 (Hibernate).

Paul
Wendelin Uez
2024-10-30 09:00:25 UTC
Permalink
Thank you for the link.

Using it I found additional detailed info in
https://www.anoopcnair.com/turn-on-or-off-allow-wake-timers-in-windows-11/
what works well already in WIN 8.1

Frank Slootweg
2024-10-29 13:11:09 UTC
Permalink
Post by Wendelin Uez
I want to execute a taskplaner action even if the machine is sleeping.
Windows taskplaner tasks can have an attribute set to wake up the machine if
sleeping at executoin time. Although I set this option my laptop does not
wake up.
If the laptop is on battery, did you untick the 'Start the task only
if the computer is on AC power' on the 'Conditions' tab of the Task
Scheduler task?

I.e. you have to

- tick the 'Wake the computer to run this task'

AND

- untick 'Start the task only if the computer is on AC power'

on the 'Conditions' tab, if you want to run the task while the computer
is sleeping AND on battery.

And - depending on the sort of task - perhaps you also need to tick
(and set?) the 'Network' setting on the 'Conditions' tab.
Post by Wendelin Uez
In the energy saving plan there is an option like "allow timer for
activation". I think this setting should allow to run a timer even if
sleeping to wakeup at proper time. But I cannot find any change if this
option is set or not.
I've read that there are several levels of sleeping status, but it doesn't
make a difference if sleeping is invoked via energy saving plan or by using
"%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState"
Loading...