Re: Why won't power management hibernate/standby machine?
- From: Ernie Billing <ErnieBilling@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 14 Mar 2006 17:38:14 -0800
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.
"Scherbina Vladimir" wrote:
It can be any application/driver. AFAIK there is no utility that can help.
you to track who is returning BROADCAST_QUERY_DENY.
I suggest you to recheck code of your application and supspend file
manipulations, timers... etc when you recieve
WM_POWERBROADCAST/PBT_APMSUSPEND.
--
Vladimir
http://spaces.msn.com/vladimir-scherbina/
"Ernie Billing" <ErnieBilling@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:112BAED5-EBE4-4FB9-9889-F0DDED80B2AE@xxxxxxxxxxxxxxxx
So there is what I really want to know - what part of the system might be
denying suspension? Are there any tools to diagnose the power management
system? Any way to find out what is going on?
"Scherbina Vladimir" wrote:
Correct.
After sending WM_POWERBROADCAST with PBT_APMSUSPEND the System "gives
applications and drivers one last chance to prepare for the event. In
many
cases, the system broadcasts these messages without requesting permission
to
do so.".
You should also remember, that there might be situations when
applications
or drivers return BROADCAST_QUERY_DENY to prevent suspending.
--
Vladimir
http://spaces.msn.com/vladimir-scherbina/
"Ernie Billing" <ErnieBilling@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3DACE009-7EBF-48D1-9254-612C2C8EC128@xxxxxxxxxxxxxxxx
The application handles WM_POWERBROADCAST, but what is strange is it
stops
getting them.
"Scherbina Vladimir" wrote:
I remember that I met the same problem and it was fixed by handling
WM_POWERBROADCAST message in my application and canceling all waitable
timers (using CancelWaitableTimer)
--
Vladimir
http://spaces.msn.com/vladimir-scherbina/
"Ernie Billing" <ErnieBilling@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message
news:9E9FC526-9769-44EF-BE5D-E9984A195A7D@xxxxxxxxxxxxxxxx
Is there any way to find out what application (and why) is
preventing
an
ACPI
machine from following power management hibernate/shutdown rules?
An
application we're developing seems to prevent power management from
putting a
machine into standby. There is nothing overt in our program
controlling
power management and we'd like to know if there is a way to get some
info
out
of the power management stuff as to why its not hibernating the
machine.
- Ernie
- Follow-Ups:
- Re: Why won't power management hibernate/standby machine?
- From: Vladimir Scherbina
- 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?
- Prev by Date: Accessing the DEVICE_EXTENSION of a disk
- Next by Date: Re: ReadFileScatter and WriteFileGather
- 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
|