[Pm-utils] [PATCH 12/12] Proposed pm-utils 1.2.3 patches, take 2
Victor Lowther
victor.lowther at gmail.com
Sun Nov 30 16:33:29 PST 2008
Added notes on how to minimize user impact.
After all, user perception of these things is our reality.
---
pm/HOWTO.hooks | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/pm/HOWTO.hooks b/pm/HOWTO.hooks
index 550afd9..a506759 100644
--- a/pm/HOWTO.hooks
+++ b/pm/HOWTO.hooks
@@ -75,6 +75,19 @@ At or before 50, you can assume that all services are still enabled.
At or before 75, you can assume that all modules are still loaded.
+SUSPEND FAST PATH
+
+When suspending the system to memory, most of the time is used to synchronize
+the disks and perform the actual sleep process in kernel space.
+On modern systems, these steps generally only take 1 - 3 seconds. Since
+just about every laptop user wants their system to sleep and wake up as fast
+as possible, you should minimize the amount of work done during suspend and
+during resume before we switch vts back to the original vt.
+
+If you have something to do that will take lots of time, try to run it during
+resume after the 90chvt hook runs -- that will minimize the impact we have on
+resume time.
+
CONVENIENCE FUNCTIONS
If your hook is a shell script that supports POSIX/SuS compatible syntax, you
--
1.6.0.4
More information about the Pm-utils
mailing list