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

David Zeuthen david at fubar.dk
Thu Dec 6 11:21:30 PST 2007


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!

     David




More information about the hal mailing list