xref: /freebsd/usr.sbin/powerd/powerd.8 (revision db20dc4dbb9dd785871166dc1cfc1948aa355880)
15883360bSNate Lawson.\" Copyright (c) 2005 Nate Lawson
25883360bSNate Lawson.\" All rights reserved.
35883360bSNate Lawson.\"
45883360bSNate Lawson.\" Redistribution and use in source and binary forms, with or without
55883360bSNate Lawson.\" modification, are permitted provided that the following conditions
65883360bSNate Lawson.\" are met:
75883360bSNate Lawson.\" 1. Redistributions of source code must retain the above copyright
85883360bSNate Lawson.\"    notice, this list of conditions and the following disclaimer.
95883360bSNate Lawson.\" 2. Redistributions in binary form must reproduce the above copyright
105883360bSNate Lawson.\"    notice, this list of conditions and the following disclaimer in the
115883360bSNate Lawson.\"    documentation and/or other materials provided with the distribution.
125883360bSNate Lawson.\"
135883360bSNate Lawson.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
145883360bSNate Lawson.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
155883360bSNate Lawson.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
165883360bSNate Lawson.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
175883360bSNate Lawson.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
185883360bSNate Lawson.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
195883360bSNate Lawson.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
205883360bSNate Lawson.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
215883360bSNate Lawson.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
225883360bSNate Lawson.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
235883360bSNate Lawson.\" SUCH DAMAGE.
245883360bSNate Lawson.\"
255883360bSNate Lawson.\" $FreeBSD$
265883360bSNate Lawson.\"
2783c94dadSRuslan Ermilov.Dd April 10, 2005
285883360bSNate Lawson.Dt POWERD 8
295883360bSNate Lawson.Os
305883360bSNate Lawson.Sh NAME
315883360bSNate Lawson.Nm powerd
3283c94dadSRuslan Ermilov.Nd "system power control utility"
335883360bSNate Lawson.Sh SYNOPSIS
345883360bSNate Lawson.Nm
3583c94dadSRuslan Ermilov.Op Fl a Ar mode
3683c94dadSRuslan Ermilov.Op Fl b Ar mode
3783c94dadSRuslan Ermilov.Op Fl i Ar percent
3883c94dadSRuslan Ermilov.Op Fl n Ar mode
3983c94dadSRuslan Ermilov.Op Fl p Ar ival
4084148fd1SPawel Jakub Dawidek.Op Fl P Ar pidfile
4183c94dadSRuslan Ermilov.Op Fl r Ar percent
425883360bSNate Lawson.Op Fl v
435883360bSNate Lawson.Sh DESCRIPTION
445883360bSNate LawsonThe
455883360bSNate Lawson.Nm
465883360bSNate Lawsonutility monitors the system state and sets various power control options
475883360bSNate Lawsonaccordingly.
48db20dc4dSDag-Erling SmørgravIt offers three modes (maximum, minimum, and adaptive) that can be
495883360bSNate Lawsonindividually selected while on AC power or batteries.
505883360bSNate Lawson.Pp
515883360bSNate LawsonMaximum mode chooses the highest performance values.
525883360bSNate LawsonMinimum mode selects the lowest performance values to get the most power
535883360bSNate Lawsonsavings.
545883360bSNate LawsonAdaptive mode attempts to strike a balance by degrading performance when
555883360bSNate Lawsonthe system appears idle and increasing it when the system is busy.
565883360bSNate LawsonIt offers a good balance between a small performance loss for greatly
575883360bSNate Lawsonincreased power savings.
585883360bSNate LawsonThe default mode is
595883360bSNate Lawsonadaptive.
605883360bSNate Lawson.Pp
615883360bSNate LawsonThe
625883360bSNate Lawson.Nm
635883360bSNate Lawsonutility recognizes the following runtime options:
6483c94dadSRuslan Ermilov.Bl -tag -width ".Fl r Ar percent"
655883360bSNate Lawson.It Fl a Ar mode
665883360bSNate LawsonSelects the
675883360bSNate Lawson.Ar mode
685883360bSNate Lawsonto use while on AC power.
695883360bSNate Lawson.It Fl b Ar mode
705883360bSNate LawsonSelects the
715883360bSNate Lawson.Ar mode
725883360bSNate Lawsonto use while on battery power.
735883360bSNate Lawson.It Fl i Ar percent
745883360bSNate LawsonSpecifies the CPU idle percent level when
755883360bSNate Lawsonadaptive
765883360bSNate Lawsonmode should begin to degrade performance to save power.
77b3c9af56SNate LawsonThe default is 90% or higher.
785883360bSNate Lawson.It Fl n Ar mode
795883360bSNate LawsonSelects the
805883360bSNate Lawson.Ar mode
815883360bSNate Lawsonto use normally when the AC line state is unknown.
825883360bSNate Lawson.It Fl p Ar ival
835883360bSNate LawsonSpecifies a different polling interval (in milliseconds) for AC line state
845883360bSNate Lawsonand system idle levels.
855883360bSNate LawsonThe default is 500 ms.
8684148fd1SPawel Jakub Dawidek.It Fl P
8784148fd1SPawel Jakub DawidekSpecify an alternative file in which to store the process ID.
8884148fd1SPawel Jakub DawidekThe default is
8984148fd1SPawel Jakub Dawidek.Pa /var/run/powerd.pid .
905883360bSNate Lawson.It Fl r Ar percent
915883360bSNate LawsonSpecifies the CPU idle percent level where
925883360bSNate Lawsonadaptive
935883360bSNate Lawsonmode should consider the CPU running and increase performance.
942f8ad6c0SNate LawsonThe default is 65% or lower.
955883360bSNate Lawson.It Fl v
965883360bSNate LawsonVerbose mode.
975883360bSNate LawsonMessages about power changes will be printed to stdout and
985883360bSNate Lawson.Nm
995883360bSNate Lawsonwill operate in the foreground.
1005883360bSNate Lawson.El
1015883360bSNate Lawson.Sh SEE ALSO
1025883360bSNate Lawson.Xr acpi 4 ,
1035883360bSNate Lawson.Xr apm 4 ,
1045883360bSNate Lawson.Xr cpufreq 4
1055883360bSNate Lawson.Sh HISTORY
1065883360bSNate LawsonThe
1075883360bSNate Lawson.Nm
1085883360bSNate Lawsonutility first appeared in
1095883360bSNate Lawson.Fx 5.5 .
1105883360bSNate Lawson.Sh AUTHORS
11183c94dadSRuslan Ermilov.An -nosplit
1125883360bSNate Lawson.An Colin Percival
1135883360bSNate Lawsonfirst wrote
11483c94dadSRuslan Ermilov.Nm estctrl ,
1155883360bSNate Lawsonthe utility that
1165883360bSNate Lawson.Nm
1175883360bSNate Lawsonis based on.
1185883360bSNate Lawson.An Nate Lawson
1195883360bSNate Lawsonthen updated it for
1205883360bSNate Lawson.Xr cpufreq 4 ,
1217f2f0628SChristian Bruefferadded features, and wrote this manual page.
1225883360bSNate Lawson.Sh BUGS
1235883360bSNate LawsonThe
1245883360bSNate Lawson.Nm
1255883360bSNate Lawsonutility should also power down idle disks and other components besides the CPU.
1265883360bSNate Lawson.Pp
1275883360bSNate LawsonIf
1285883360bSNate Lawson.Nm
12983c94dadSRuslan Ermilovis used with
13083c94dadSRuslan Ermilov.Pa power_profile ,
13183c94dadSRuslan Ermilovthey may override each other.
1325883360bSNate Lawson.Pp
13383c94dadSRuslan ErmilovThe
1345883360bSNate Lawson.Nm
13583c94dadSRuslan Ermilovutility
1365883360bSNate Lawsonshould probably use the
1375883360bSNate Lawson.Xr devctl 4
1385883360bSNate Lawsoninterface instead of polling for AC line state.
139