Manual Page Search Parameters

ZZZ(8) System Manager's Manual ZZZ(8)

zzz, ZZZ
suspend or hibernate your computer

zzz [
-nSzZRH
]

ZZZ [
-nSzZRH
]

zzz is a simple script to suspend or hibernate your computer. It supports hooks before and after suspending.
 
 
dry-run mode. Instead of performing an ACPI action, zzz will just sleep for a few seconds.
 
 
Enter low-power idle mode (ACPI S0, kernel name "freeze").
 
 
Enter suspend to RAM mode (ACPI S3, kernel name "mem"). This is the default for zzz.
 
 
Enter hibernate to disk mode (ACPI S4, kernel name "disk") and power off. This is the default for ZZZ.
 
 
Enter hibernate to disk mode and reboot. This can be used to switch operating systems.
 
 
Enter hibernate to disk mode and suspend. This is also know as suspend-hybrid.

Before suspending, zzz runs the executable files in /etc/zzz.d/suspend in alphanumeric order. After suspending, zzz runs the executable files in /etc/zzz.d/resume in alphanumeric order (not in reverse order!).
The environment variable ZZZ_MODE can be used in these hooks to differentiate between standby, suspend, and resume.

 
 
suspend/hibernate not supported
The hardware does not support ACPI S3/S4 with this kernel.
 
 
sleep permission denied
You lack sufficent privilege to write to /sys/power/state.
 
 
another instance of zzz is running
zzz locks /sys/power during operation. Perhaps a hook is stuck?
 
 
Zzzz... yawn.
The system has woken up again. Everything is fine. You feel refreshed.

pm-action(8), s2disk(8), s2ram(8), OpenBSD's apm(8)

A similar apm command appeared in NetBSD 1.3 and OpenBSD 1.2.

Leah Neukirchen, leah@vuxu.org.

zzz is in the public domain.
July 25, 2014 Linux