ZZZ(8)
π€ ZZZ(8) π€ β zzz, ZZZ: suspend or hibernate your computer π«Ά
β¨ NAME β¨
zzz, ZZZ β suspend or hibernate your computer. No cap, thatβs the whole mission. π
πΈ SYNOPSIS πΈ
zzz [-v] [-n|s|S|z|Z|H|X|R|V|h]
ZZZ [-v] [-n|s|S|z|Z|H|X|R|V|h]
π¦ DESCRIPTION π¦
Okay so zzz is a simple program to suspend or hibernate your computer. It supports hooks before and after suspending. Like, it handles the sleepy-time vibes and lets your hook scripts do their little routines around it. β¨
π OPTIONS π
-nβ Dry-run mode. Instead of performing an ACPI action,zzzwill just sleep for a few seconds. Pretend nap era, lowkey iconic. π΄-s,-Sβ Enter low-power idle mode (ACPI S1, kernel namefreeze). Chill mode activated. π§-zβ Enter suspend to RAM mode (ACPI S3, kernel namemem). This is the default forzzz. π«Ά-Zβ Enter hibernate to disk mode (ACPI S4, kernel namedisk) and power off. This is the default forZZZ. π€-Hβ Enter hibernate to disk mode and suspend. This is also known as suspend-hybrid. Hybrid queen behavior. π-Xβ Enter hibernate to disk mode and shutdown. This can be used when ACPI S4 mode causes issues. Emergency vibe check. π¨-Rβ Enter hibernate to disk mode and reboot. This can be used to switch operating systems. Reboot era. π-vβ Be verbose. Give me all the lore. π£οΈ-Vβ Print program name & version and exit. Little identity check. πͺͺ-hβ Print help message and exit. Help bestie out. π
π FILES π
/etc/zzz.d/*β Hook scripts found in this directory are executed before/after the system is suspended/resumed byzzz. β¨/etc/zzz.d/suspend/*β Hook scripts found in this directory are executed before the system is suspended byzzz. This directory is supported for compatibility withzzz(8)on Void Linux. π§/etc/zzz.d/resume/*β Hook scripts found in this directory are executed after the system is resumed. This directory is supported for compatibility withzzz(8)on Void Linux. π§
The hook script is a regular file (or a symlink) owned by root, executable by the owner and not writeable by others. Any other files found in the aforesaid directories are ignored. Rules are rules, bestie. π«‘
The hook scripts are executed sequentially in alphabetic order with two arguments:
- βpreβ (before suspend), or βpostβ (after resume),
- the same as
ZZZ_MODE(see below).
And the following environment variables:
ZZZ_MODEβ The selected suspend mode; one of βhibernateβ, βnoopβ, βstandbyβ, or βsuspendβ.ZZZ_HIBERNATE_MODEβ The selected hibernate mode: βplatformβ, βrebootβ, βshutdownβ, or βsuspendβ.
π EXIT CODES π
0β Clean exit, no error has encountered. Slay. β1β General error. Oop. π10β Invalid usage. Bestie, the syntax said no. π11β The requested sleep state or hibernation mode is not supported or you donβt have insufficient privileges.12β Unable to obtain lock; another instance ofzzzis running. One at a time, main character. π20β Failed to put system to sleep. The nap did not happen. π21β Some hook script exited with a non-zero code. Note thatzzzdoes not stop when a hook script fails. It keeps going, fr fr. πΆββοΈ
π LOGGING π
Information and debug messages are printed to STDOUT, error messages are printed to STDERR. All messages are also logged to syslog with ident string zzz and facility code 1 (user). Receipts everywhere. π§Ύ
Debug messages are not printed and logged unless -v is specified. So if you want the deep lore, say -v. π
π°οΈ HISTORY π°οΈ
This program is inspired from zzz(8) script in Void Linux written by Leah Neukirchen. Respect the ancestors. π«Ά
π AUTHORS π
Jakub Jirutka. Icon. β¨
π REPORTING BUGS π
Report bugs to the projectβs issue tracker at https://github.com/jirutka/zzz/issues. Tell them everything, bestie. π«‘
π Thatβs the whole manual, bestie. Page date:2024-08-15; manual:ZZZ(8). Go suspend something iconic. π β¨
π¦ where this page comes from
- alpine 3.24: zzz-doc 0.2.0-r0 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms