From d236cb7726998026051dc4b47b4f5b790974e2bb Mon Sep 17 00:00:00 2001 From: paco Date: Sun, 16 May 2021 06:46:57 +0000 Subject: [PATCH] mention apmd(8) in afterboot(8) input and ok jmc@ --- share/man/man8/afterboot.8 | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/share/man/man8/afterboot.8 b/share/man/man8/afterboot.8 index 8b4079f857d..4a7be827a23 100644 --- a/share/man/man8/afterboot.8 +++ b/share/man/man8/afterboot.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: afterboot.8,v 1.168 2020/12/29 12:28:23 mglocker Exp $ +.\" $OpenBSD: afterboot.8,v 1.169 2021/05/16 06:46:57 paco Exp $ .\" .\" Copyright (c) 1997 Marshall M. Midden .\" All rights reserved. @@ -29,7 +29,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: December 29 2020 $ +.Dd $Mdocdate: May 16 2021 $ .Dt AFTERBOOT 8 .\" Originally created by Marshall M. Midden -- 1997-10-20, m4@umn.edu .Os @@ -418,6 +418,17 @@ Normal recording can be enabled by adding the following directives to kern.audio.record=1 kern.video.record=1 .Ed +.Ss Power management +If the BIOS supports it, +.Xr apmd 8 +can be configured to act on different events and adjust device performance. +In the following example it is configured to start on boot in automatic +performance adjustment mode and suspend the system if no AC is connected and +the estimated battery life is equal or below 15%: +.Bd -literal -offset indent +# rcctl set apmd status on +# rcctl set apmd flags -A -z 15 +.Ed .Ss Mail aliases Edit .Pa /etc/mail/aliases -- 2.20.1