hal/hald/linux2 acpi.c,1.29,1.30

Danny Kukawka dkukawka at freedesktop.org
Thu Aug 11 00:01:52 PDT 2005


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

Modified Files:
	acpi.c 
Log Message:
2005-08-11  Danny Kukawka <danny.kukawka at web.de>

        * hald/linux2/acpi.c: (battery_refresh): remove also
        battery.charge_level.rate, battery.reporting.unit and
        battery.remaining_time if the battery is removed.



Index: acpi.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux2/acpi.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- acpi.c	11 Aug 2005 06:57:53 -0000	1.29
+++ acpi.c	11 Aug 2005 07:01:50 -0000	1.30
@@ -336,6 +336,7 @@
 		hal_device_property_remove (d, "battery.charge_level.low");
 		hal_device_property_remove (d, "battery.charge_level.granularity_1");
 		hal_device_property_remove (d, "battery.charge_level.granularity_2");
+		hal_device_property_remove (d, "battery.charge_level.rate");
 		hal_device_property_remove (d, "battery.voltage.unit");
 		hal_device_property_remove (d, "battery.voltage.design");
 		hal_device_property_remove (d, "battery.voltage.current");
@@ -349,6 +350,8 @@
 		hal_device_property_remove (d, "battery.reporting.low");
 		hal_device_property_remove (d, "battery.reporting.granularity_1");
 		hal_device_property_remove (d, "battery.reporting.granularity_2");
+		hal_device_property_remove (d, "battery.reporting.unit");
+		hal_device_property_remove (d, "battery.remaining_time");
 		device_property_atomic_update_end ();		
 	} else {
 		device_property_atomic_update_begin ();




More information about the hal-commit mailing list