pm-utils doesn't call anacron

Bug #208792 reported by Philip Falkner
8
Affects Status Importance Assigned to Milestone
anacron (Ubuntu)
Fix Released
Undecided
Unassigned
pm-utils (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

pm-utils in hardy doesn't stop anacron on battery/sleep, or start it on ac/resume. Because of this, cron.{daily,weekly,monthly} events are often missed.

This is a regression from previous Ubuntu releases using acpi-support, which called anacron properly.

Debian has a wishlist bug about this (469135), but it's more important than that for Ubuntu since it worked in previous releases.

Revision history for this message
Hans van den Bogert (hbogert) wrote :

I was going to report a bug, until I saw this thread

Surprisingly Mr. Falkner and I are the only one who notice this, while the same problem caused a lot of irritation in the time of the ACPI implementation (when anacron wasn't working too)

Changed in pm-utils:
status: New → Confirmed
Revision history for this message
vlowther (victor-lowther) wrote :

adding anacron so they can see if a pm-utils hook needs to be written.

Revision history for this message
Frantisek Vacek (w4tch0) wrote :

This seems to be because part of the power management stuff is still done by acpi-support. On my 32bit 8.04 powered laptop, anacron gets stopped/started when switching to battery/ac (alt+ctrl+F1 switch to tty1, unplug ac and messega shows up"*Stopping anac(h)ronistic cron anacron") but to me it seems its still done with /etc/acpi/battery.d/15-anacron.sh and /etc/acpi/ac.d/85-anacron.sh which is weird since scripts placed in i.e. /etc/acpi/resume.d no longer get executed and you have to place your scripts in /etc/pm/sleep.d/ . Also the /etc/acpi/power.sh still gets called when switching to battery/ac.

Another thing, some variables in /etc/default/acpi-support are still valid and affect the system's power management behavior, some no longer have any effect, i.e. ENABLE_LAPTOP_MODE setting still works, while MODULES has no effect and one must create his own new config in /etc/pm/conf.d/ to configure modules which should get unloaded before suspend/hibernate.

Maybe a new bug should be reported, to completely remove acpi-support package from default install and fully migrate all the scripts and hooks to pm-utils since for now the hardy power management seems like glued and duct taped together from pm-utils and acpi-support.

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

likely dup of bug #249220.

Can someone with this issue check with latest release in Intrepid and report here ? Thanks.

Changed in anacron:
status: New → Incomplete
Revision history for this message
Chow Loong Jin (hyperair) wrote :

Hooks for specific packages are not meant to be put in the pm-utils package, but in their respective packages. That's why there is a directory for hooks.

Changed in pm-utils:
status: Confirmed → Invalid
Revision history for this message
Chow Loong Jin (hyperair) wrote :

It's fixed in Intrepid. There is a hook for anacron in /usr/lib/pm-utils/sleep.d/95anacron and /usr/lib/pm-utils/power.d/anacron, both found in packages anacron.

Changed in anacron:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.