Re: Why won't power management hibernate/standby machine?



Are you doing this in the context of a thread with a message queue?

If so, then this is a bug on your part, because it is your responsibility to
keep your message threads responsive.

"Ernie Billing" <ErnieBilling@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5E75A1C3-C8B2-48C8-B19D-2CA7339B5681@xxxxxxxxxxxxxxxx
I've isolated the problem outside of our application. It looks like I can
disable the power management on a notebook with the following line of
code:

::MoveFile( strSomeUNCPath, strSomeOtherUNCPath );

I've written a stand alone application that does only this, and the power
management takes a hike. The machine never sleeps. I'll be filing a bug
report w/ Microsoft.

"Vladimir Scherbina" wrote:

Hello there, Ernie.

"Ernie Billing" <ErnieBilling@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8F174E99-2DD5-4487-8A7B-D100FC18DA03@xxxxxxxxxxxxxxxx
When we do get the message and handle it, windows hibernates fine.
This
is a
case where we're not getting the message at all. I've written a little
app
that queries the system power state with ZwPowerInformation(). When
the
system goes into this state, the SYSTEM_POWER_INFORMATION.Idleness
never
goes
above 58. Even though task manager shows the machine at > 95% idle
continuously. So the shutdown timer
(SYSTEM_POWER_INFORMATION.TimeRemaining)
never decrements.

When the system goes into this state, even exiting our application does
not
solve the problem. An idle machine still has an Idleness of 58.

Is your pc a laptop ? I had an headace when trying to figure what's wrong
with hibernation on an old laptop...I don't know what to suggest you in
your
situation, maybe writing an simple application that broadcasts
WM_POWERBROADCAST to every window in OS to determine how windows process
your message to find the "wrong one".

--
Vladimir
http://spaces.msn.com/vladimir-scherbina/





.



Relevant Pages

  • Re: Why wont power management hibernate/standby machine?
    ... No. Microsoft stands that when application recieves ... I've written a stand alone application that does only this, and the power ... management takes a hike. ... WM_POWERBROADCAST to every window in OS to determine how windows process ...
    (microsoft.public.win32.programmer.kernel)
  • Re: XP will not "Wake the computer to run this task"
    ... The OS is not operating when the system is in hibernation. ... is no way for it to trigger a wake up from hibernation. ... BIOS would power on the system and boot it from hibernation. ... look for power management settings on my network cards. ...
    (microsoft.public.windowsxp.general)
  • Re: fehler apm-gerät
    ... > Systemkomponenten bei Unterstützung für Advanced Power ... > Management im Gerätestatus Fehler Code 10 angezeigt. ...
    (microsoft.public.de.german.win98.allgemein)
  • Re: Do you have a Knowledge Officer?
    ... I love working on infrastructure ... Management are no more responsible for deployment than they are for ... is actually the opposite - it means that you have an intermittent bug ... Balkanization of responsibility. ...
    (comp.lang.cobol)
  • About reopening Logger...
    ... > the power to do anything. ... > The glue project does it. ... I take responsibility for this bug as I am the one that intoroduced ... reported bugs are fixed and updates pushed to the users ASAP. ...
    (comp.lang.ruby)