-.\" $OpenBSD: apm.8,v 1.44 2021/11/03 19:54:28 jmc Exp $
+.\" $OpenBSD: apm.8,v 1.45 2022/02/13 21:27:51 jmc Exp $
.\"
.\" Copyright (c) 1996 John T. Kohl
.\" All rights reserved.
.\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: November 3 2021 $
+.Dd $Mdocdate: February 13 2022 $
.Dt APM 8
.Os
.Sh NAME
.It Fl A
Switch to automatic performance adjustment mode (the default).
.It Fl a
-Display the external charger (A/C status).
+Display the external charger (AC) status.
0 means disconnected, 1
means connected, 2 means backup power source, and 255 means unknown.
.It Fl b
.Va hw.setperf
to 0.
.It Fl l
-Display the estimated battery lifetime (in percent).
+Display the estimated battery lifetime, in percent.
.It Fl m
-Display the estimated battery lifetime (in minutes).
+Display the estimated battery lifetime, in minutes.
+If charging, the estimated time to fully charge is displayed instead.
.It Fl P
Display the performance adjustment mode.
0 means manual mode.
-/* $OpenBSD: apm.c,v 1.40 2022/02/06 09:07:42 robert Exp $ */
+/* $OpenBSD: apm.c,v 1.41 2022/02/13 21:27:51 jmc Exp $ */
/*
* Copyright (c) 1996 John T. Kohl
}
if (doac)
- printf("A/C adapter state: %s\n",
+ printf("AC adapter state: %s\n",
ac_state(reply.batterystate.ac_state));
if (doperf)