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

Danny Kukawka danny.kukawka at web.de
Sat Nov 24 10:25:51 PST 2007


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

Danny

 device_pm.c |   55 ++++++++++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 53 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-acpi_on_battery_discharging_v2.diff
Type: text/x-diff
Size: 2543 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20071124/78f2738b/attachment.diff 


More information about the hal mailing list