[PATCH] automatically fix primary (ACPI) batteries which charge with > 50 W

Danny Kukawka danny.kukawka at web.de
Wed Mar 12 05:19:46 PDT 2008


Hi,

this patch try to detect automatically broken batteries which tell that they 
charge a primary (Laptop) battery with more than 50 Wh (50.000 mWh), which is 
IMO in 100% of the cases wrong for Laptop batteries. Maybe we can also assume 
a much lower level as criterion.

To get valid remaining time values this patch set in such cases 
battery.remaining_time.calculate_per_time=true and calculate the remaining 
time based on time and the chargelevel.

Danny

 device_pm.c |   27 ++++++++++++++++++++++++++-
 1 file changed, 26 insertions(+), 1 deletion(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-acpi_high_rate_calculate_on_time_v2.diff
Type: text/x-diff
Size: 1916 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20080312/7d26116b/attachment.diff 


More information about the hal mailing list