Comment 12 for bug 36816

Revision history for this message
Seb Wills (sebwills) wrote : Re: Doesn't work with hibernation

OK. And now bug #44996 is fixed, I think there is a perfect fix for this bug, which will prod anacron upon resume and also whenever the AC is plugged in. The fix is:

A script consisting of:

  #!/bin/sh
  /usr/sbin/invoke-rc.d anacron start >/dev/null

placed as /etc/acpi/resume.d/85-anacron.sh and also as /etc/acpi/ac.d/85-anacron.sh

And a script consisting of:

  #!/bin/sh
  /usr/sbin/invoke-rc.d anacron stop >/dev/null

placed as /etc/acpi/suspend.d/15-anacron.sh and also as /etc/acpi/battery.d/15-anacron.sh.

I will file an upstream bug (suggesting this fix) for the anacron debian package in a few days, once the acpi-support package has appeared in Debian (it's currently sitting in incoming). In the mean time, anyone able to get it into Dapper?