From bf4f3e0cce274f95e76d88fed3e337d87822e363 Mon Sep 17 00:00:00 2001 From: Victor Lowther Date: Mon, 3 Mar 2008 18:28:17 -0600 Subject: Updated the HOWTO.hooks to document the help parameter. Also added a section dealing with suspend_hybrid. --- pm/HOWTO.hooks | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pm/HOWTO.hooks') diff --git a/pm/HOWTO.hooks b/pm/HOWTO.hooks index 43fe40d..0ce10de 100644 --- a/pm/HOWTO.hooks +++ b/pm/HOWTO.hooks @@ -6,12 +6,19 @@ A pm-utils hook is simply an executable file that accepts a single parameter. For hooks in sleep.d, the potential values of that parameter are: suspend -- The hook MUST perform whatever action is appropriate when the system is preparing for S3 sleep (or its equivalent). +suspend_hybrid -- The hook MUST perform whatever action is appropriate + when entering suspend mode. The hook SHOULD also save + any state it may need to bring the system back from + hibernate mode. resume -- The hook MUST perform whatever action is appropriate when the system is coming out of suspend. hibernate -- The hook MUST perform whatever action is appropriate when the system is preparing for suspend-to-disk. thaw -- The hook MUST perform whatever action is appropriate when the system is coming out of suspend-to-disk. +help -- If your hook parses the PM_CMDLINE environment variable for switches, + this function SHOULD output text describing the parameters it parses + in a format easily understandable by an end-user. For hooks in power.d, the potential values of that parameter are: true -- the hook MUST perform whatever action is appropriate when the system -- cgit v1.2.3