Re: Why won't power management hibernate/standby machine?
- From: "Skywing" <skywing_NO_SPAM_@xxxxxxxxxxxxxxxxxxx>
- Date: Fri, 17 Mar 2006 13:19:49 -0500
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/
.
- Follow-Ups:
- Re: Why won't power management hibernate/standby machine?
- From: Scherbina Vladimir
- Re: Why won't power management hibernate/standby machine?
- References:
- Re: Why won't power management hibernate/standby machine?
- From: Scherbina Vladimir
- Re: Why won't power management hibernate/standby machine?
- From: Scherbina Vladimir
- Re: Why won't power management hibernate/standby machine?
- From: Scherbina Vladimir
- Re: Why won't power management hibernate/standby machine?
- From: Ernie Billing
- Re: Why won't power management hibernate/standby machine?
- From: Vladimir Scherbina
- Re: Why won't power management hibernate/standby machine?
- Prev by Date: Re: Structures in physical memory
- Next by Date: Re: How can get IE Menu and submenu ?
- Previous by thread: Re: Why won't power management hibernate/standby machine?
- Next by thread: Re: Why won't power management hibernate/standby machine?
- Index(es):
Relevant Pages
|