[PATCH] fix battery keys if battery is full charged
David Zeuthen
david at fubar.dk
Thu Aug 11 08:30:35 PDT 2005
On Thu, 2005-08-11 at 16:47 +0200, Danny Kukawka wrote:
> On Thursday 11 August 2005 15:55, David Zeuthen wrote:
> > But the point here is that the values are indeed known and they already
> > assume sane values. Setting values to -1 sounds sketchy to me.
> >
> > To go into depth: the battery is fully charged and we're running on
> > mains means no electricity are flowing from the battery to the computer.
> > Hence, the "current" is 0. Same with rate. For remaining time you can
> > make a similar argument, there is simply zero seconds until the battery
> > is charged, simple because the battery is already charged =).
>
> Here the new version of the patch. Now the unknow keys are set to 0. ;-)
Looks good. Please commit.
Cheers,
David
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list