Package: pm-utils
Version: 1.2.5-2
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch karmic

Hi Michael,

pm-utils currently includes a script to call hwclock on suspend and resume,
to save and restore the system clock.  However, recent kernels handle this
directly, and much more efficiently - having to call hwclock results in a
full one-second delay on suspend and resume, because of the way this
userspace tool works.  So I strongly recommend not installing this script as
part of the package.

(N.B., I only know for sure that this is true for the kernel suspend/resume
method, I can't speak for whether the tuxonice or uswsusp methods do their
own correct clock handling.  Nevertheless, adding a full second delay to the
suspend process significantly impacts the user experience, so if those
methods don't already handle the clock in kernel, they should be fixed to do
so.)

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slanga...@ubuntu.com                                     vor...@debian.org
diff -Nru pm-utils-1.2.5/debian/rules pm-utils-1.2.5/debian/rules
--- pm-utils-1.2.5/debian/rules	2009-04-30 04:25:12.000000000 +0000
+++ pm-utils-1.2.5/debian/rules	2009-04-30 04:25:12.000000000 +0000
@@ -22,6 +22,7 @@
 	rm -f debian/pm-utils/usr/share/man/man1/on_ac_power.1
 	# Remove tools/hooks that are not suitable for Debian.
 	rm -f debian/pm-utils/usr/lib/pm-utils/sleep.d/01grub
+	rm -f debian/pm-utils/usr/lib/pm-utils/sleep.d/90clock
 	rm -f debian/pm-utils/usr/lib/pm-utils/bin/pm-reset-swap
 	rm -f debian/pm-utils/usr/lib/pm-utils/bin/pm-pmu
 	rm -f debian/pm-utils/usr/share/man/man8/pm-pmu.8

Reply via email to