[Goodies-dev] xfce4-battery don't update charge level

Ali Abdallah aliov at xfce.org
Fri Mar 20 17:49:39 CET 2009


Andrwe Lord Weber wrote:
> Ali Abdallah schrieb:
>> Andrwe Lord Weber wrote:
>>> Hi,
>>> I've now installed the latest hal-version (0.5.12_rc1) but that 
>>> doesn't changed anything.
>>>
>>> >On 17.03.2009 19:00, Ali Abdallah wrote:
>>>>> Andrwe Lord Weber wrote:
>>>>>> Ali Abdallah schrieb:
>>>>>>> Andrwe Lord Weber wrote:
>>>>>>>> Hi all,
>>>>>>>> I'm using xfce4-4.6.0 on Gentoo.
>>>>>>>> The panel-plugins xfce4-battery and -power-manager don't update 
>>>>>>>> there charging level automatically.
>>>>>>>> ACPI is active in the kernel and if I'm reading the state 
>>>>>>>> manually with "cat /proc/acpi/battery/BAT0/state" both plugins 
>>>>>>>> update thier values.
>>>>>>>>
>>>>>>> Not sure if i understand what you exactly mean here, please 
>>>>>>> provide more details.
>>>>>> I meant the plugins show a charging level of 99% if fully loaded 
>>>>>> although I'm working on battery mode until I use the given 
>>>>>> command to see the real chargment.
>>>>>> After using it both plugins update their percentage once.
>>>>>> It is also updated if I plug in/out the cable.
>>>>>
>>>>> You can do the following, lshal -m, then run the above command and 
>>>>> see if this is causing hald to update the current charge value.
>>>>>
>>> >I've done this and the result is like I mentioned.
>>> >As long as I'm doing nothing there is no reaction but if I use the 
>>> >above
>>> >commend there is an update.
>>> >I've tried it at irregular intervals and it's always the same result.
>>>>>>>> Although the left time of charging and decharging is to high, 
>>>>>>>> e.g. if my battery is fully charged they say I can work for 27 
>>>>>>>> hours.
>>>>>>>>
>>>>>>>> xfce4-battery-version: 0.5.1
>>>>>>>> xfce4-power-manager-version: 0.6.4
>>>>>>>>
>>>>>>> Very strange, at least in the power manager, since we read this 
>>>>>>> information from hald, and we don't accept any estimated time 
>>>>>>> greater than 8 hours!
>>>>>>>
>>>>>> The 27 hours are shown by the battery-plugin. How can I see the 
>>>>>> time using power-manager?
>>>
>>> I've also tested the time again which is shown by power-manager.
>>> You're right values above 8 hours weren't shown but if the battery 
>>> reach a charge level of 20% the power-manager shows a left time of 7 
>>> hours. (would be nice if it were true ^^)
>>>
>> Yes would be very nice if this is true for sure :), but i get this 
>> information from hald, so if they do calculate it wrong what can i 
>> do, i might add time estimation in xfpm for future release to avoid 
>> this funny estimation.
>>
>>> Regards,
>>> Andrwe
>>
>> Regards,
>> Ali.
> So I had to ask the hal developer about this bug?
>
Yes, you could see from the output of lshal, under the battery devicethe 
value of the key "battery.remaining_time".

> Regards,
> Andrwe

Regards,
Ali.
> _______________________________________________
> Goodies-dev mailing list
> Goodies-dev at xfce.org
> http://foo-projects.org/mailman/listinfo/goodies-dev




More information about the Goodies-dev mailing list