summaryrefslogtreecommitdiff
path: root/pm
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-03-13 10:01:31 -0500
committerVictor Lowther <victor.lowther@gmail.com>2008-03-13 10:01:31 -0500
commit8626bbd7551f8342abc7536899f55f49fd0820e9 (patch)
treef2f93e0227349e2d20ff238096e35d9b350d24ce /pm
parenta30d46c64050f919f96baf626ae13d79d1023317 (diff)
Updated HOWTO.modules to mention before_hook.
Sleep module writers, take note.
Diffstat (limited to 'pm')
-rw-r--r--pm/HOWTO.modules6
1 files changed, 6 insertions, 0 deletions
diff --git a/pm/HOWTO.modules b/pm/HOWTO.modules
index 3cecdcd..0237d0e 100644
--- a/pm/HOWTO.modules
+++ b/pm/HOWTO.modules
@@ -52,3 +52,9 @@ define 2 functions:
suspend_hybrid sleep.
do_suspend_hybrid SHOULD utilize hibernate_might_work if it is present.
+
+OTHER STUFF:
+
+If you define a function named "before_hook", that function will be executed
+just before the sleep/resume hooks are executed. If you need to disable a hook,
+this is the place to do it.