Hi,
The following patch is used in Ubuntu to start and stop anacron
with ACPI events, it may well handle one of these issues. Please
consider applying it.
Thanks,
James
diff -pruN 2.3-13/debian/acpi.d.resume
2.3-13ubuntu2/debian/acpi.d.resume
--- 2.3-13/debian/acpi.d.resume 1970-01-01 01:00:00.000000000 +0100
+++ 2.3-13ubuntu2/debian/acpi.d.resume 2007-03-05 11:38:43.000000000 +0000
@@ -0,0 +1,15 @@
+#! /bin/sh
+
+# This script makes anacron jobs start to run when the machine is
+# plugged into AC power, or woken up. For a laptop, these are the
+# closest parallels to turning on a desktop.
+
+# The /etc/init.d/anacron script now normally tries to avoid running
+# anacron unless on AC power, so as to avoid running down the battery.
+# (Things like the slocate updatedb cause a lot of IO.) Rather than
+# trying to second-guess which events reflect having or not having
+# power, we just try to run anacron every time and let it abort if
+# there's no AC. You'll see a message on the cron syslog facility
+# (typically /var/log/cron) if it does run.
+
+/usr/sbin/invoke-rc.d anacron start >/dev/null
diff -pruN 2.3-13/debian/acpi.d.suspend 2.3-13ubuntu2/debian/acpi.d.suspend
--- 2.3-13/debian/acpi.d.suspend 1970-01-01 01:00:00.000000000 +0100
+++ 2.3-13ubuntu2/debian/acpi.d.suspend 2007-03-05 11:38:43.000000000 +0000
@@ -0,0 +1,6 @@
+#! /bin/sh
+
+# This script makes anacron jobs stop to run when the machine is
+# unplugged from AC power, or suspended.
+
+/usr/sbin/invoke-rc.d anacron stop >/dev/null
diff -pruN 2.3-13/debian/dirs 2.3-13ubuntu2/debian/dirs
--- 2.3-13/debian/dirs 2007-03-05 11:53:55.000000000 +0000
+++ 2.3-13ubuntu2/debian/dirs 2007-03-05 11:38:43.000000000 +0000
@@ -4,6 +4,10 @@ etc/cron.daily
etc/cron.weekly
etc/cron.monthly
etc/apm/event.d
+etc/acpi/ac.d
+etc/acpi/battery.d
+etc/acpi/resume.d
+etc/acpi/suspend.d
usr/sbin
usr/share/doc/anacron
usr/share/man/man5
diff -pruN 2.3-13/debian/rules 2.3-13ubuntu2/debian/rules
--- 2.3-13/debian/rules 2007-03-05 11:53:55.000000000 +0000
+++ 2.3-13ubuntu2/debian/rules 2007-03-05 11:38:43.000000000 +0000
@@ -36,7 +36,11 @@ install-stamp: build-stamp
install debian/0anacron.weekly debian/anacron/etc/cron.weekly/0anacron
install debian/0anacron.monthly debian/anacron/etc/cron.monthly/0anacron
install -m 755 debian/apm.d debian/anacron/etc/apm/event.d/anacron
-
+ # acpi stuff
+ install -m 755 debian/acpi.d.resume
debian/anacron/etc/acpi/resume.d/85-anacron.sh
+ install -m 755 debian/acpi.d.resume
debian/anacron/etc/acpi/ac.d/85-anacron.sh
+ install -m 755 debian/acpi.d.suspend
debian/anacron/etc/acpi/suspend.d/15-anacron.sh
+ install -m 755 debian/acpi.d.suspend
debian/anacron/etc/acpi/battery.d/15-anacron.sh
touch install-stamp
# Build architecture-independent files here.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]