hal/hald/linux2 acpi.c,1.17,1.18
David Zeuthen
david at freedesktop.org
Thu Mar 10 12:17:22 PST 2005
- Previous message: hal/doc/spec hal-spec.xml.in,1.36,1.37
- Next message: hal/volume_id Makefile.am, 1.4, 1.5 cramfs.c, 1.1, 1.2 ext.c, 1.2,
1.3 fat.c, 1.3, 1.4 hfs.c, 1.2, 1.3 highpoint.c, 1.2,
1.3 hpfs.c, 1.1, 1.2 iso9660.c, 1.2, 1.3 jfs.c, 1.2,
1.3 linux_raid.c, 1.2, 1.3 linux_swap.c, 1.2, 1.3 luks.c, 1.3,
1.4 lvm.c, 1.2, 1.3 mac.c, 1.2, 1.3 minix.c, NONE, 1.1 minix.h,
NONE, 1.1 msdos.c, 1.2, 1.3 ntfs.c, 1.2, 1.3 reiserfs.c, 1.3,
1.4 romfs.c, 1.1, 1.2 sysv.c, 1.1, 1.2 udf.c, 1.2, 1.3 ufs.c,
1.2, 1.3 util.c, 1.3, 1.4 util.h, 1.3, 1.4 volume_id.c, 1.5,
1.6 volume_id.h, 1.6, 1.7 xfs.c, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvs/hal/hal/hald/linux2
In directory gabe:/tmp/cvs-serv13948/hald/linux2
Modified Files:
acpi.c
Log Message:
2005-03-10 David Zeuthen <davidz at redhat.com>
* hald/linux2/acpi.c (battery_refresh_poll): Also set property
battery.charge_level.rate
(acpi_poll): Make the update atomic
* doc/spec/hal-spec.xml.in: Update for battery.charge_level.rate
Index: acpi.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux2/acpi.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- acpi.c 10 Mar 2005 19:44:11 -0000 1.17
+++ acpi.c 10 Mar 2005 20:17:20 -0000 1.18
@@ -71,6 +71,8 @@
"state", "charging state", 0, "discharging", TRUE);
hal_util_set_int_elem_from_file (d, "battery.charge_level.current", path,
"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);
}
static gboolean
@@ -283,7 +285,9 @@
d = HAL_DEVICE (i->data);
if (hal_device_has_property (d, "linux.acpi_type")) {
hal_util_grep_discard_existing_data ();
+ device_property_atomic_update_begin ();
battery_refresh_poll (d);
+ device_property_atomic_update_end ();
}
}
- Previous message: hal/doc/spec hal-spec.xml.in,1.36,1.37
- Next message: hal/volume_id Makefile.am, 1.4, 1.5 cramfs.c, 1.1, 1.2 ext.c, 1.2,
1.3 fat.c, 1.3, 1.4 hfs.c, 1.2, 1.3 highpoint.c, 1.2,
1.3 hpfs.c, 1.1, 1.2 iso9660.c, 1.2, 1.3 jfs.c, 1.2,
1.3 linux_raid.c, 1.2, 1.3 linux_swap.c, 1.2, 1.3 luks.c, 1.3,
1.4 lvm.c, 1.2, 1.3 mac.c, 1.2, 1.3 minix.c, NONE, 1.1 minix.h,
NONE, 1.1 msdos.c, 1.2, 1.3 ntfs.c, 1.2, 1.3 reiserfs.c, 1.3,
1.4 romfs.c, 1.1, 1.2 sysv.c, 1.1, 1.2 udf.c, 1.2, 1.3 ufs.c,
1.2, 1.3 util.c, 1.3, 1.4 util.h, 1.3, 1.4 volume_id.c, 1.5,
1.6 volume_id.h, 1.6, 1.7 xfs.c, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the hal-commit
mailing list