mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 10:19:26 +00:00
Add an abbreviation for adaptive mode, and document all the abreviations.
This commit is contained in:
parent
f27ca6ea2f
commit
dc70a966e3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=179932
@ -47,6 +47,7 @@ utility monitors the system state and sets various power control options
|
||||
accordingly.
|
||||
It offers three modes (maximum, minimum, and adaptive) that can be
|
||||
individually selected while on AC power or batteries.
|
||||
The modes maximum, minimum, and adaptive may be abbreviated max, min, adp.
|
||||
.Pp
|
||||
Maximum mode chooses the highest performance values.
|
||||
Minimum mode selects the lowest performance values to get the most power
|
||||
|
@ -339,7 +339,7 @@ parse_mode(char *arg, int *mode, int ch)
|
||||
*mode = MODE_MIN;
|
||||
else if (strcmp(arg, "maximum") == 0 || strcmp(arg, "max") == 0)
|
||||
*mode = MODE_MAX;
|
||||
else if (strcmp(arg, "adaptive") == 0)
|
||||
else if (strcmp(arg, "adaptive") == 0 || strcmp(arg, "adp") == 0)
|
||||
*mode = MODE_ADAPTIVE;
|
||||
else
|
||||
errx(1, "bad option: -%c %s", (char)ch, optarg);
|
||||
|
Loading…
Reference in New Issue
Block a user