1.Dd July 25, 2014 2.Dt ZZZ 8 3.Os Linux 4.Sh NAME 5.Nm zzz , 6.Nd suspend or hibernate your computer 7.Sh SYNOPSIS 8.Nm zzz 9.Op Fl nSzZR10.Sh DESCRIPTION11.Nm12is a simple script to suspend or hibernate your computer.13It supports hooks before and after suspending.14.Bl -tag -width indent15.It Fl n16dry-run mode.17Instead of performing an ACPI action,18.Nm19will just sleep for a few seconds.20.It Fl S21Enter low-power idle mode (ACPI S0, kernel name "freeze").22.It Fl z23Enter suspend to RAM mode (ACPI S3, kernel name "mem").24This is the default behaviour.25.It Fl Z26Enter hibernate to disk mode (ACPI S4, kernel name "disk") and power off.27.It Fl R28Enter hibernate to disk mode and reboot.29This can be used to switch operating systems.30.El31.Sh DIAGNOSTICS32.Bl -tag -width indent33.It suspend/hibernate not supported34The hardware does not support ACPI S3/S4 with this kernel.35.It sleep permission denied36You lack sufficent privilege to write to37.Pa /sys/power/state .38.It another instance of zzz is running39.Nm40locks41.Pa /sys/power42during operation.43Perhaps a hook is stuck?44.Sh SEE ALSO45.Xr pm-action 8 ,46.Xr s2disk 8 ,47.Xr s2ram 8 ,48OpenBSD's49.Xr apm 850.Sh HISTORY51A similar52.Nm apm53command appeared in54.Nx 1.355and56.Ox 1.2 .57.Sh AUTHOR58.An Christian Neukirchen ,59.Mt chneukirchen@gmail.com .60.Sh LICENSE61.Nm62is in the public domain.