hal ChangeLog,1.471,1.472

David Zeuthen david at freedesktop.org
Thu Mar 10 11:44:14 PST 2005


Update of /cvs/hal/hal
In directory gabe:/tmp/cvs-serv11128

Modified Files:
	ChangeLog 
Log Message:
2005-03-10  David Zeuthen  <davidz at redhat.com>

	Bah, so it turns out that crappy BIOS'es and what-have-you gets really
	upset of hald, every five seconds, accessing the state file three
	times and the info file one time (in /proc/acpi/battery/BAT%d)

	https://www.redhat.com/archives/fedora-devel-list/2005-March/msg00704.html

	So, off to read the battstat applet source - fix this up so we
	only access a single file every 30 seconds; just like battstat applet.

	I really hate hardware.

	* hald/linux2/acpi.c (ACPI_POLL_INTERVAL): Only poll every 30 seconds
	(battery_refresh_poll): New function
	(battery_refresh): Call battery_refresh_poll
	(acpi_poll): Call battery_refresh_poll instead of acpi_rescan_device

	* hald/util.c (hal_util_grep_file): Fix this so the last read buffer
	is cached for reuse



Index: ChangeLog
===================================================================
RCS file: /cvs/hal/hal/ChangeLog,v
retrieving revision 1.471
retrieving revision 1.472
diff -u -d -r1.471 -r1.472
--- ChangeLog	9 Mar 2005 19:30:04 -0000	1.471
+++ ChangeLog	10 Mar 2005 19:44:11 -0000	1.472
@@ -1,3 +1,24 @@
+2005-03-10  David Zeuthen  <davidz at redhat.com>
+
+	Bah, so it turns out that crappy BIOS'es and what-have-you gets really
+	upset of hald, every five seconds, accessing the state file three
+	times and the info file one time (in /proc/acpi/battery/BAT%d)
+
+	https://www.redhat.com/archives/fedora-devel-list/2005-March/msg00704.html
+
+	So, off to read the battstat applet source - fix this up so we
+	only access a single file every 30 seconds; just like battstat applet.
+
+	I really hate hardware.
+
+	* hald/linux2/acpi.c (ACPI_POLL_INTERVAL): Only poll every 30 seconds
+	(battery_refresh_poll): New function
+	(battery_refresh): Call battery_refresh_poll
+	(acpi_poll): Call battery_refresh_poll instead of acpi_rescan_device
+
+	* hald/util.c (hal_util_grep_file): Fix this so the last read buffer
+	is cached for reuse
+
 2005-03-09  David Zeuthen  <davidz at redhat.com>
 
 	* hald/linux2/addons/addon-acpi.c (main): Handle /proc/acpi/event




More information about the hal-commit mailing list