[PATCH] fix normalised_rate if dis-/charging state is unknown

Danny Kukawka danny.kukawka at web.de
Thu Dec 6 12:24:18 PST 2007


On Donnerstag, 6. Dezember 2007, David Zeuthen wrote:
> On Sat, 2007-11-24 at 19:25 +0100, Danny Kukawka wrote:
> > Hi,
> >
> > this patch fix problems with machines which report not the correct
> > charging state in some cases (e.g. battery report 'charged' if on
> > battery). With this patch normalised_rate get set only to 0 if:
> >
> > * the machines is on AC or
> > * there is in a multi battery system an other primary (ACPI) battery is
> > discharging
> >
> > This should fix: https://bugzilla.novell.com/show_bug.cgi?id=258755
>
> You know this part of the code much better than me so please commit.
> Thanks!

We have this already some months in our SUSE package, but if someone get 
problems caused by the patch, let me know.

Commited,

Danny




More information about the hal mailing list