Hello,
On my custom board(imx31) based on wince-5.0 does not update the power
applet. It always shows charging. But in the BatteryThreadProc()
function in the battdrvr.c, I could find that the call to the function
BatteryAPIGetSystemPowerStatusEx2() returns the correct status of the
battery.That is it returns charging/not charing/external power etc.
correctly. But somehow the power applet is not getting updated. I have
commented out call to PowerPolicyNotify() when there is any change in
battery status since when I call this function it returns with error
that the "service has not been started". Does the call to
PowerPolicyNotify() required to updated the power applet? On my system
pm.dll is loaded and running. Could someone help me on this issue.

Thanks,
Shiju

Re: Power Applet does not get updated on wince-5.0 by voidcoder

voidcoder
Wed Jul 11 07:00:51 CDT 2007


Make sure your BatteryPDDGetStatus() reports
correctly "changed since last call" state ...


shiju wrote:
> Hello,
> On my custom board(imx31) based on wince-5.0 does not update the power
> applet. It always shows charging. But in the BatteryThreadProc()
> function in the battdrvr.c, I could find that the call to the function
> BatteryAPIGetSystemPowerStatusEx2() returns the correct status of the
> battery.That is it returns charging/not charing/external power etc.
> correctly. But somehow the power applet is not getting updated. I have
> commented out call to PowerPolicyNotify() when there is any change in
> battery status since when I call this function it returns with error
> that the "service has not been started". Does the call to
> PowerPolicyNotify() required to updated the power applet? On my system
> pm.dll is loaded and running. Could someone help me on this issue.
>
> Thanks,
> Shiju

Re: Power Applet does not get updated on wince-5.0 by shiju

shiju
Wed Jul 11 10:38:14 CDT 2007

Hi,
Thanks. Yes, the fBatteriesChangedSinceLastCall is updated properly, but
in the "Power Properties" applet in the control panel, it is not getting
updated. How does the Power applet being updated by the battery driver?
Is there a specific function call that updates the power properties in
the applet?

Thanks
Shiju
voidcoder wrote:
>
> Make sure your BatteryPDDGetStatus() reports
> correctly "changed since last call" state ...
>
>
> shiju wrote:
>> Hello,
>> On my custom board(imx31) based on wince-5.0 does not update the power
>> applet. It always shows charging. But in the BatteryThreadProc()
>> function in the battdrvr.c, I could find that the call to the function
>> BatteryAPIGetSystemPowerStatusEx2() returns the correct status of the
>> battery.That is it returns charging/not charing/external power etc.
>> correctly. But somehow the power applet is not getting updated. I have
>> commented out call to PowerPolicyNotify() when there is any change in
>> battery status since when I call this function it returns with error
>> that the "service has not been started". Does the call to
>> PowerPolicyNotify() required to updated the power applet? On my
>> system pm.dll is loaded and running. Could someone help me on this issue.
>>
>> Thanks,
>> Shiju

Re: Power Applet does not get updated on wince-5.0 by shiju

shiju
Wed Jul 11 10:39:56 CDT 2007

Hi,
Thanks. Yes, the fBatteriesChangedSinceLastCall is updated properly, but
in the "Power Properties" applet in the control panel, it is not getting
updated. How does the Power applet being updated by the battery driver?
Is there a specific function call that updates the power properties in
the applet?

Thanks
Shiju
voidcoder wrote:
>
> Make sure your BatteryPDDGetStatus() reports
> correctly "changed since last call" state ...
>
>
> shiju wrote:
>> Hello,
>> On my custom board(imx31) based on wince-5.0 does not update the power
>> applet. It always shows charging. But in the BatteryThreadProc()
>> function in the battdrvr.c, I could find that the call to the function
>> BatteryAPIGetSystemPowerStatusEx2() returns the correct status of the
>> battery.That is it returns charging/not charing/external power etc.
>> correctly. But somehow the power applet is not getting updated. I have
>> commented out call to PowerPolicyNotify() when there is any change in
>> battery status since when I call this function it returns with error
>> that the "service has not been started". Does the call to
>> PowerPolicyNotify() required to updated the power applet? On my
>> system pm.dll is loaded and running. Could someone help me on this issue.
>>
>> Thanks,
>> Shiju

Re: Power Applet does not get updated on wince-5.0 by voidcoder

voidcoder
Mon Jul 23 05:28:49 CDT 2007


What is returned by BatteryPDDSupportsChangeNotification()?

- Oleg


shiju wrote:
> Hi,
> Thanks. Yes, the fBatteriesChangedSinceLastCall is updated properly, but
> in the "Power Properties" applet in the control panel, it is not getting
> updated. How does the Power applet being updated by the battery driver?
> Is there a specific function call that updates the power properties in
> the applet?
>
> Thanks
> Shiju
> voidcoder wrote:
>>
>> Make sure your BatteryPDDGetStatus() reports
>> correctly "changed since last call" state ...
>>
>>
>> shiju wrote:
>>> Hello,
>>> On my custom board(imx31) based on wince-5.0 does not update the
>>> power applet. It always shows charging. But in the
>>> BatteryThreadProc() function in the battdrvr.c, I could find that the
>>> call to the function BatteryAPIGetSystemPowerStatusEx2() returns the
>>> correct status of the battery.That is it returns charging/not
>>> charing/external power etc. correctly. But somehow the power applet
>>> is not getting updated. I have commented out call to
>>> PowerPolicyNotify() when there is any change in battery status since
>>> when I call this function it returns with error that the "service has
>>> not been started". Does the call to PowerPolicyNotify() required to
>>> updated the power applet? On my system pm.dll is loaded and running.
>>> Could someone help me on this issue.
>>>
>>> Thanks,
>>> Shiju