hal/hald/linux2 acpi.c,1.20,1.21

David Zeuthen david at freedesktop.org
Mon Jul 11 17:39:31 PDT 2005


Update of /cvs/hal/hal/hald/linux2
In directory gabe:/tmp/cvs-serv7658/hald/linux2

Modified Files:
	acpi.c 
Log Message:
2005-07-11  David Zeuthen  <davidz at redhat.com>

        * hald/linux2/acpi.c (battery_refresh_poll): When the battery is
        degrading a bit, and the last full battery info value is updated
        by ACPI, the new value is not reflected in HAL database. Reported
        by Paul Ionescu (i_p_a_u_l at yahoo.com); fix by Richard
        Hughes (richard at hughsie.com) (RH #162215).



Index: acpi.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux2/acpi.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- acpi.c	11 May 2005 17:46:32 -0000	1.20
+++ acpi.c	12 Jul 2005 00:39:29 -0000	1.21
@@ -73,7 +73,9 @@
 					 "state", "remaining capacity", 0, 10, TRUE);
 	hal_util_set_int_elem_from_file (d, "battery.charge_level.rate", path, 
 					 "state", "present rate", 0, 10, TRUE);
-	
+	hal_util_set_int_elem_from_file (d, "battery.charge_level.last_full", path, 
+					 "info", "last full capacity", 0, 10, TRUE);
+ 		
 	hal_device_property_set_int (d, "battery.remaining_time", 
 				     util_compute_time_remaining (
 					     d->udi,




More information about the hal-commit mailing list