Author Topic: Bug: Shutdown (Hibernate) disables scheduled tasks?  (Read 3033 times)

Offline Hecks

  • Contributor
  • ***
  • Posts: 2011
  • naughty cop
Bug: Shutdown (Hibernate) disables scheduled tasks?
« on: January 24, 2007, 10:20:54 am »
I've noticed that hibernating from altbinz prevents my other scheduled tasks from running until I next reboot.  Has amyone else experienced this?  It could just be a quirk of my machine (XP/MCE 2005).  Other software hibernate options (inc poweroff.exe) work fine, though.

-Hecks

Offline Hecks

  • Contributor
  • ***
  • Posts: 2011
  • naughty cop
Bug: Shutdown (Hibernate) disables scheduled tasks?
« Reply #1 on: March 05, 2007, 01:08:49 am »
I think I've solved this one, with some help from Smudge :).  The powrprof.dll actually has three boolean parameters:

Hibernate, ForceCritical, DisableWakeEvent

It's the last one that's causing my problems.  By default, they're set to 1,1,1, whereas to hibernate without scheduled tasks being disabled you need:

rundll32.exe powrprof.dll,SetSuspendState 1,1,0

-Hecks

Offline Rdl

  • Administrator
  • *****
  • Posts: 4050
Bug: Shutdown (Hibernate) disables scheduled tasks?
« Reply #2 on: March 05, 2007, 04:15:05 am »
Fixed.