Bug#469135: pm-utils: consider adding a hook to run anacron after resume or AC plugging
Hi, The patch proposed by C Sights does not work if one uses uswsusp's s2ram to put the box in suspend mode. pp -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#469135: pm-utils: consider adding a hook to run anacron after resume or AC plugging
severity 469135 wishlist thanks Jeremie Bouttier wrote: > Package: pm-utils > Version: 0.99.2-3 > Severity: normal > > Hi, > > I realize that on my laptop the scripts in /etc/cron.(daily|weekly|monthly) > are not > run as regularly as they should, if anacron was doing its job. This is > because I put > my laptop to sleep at night, and wake it up typically after 7:30 AM so > /etc/cron.d/anacron is not run. > > I believe anacron should be invoked on resume, and moreover when the AC is > plugged > (because by default anacron is not run when AC is unplugged), so that it can > check > whether it has work to do. A number of related bugs (202605, 260323, 426294) > have been > filed for anacron, and the issue seem to have been addressed in Ubuntu. > However the > fix probably depends on the power management script used, so I file this as a > pm-utils > bug. > > My current fix is to add hooks in /etc/pm/(power.d|sleep.d) that do > "invoke-rc.d > anacron start" on resume/AC on (and also "invoke-rc.d anacron stop" on > suspend/AC > off). Hi Jeremie, thanks for the bug report. Imho it would be "cleaner", if packages, just as anacron in this case, shipped those hooks themself. We might add them to pm-utils as an intermediate solution, but when pm-utils is pervasive enough (and hopefully has established as default powermanagement scripts suite), we will try to push out those scripts to the original packages again. Cheers, Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth? signature.asc Description: OpenPGP digital signature
Bug#469135: pm-utils: consider adding a hook to run anacron after resume or AC plugging
Package: pm-utils Version: 0.99.2-3 Severity: normal Hi, I realize that on my laptop the scripts in /etc/cron.(daily|weekly|monthly) are not run as regularly as they should, if anacron was doing its job. This is because I put my laptop to sleep at night, and wake it up typically after 7:30 AM so /etc/cron.d/anacron is not run. I believe anacron should be invoked on resume, and moreover when the AC is plugged (because by default anacron is not run when AC is unplugged), so that it can check whether it has work to do. A number of related bugs (202605, 260323, 426294) have been filed for anacron, and the issue seem to have been addressed in Ubuntu. However the fix probably depends on the power management script used, so I file this as a pm-utils bug. My current fix is to add hooks in /etc/pm/(power.d|sleep.d) that do "invoke-rc.d anacron start" on resume/AC on (and also "invoke-rc.d anacron stop" on suspend/AC off). Cheers, Jeremie -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (900, 'testing'), (900, 'stable'), (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores) Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Shell: /bin/sh linked to /bin/bash Versions of packages pm-utils depends on: ii powermgmt-base1.30 Common utils and configs for power Versions of packages pm-utils recommends: ii hal 0.5.10-5 Hardware Abstraction Layer ii radeontool1.5-5 utility to control ATI Radeon back ii uswsusp 0.7-1 tools to use userspace software su ii vbetool 1.0-1.1run real-mode video BIOS code to a -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]