[PATCH] acpi.c: fix for fd.o bug #8593 and small cleanup

Danny Kukawka danny.kukawka at web.de
Thu Oct 12 08:04:58 PDT 2006


Hi,

this patch fixes the fd.o bug #8593 where wrong low current voltage battery 
values causes a wrong remaining percentage. 

Now we assume if the current voltage is lower than 50% of the design voltage 
that this is from broken hardware and use the design voltage to normalise the 
battery values. 

I also included some little cleanups in acpi.c and removed duplicated code.

Danny

 acpi.c |   67 ++++++++++++++++++++-----------------------------------
 1 file changed, 25 insertions(+), 42 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-acpi_low_current_voltage_and_cleanup.diff
Type: text/x-diff
Size: 5069 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20061012/1cc319c3/hal-fix-acpi_low_current_voltage_and_cleanup.bin


More information about the hal mailing list