Comment 6 for bug 36816

Revision history for this message
Rob Latham (rob-terizla) wrote : Re: Should check periodically

I have this problem on my laptop as well. Here's what I think is going on: my laptop is in standby at 7am when cron would normally kick off anacron.

In breezy, i added anacron to STOP_SERVICES in /etc/default/acpi-support. Upon resume, anacron would start. If i was still on battery, it would defer taking any action. If anacron had run less than 24 hours ago, it would do nothing. If i never sleep again, anacron will kick in as part of the 7am cron job. If i sleep and wake up on battery, anacron will run. So it's not perfect but it gets anacron running every 2-3 days at worst.

In dapper, however, /etc/acpi/sleep.sh skips all those scripts if gnome-power-manager or klaptopdaemon is running. Seems like gnome-power-manager or klaptopdaemon, if they are going to be the way dapper implements acpi policy, should at least kick off anacron. Maybe they could consult /etc/default/acpi-support for which services to start and stop when resuming or sleeping.