aports

Custom Alpine Linux aports

git clone https://git.8pit.net/aports.git

 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 nSzZR
10.Sh DESCRIPTION
11.Nm
12is a simple script to suspend or hibernate your computer.
13It supports hooks before and after suspending.
14.Bl -tag -width indent
15.It Fl n
16dry-run mode.
17Instead of performing an ACPI action,
18.Nm
19will just sleep for a few seconds.
20.It Fl S
21Enter low-power idle mode (ACPI S0, kernel name "freeze").
22.It Fl z
23Enter suspend to RAM mode (ACPI S3, kernel name "mem").
24This is the default behaviour.
25.It Fl Z
26Enter hibernate to disk mode (ACPI S4, kernel name "disk") and power off.
27.It Fl R
28Enter hibernate to disk mode and reboot.
29This can be used to switch operating systems.
30.El
31.Sh DIAGNOSTICS
32.Bl -tag -width indent
33.It suspend/hibernate not supported
34The hardware does not support ACPI S3/S4 with this kernel.
35.It sleep permission denied
36You lack sufficent privilege to write to
37.Pa /sys/power/state .
38.It another instance of zzz is running
39.Nm
40locks
41.Pa /sys/power
42during operation.
43Perhaps a hook is stuck?
44.Sh SEE ALSO
45.Xr pm-action 8 ,
46.Xr s2disk 8 ,
47.Xr s2ram 8 ,
48OpenBSD's
49.Xr apm 8
50.Sh HISTORY
51A similar
52.Nm apm
53command appeared in
54.Nx 1.3
55and
56.Ox 1.2 .
57.Sh AUTHOR
58.An Christian Neukirchen ,
59.Mt chneukirchen@gmail.com .
60.Sh LICENSE
61.Nm
62is in the public domain.