| 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.
-nzzz will just sleep for a few seconds.-S-zzzz.-ZZZZ.-R-HBefore 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,
resume, and hibernate. If
the value is hibernate, then ZZZ_HIBERNATE_MODE can
be used to differentiate between platform,
reboot, and suspend
hibernation modes.
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 |