kpowersave stuck at battery charging

Andrey Borzenkov arvidjaar at mail.ru
Wed Jan 2 05:22:34 PST 2008


On Wednesday 02 January 2008, Danny Kukawka wrote:
> On Mittwoch, 2. Januar 2008, Andrey Borzenkov wrote:
> > battery.charge_level.percentage = 94
> 
> Here is your problem. KPowersave simply check this value and this say the 
> battery isn't full.
> 

It is not my problem; it is HAL problem :)

As I already asked in another reply - how do you calculate 100%? You assume that 
last_full is going to be always reached. That is not correct. In my case 
charging stops before. While this means degraded battery, it is still charged up 
to 100% of new (degraded) capacity.

While this condition warrants some sort of warning to user, it is probably wrong 
to indefinitely claim "battery is charging" when in fact it is not.

> Btw. As I already wrote in an other thread: There are some bugs in the HAL 
> code for the ACPI batteries which are shown as power supply devices in sysfs. 
> You can with kernel 2.6.24 and HAL 0.5.10 only trust the batteries from the 
> proc interface on ACPI machines.
> 

So far all information I got from HAL was correct. 

> I take currently a look at the problem, and have already a solution in mind, 
> but had not the time to fix the code. I hope, I can finish this next week.
> 
> Danny
> _______________________________________________
> hal mailing list
> hal at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/hal
> 
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/hal/attachments/20080102/b00f3886/attachment.pgp 


More information about the hal mailing list