PMU: battery charge information totally wrong

Johannes Berg johannes at sipsolutions.net
Wed May 9 07:44:06 PDT 2007


On Tue, 2007-05-08 at 16:59 +0100, Richard Hughes wrote:

> > The code says:
> > 
> >                 /* we don't know the unit here :-/ */
> >                 /*hal_device_property_set_string (d, "battery.charge_level.unit", "percent");*/
> > 
> > Actually, looking at the kernel code and the proc output, it's quite
> > clear that the unit is mA and mV, so the charge_level.rate would be easy
> > to calculate as (voltage*amperage)/1000 [mW].
> 
> If you are totally sure, a patch would kick ass. :-)

Well, that would get me around 25W which matches my power meter :)
Unfortunately I can't build hal from git for some autofoo reason so I
don't dare make a patch. Maybe I can build the debian package and then
the patch will apply. I'll take a look.

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


More information about the hal mailing list