summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-11-30 10:19:24 -0600
committerVictor Lowther <victor.lowther@gmail.com>2008-11-30 18:23:26 -0600
commitdb9fd15445ee7c2eeb873b06cf89da15442d8e67 (patch)
tree93d8126998f0933cfcaa805a3673718cd6106e9f
parent7dd6fe1ae1da23e5c051ca175b2834c5e5eef7ae (diff)
Added notes on how to minimized user impact.
After all, user perception of these things is our reality.
-rw-r--r--pm/HOWTO.hooks13
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