Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Re: How to know system is suspending at the critical battery level

Reply
Thread Tools Display Modes

Re: How to know system is suspending at the critical battery level

 
 
Alexander Grigoriev
Guest
Posts: n/a

 
      10-22-2009
The driver needs to do that instead, upon receiving SET_POWER IRP. I can't
believe the driver doesn't get it.

"leafbanana" <> wrote in message
news:2b21f2a3-04c5-4409-a3f2-...
> I'm developing a driver under Windows XP. I always have a pending IRP
> and need to cancel it when system is entering suspension (either
> standby or hibernate). It works well in normal scenarios, except when
> battery lifetime falls to the critical level in percent. In this case,
> the driver doesn't receive a IRP_MN_QUERY_POWER or IRP_MN_SET_POWER,
> and my background monitor application doesn't receive
> WM_POWERBROADCAST.
>
> Is there any way to find out the critical battery level in percent,
> either from driver or application? If so, it will help me to decide
> when the system will suspend. Or is there any other way to solve this
> problem?
>
> Thanks in advance.



 
Reply With Quote
 
 
 
 
Doron Holan [MSFT]
Guest
Posts: n/a

 
      10-22-2009
IRP_MN_SET_POWER and the Ex callback related to power notifications are
called on critical shutdown. the only thing from the driver's persepctive
is that you do not receive IRP_MN_QUERY_POWER(SystemPowerState)

d
--

This posting is provided "AS IS" with no warranties, and confers no rights.


"Alexander Grigoriev" <> wrote in message
news:#...
> The driver needs to do that instead, upon receiving SET_POWER IRP. I can't
> believe the driver doesn't get it.
>
> "leafbanana" <> wrote in message
> news:2b21f2a3-04c5-4409-a3f2-...
>> I'm developing a driver under Windows XP. I always have a pending IRP
>> and need to cancel it when system is entering suspension (either
>> standby or hibernate). It works well in normal scenarios, except when
>> battery lifetime falls to the critical level in percent. In this case,
>> the driver doesn't receive a IRP_MN_QUERY_POWER or IRP_MN_SET_POWER,
>> and my background monitor application doesn't receive
>> WM_POWERBROADCAST.
>>
>> Is there any way to find out the critical battery level in percent,
>> either from driver or application? If so, it will help me to decide
>> when the system will suspend. Or is there any other way to solve this
>> problem?
>>
>> Thanks in advance.

>
>

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! Access Denied Even To The System Owner... AAD213 Windows Vista Administration 16 12-03-2007 11:02 PM
Critical Battery Alarm Not Working LYW Windows Vista Hardware 2 07-05-2007 08:16 PM
NVIDIA GeForece 6800 and Vista w2m Windows Vista Hardware 19 06-11-2007 11:34 PM
With via AC97 sound- soloution - no volume control at Operating System level...? Ron Bartle Windows Vista Hardware 3 03-06-2007 08:05 PM
What is up with Vista's file system? Stan Shankman Windows Vista File Management 7 08-15-2006 07:59 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59