7 .Nd suspend or hibernate your computer
15 is a simple script to suspend or hibernate your computer.
16 It supports hooks before and after suspending.
17 .Bl -tag -width indent
20 Instead of performing an ACPI action,
22 will just sleep for a few seconds.
24 Enter low-power idle mode (ACPI S0, kernel name "freeze").
26 Enter suspend to RAM mode (ACPI S3, kernel name "mem").
27 This is the default for
30 Enter hibernate to disk mode (ACPI S4, kernel name "disk") and power off.
31 This is the default for
34 Enter hibernate to disk mode and reboot.
35 This can be used to switch operating systems.
37 Enter hibernate to disk mode and suspend.
38 This is also know as suspend-hybrid.
43 runs the executable files in
44 .Pa /etc/zzz.d/suspend
45 in alphanumeric order.
48 runs the executable files in
50 in alphanumeric order (not in reverse order!).
52 The environment variable
54 can be used in these hooks to differentiate between
60 .Bl -tag -width indent
61 .It suspend/hibernate not supported
62 The hardware does not support ACPI S3/S4 with this kernel.
63 .It sleep permission denied
64 You lack sufficent privilege to write to
65 .Pa /sys/power/state .
66 .It another instance of zzz is running
71 Perhaps a hook is stuck?
73 The system has woken up again.
94 is in the public domain.