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.
-n
zzz
will just sleep for a few seconds.-S
-z
zzz
.-Z
ZZZ
.-R
-H
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
.
zzz
locks /sys/power
during operation. Perhaps a hook is stuck?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 |