HAL battery backend, new thread!

Danny Kukawka danny.kukawka at web.de
Mon Aug 1 14:14:21 PDT 2005


On Monday 01 August 2005 22:49, Richard Hughes wrote:
> On Mon, 2005-08-01 at 22:37 +0200, Danny Kukawka wrote:
> > On Monday 01 August 2005 19:20, David Zeuthen wrote:
> > > Looks good - I've committed this and the doc patch. Thanks a lot!
> >
> > The patch is broken. HAL segfaults on a Laptop with 2 battery bays but
> > only with one battery in function battery_refresh_poll() in line:
> >
> > 	"if (strcmp (reporting_unit, "mWh") == 0) {"
> >
> > The reason: battery_refresh_poll() polls the battery also if the battery
> > bay is empty and no battery present. The attached patch should fix this.
> >
> > I have currently no battery for bay BAT1, so I can't test what happens if
> > you insert the battery while machine is running. But I test this
> > tomorrow.
>
> Thanks Danny.

:)

Another point: Doesn't make it sense to add the *.reporting.* keys only if the 
reported keys are normalised to mWh? If the machine reports them already as 
mWh the output of lshal looks a little bit 'stange' with all this 
'duplicated' keys/values.

Cheer,

Danny
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list