diff options
author | Nikolay Sturm <sturm@cvs.openbsd.org> | 2006-03-15 20:30:29 +0000 |
---|---|---|
committer | Nikolay Sturm <sturm@cvs.openbsd.org> | 2006-03-15 20:30:29 +0000 |
commit | 5d566994237591142b6ec4faf4cc9550660081e2 (patch) | |
tree | dc251d380884474509d8af78e402a221df98d1f6 /usr.sbin/apm | |
parent | 114010020db8185a708ae738108cf94e5781f763 (diff) |
consistently use power *states* and performance *modes*
ok beck, mickey
Diffstat (limited to 'usr.sbin/apm')
-rw-r--r-- | usr.sbin/apm/apm.8 | 19 | ||||
-rw-r--r-- | usr.sbin/apm/apm.c | 8 |
2 files changed, 13 insertions, 14 deletions
diff --git a/usr.sbin/apm/apm.8 b/usr.sbin/apm/apm.8 index 6f17c9db32e..5f907ef0032 100644 --- a/usr.sbin/apm/apm.8 +++ b/usr.sbin/apm/apm.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: apm.8,v 1.28 2006/03/07 05:24:36 deraadt Exp $ +.\" $OpenBSD: apm.8,v 1.29 2006/03/15 20:30:27 sturm Exp $ .\" .\" Copyright (c) 1996 John T. Kohl .\" All rights reserved. @@ -99,13 +99,13 @@ to .It Fl H Set .Xr apmd 8 -to high performance mode and +to manual performance adjustment mode and .Va hw.setperf to 100. .It Fl L Set .Xr apmd 8 -to low performance mode and +to manual performance adjustment mode and .Va hw.setperf to 0. .It Fl l @@ -114,28 +114,27 @@ Display the estimated battery lifetime (in percent). Display the estimated battery lifetime (in minutes). .It Fl P Display the performance adjustment mode. -0 means uninitialized, 1 means low performance mode, 2 means high performance -mode, 3 means automatic mode, and 4 means cool running mode. +0 means manual mode, 1 means automatic mode, and 2 means cool running mode. .It Fl S -Put the system into stand-by (light sleep) mode. +Put the system into stand-by (light sleep) state. .It Fl v Request more verbose description of the displayed states. .It Fl z -Put the system into suspend (deep sleep) mode. +Put the system into suspend (deep sleep) state. .El .Pp The .Nm zzz -variant on this command is an alternative for suspending the system. +variant of this command is an alternative for suspending the system. With no arguments, .Nm zzz -places the system into suspend mode. +places the system into suspend state. The command line flags serve the same purpose as for the .Nm variant of this command. .Pp This command does not wait for positive confirmation that the requested -mode has been entered; to do so would mean the command does not return +state has been entered; to do so would mean the command does not return until the system resumes from its sleep state. .Sh FILES .Bl -tag -width /var/run/apmdev -compact diff --git a/usr.sbin/apm/apm.c b/usr.sbin/apm/apm.c index a9e46f8879d..c27af0328f1 100644 --- a/usr.sbin/apm/apm.c +++ b/usr.sbin/apm/apm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apm.c,v 1.19 2006/03/06 15:21:05 mickey Exp $ */ +/* $OpenBSD: apm.c,v 1.20 2006/03/15 20:30:27 sturm Exp $ */ /* * Copyright (c) 1996 John T. Kohl @@ -277,7 +277,7 @@ main(int argc, char *argv[]) printf("%d\n", reply.batterystate.ac_state); if (doperf) - printf("%d\n", reply.perfstate); + printf("%d\n", reply.perfmode); break; } @@ -346,8 +346,8 @@ main(int argc, char *argv[]) ac_state(reply.batterystate.ac_state)); if (doperf) - printf("Performance state: %s (%d MHz)\n", - perf_state(reply.perfstate), reply.cpuspeed); + printf("Performance adjustment mode: %s (%d MHz)\n", + perf_mode(reply.perfmode), reply.cpuspeed); break; default: break; |