xref: /freebsd/usr.sbin/powerd/powerd.8 (revision 5c81ba5adecacb287a05232e31154d4043d12b08)
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.\"
27*5c81ba5aSAndriy Voskoboinyk.Dd January 6, 2019
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
38cf2280acSRebecca Cran.Op Fl m Ar freq
39cf2280acSRebecca Cran.Op Fl M Ar freq
4083c94dadSRuslan Ermilov.Op Fl n Ar mode
4183c94dadSRuslan Ermilov.Op Fl p Ar ival
4284148fd1SPawel Jakub Dawidek.Op Fl P Ar pidfile
4383c94dadSRuslan Ermilov.Op Fl r Ar percent
44*5c81ba5aSAndriy Voskoboinyk.Op Fl s Ar source
455883360bSNate Lawson.Op Fl v
465883360bSNate Lawson.Sh DESCRIPTION
475883360bSNate LawsonThe
485883360bSNate Lawson.Nm
495883360bSNate Lawsonutility monitors the system state and sets various power control options
505883360bSNate Lawsonaccordingly.
5127f90bebSWarren BlockIt offers power-saving modes that can be
5227f90bebSWarren Blockindividually selected for operation on AC power or batteries.
5327f90bebSWarren Block.Bl -tag -width ".Ar hiadaptive"
5427f90bebSWarren Block.It Ar maximum
5527f90bebSWarren BlockChoose the highest performance values.
5627f90bebSWarren BlockMay be abbreviated as
5727f90bebSWarren Block.Ar max .
5827f90bebSWarren Block.It Ar minimum
5927f90bebSWarren BlockChoose the lowest performance values to get the most power savings.
6027f90bebSWarren BlockMay be abbreviated as
6127f90bebSWarren Block.Ar min .
6227f90bebSWarren Block.It Ar adaptive
6327f90bebSWarren BlockAttempt to strike a balance by degrading performance when the system
6427f90bebSWarren Blockappears idle and increasing it when the system is busy.
655883360bSNate LawsonIt offers a good balance between a small performance loss for greatly
665883360bSNate Lawsonincreased power savings.
6727f90bebSWarren BlockMay be abbreviated as
6827f90bebSWarren Block.Ar adp .
6927f90bebSWarren Block.It Ar hiadaptive
7027f90bebSWarren BlockLike
7127f90bebSWarren Block.Ar adaptive
7227f90bebSWarren Blockmode, but tuned for systems where performance and interactivity are
7327f90bebSWarren Blockmore important than power consumption.
7427f90bebSWarren BlockIt increases frequency faster, reduces frequency less aggressively, and
75484b7a09SGavin Atkinsonwill maintain full frequency for longer.
7627f90bebSWarren BlockMay be abbreviated as
7727f90bebSWarren Block.Ar hadp .
7827f90bebSWarren Block.El
795883360bSNate Lawson.Pp
8027f90bebSWarren BlockThe default mode is
8127f90bebSWarren Block.Ar adaptive
8227f90bebSWarren Blockfor battery power and
8327f90bebSWarren Block.Ar hiadaptive
8427f90bebSWarren Blockfor the rest.
8527f90bebSWarren Block.Pp
865883360bSNate Lawson.Nm
8727f90bebSWarren Blockrecognizes these runtime options:
8883c94dadSRuslan Ermilov.Bl -tag -width ".Fl r Ar percent"
895883360bSNate Lawson.It Fl a Ar mode
905883360bSNate LawsonSelects the
915883360bSNate Lawson.Ar mode
925883360bSNate Lawsonto use while on AC power.
935883360bSNate Lawson.It Fl b Ar mode
945883360bSNate LawsonSelects the
955883360bSNate Lawson.Ar mode
965883360bSNate Lawsonto use while on battery power.
975883360bSNate Lawson.It Fl i Ar percent
98dbd31977SAlexander MotinSpecifies the CPU load percent level when adaptive
995883360bSNate Lawsonmode should begin to degrade performance to save power.
100dbd31977SAlexander MotinThe default is 50% or lower.
101cf2280acSRebecca Cran.It Fl m Ar freq
102cf2280acSRebecca CranSpecifies the minimum frequency to throttle down to.
103cf2280acSRebecca Cran.It Fl M Ar freq
104cf2280acSRebecca CranSpecifies the maximum frequency to throttle up to.
1055883360bSNate Lawson.It Fl n Ar mode
1065883360bSNate LawsonSelects the
1075883360bSNate Lawson.Ar mode
1085883360bSNate Lawsonto use normally when the AC line state is unknown.
1095883360bSNate Lawson.It Fl p Ar ival
1105883360bSNate LawsonSpecifies a different polling interval (in milliseconds) for AC line state
1115883360bSNate Lawsonand system idle levels.
112dbd31977SAlexander MotinThe default is 250 ms.
113177b9d3bSPawel Jakub Dawidek.It Fl P Ar pidfile
114177b9d3bSPawel Jakub DawidekSpecifies an alternative file in which the process ID should be stored.
11584148fd1SPawel Jakub DawidekThe default is
11684148fd1SPawel Jakub Dawidek.Pa /var/run/powerd.pid .
1175883360bSNate Lawson.It Fl r Ar percent
118dbd31977SAlexander MotinSpecifies the CPU load percent level where adaptive
1195883360bSNate Lawsonmode should consider the CPU running and increase performance.
1205d8e279eSTom RhodesThe default is 75% or higher.
121*5c81ba5aSAndriy Voskoboinyk.It Fl s Ar source
122*5c81ba5aSAndriy VoskoboinykEnforces method for AC line state refresh; by default, it is chosen
123*5c81ba5aSAndriy Voskoboinykautomatically.
124*5c81ba5aSAndriy VoskoboinykThe set of valid methods is
125*5c81ba5aSAndriy Voskoboinyk.Cm sysctl , devd
126*5c81ba5aSAndriy Voskoboinykand
127*5c81ba5aSAndriy Voskoboinyk.Cm apm
128*5c81ba5aSAndriy Voskoboinyk(i386 only).
1295883360bSNate Lawson.It Fl v
1305883360bSNate LawsonVerbose mode.
1315883360bSNate LawsonMessages about power changes will be printed to stdout and
1325883360bSNate Lawson.Nm
1335883360bSNate Lawsonwill operate in the foreground.
1345883360bSNate Lawson.El
1355883360bSNate Lawson.Sh SEE ALSO
1365883360bSNate Lawson.Xr acpi 4 ,
1375883360bSNate Lawson.Xr apm 4 ,
1385883360bSNate Lawson.Xr cpufreq 4
1395883360bSNate Lawson.Sh HISTORY
1405883360bSNate LawsonThe
1415883360bSNate Lawson.Nm
1425883360bSNate Lawsonutility first appeared in
14319797b22SJoel Dahl.Fx 6.0 .
1445883360bSNate Lawson.Sh AUTHORS
14583c94dadSRuslan Ermilov.An -nosplit
1465883360bSNate Lawson.An Colin Percival
1475883360bSNate Lawsonfirst wrote
14883c94dadSRuslan Ermilov.Nm estctrl ,
1495883360bSNate Lawsonthe utility that
1505883360bSNate Lawson.Nm
1515883360bSNate Lawsonis based on.
1525883360bSNate Lawson.An Nate Lawson
1535883360bSNate Lawsonthen updated it for
1545883360bSNate Lawson.Xr cpufreq 4 ,
1557f2f0628SChristian Bruefferadded features, and wrote this manual page.
1565883360bSNate Lawson.Sh BUGS
1575883360bSNate LawsonThe
1585883360bSNate Lawson.Nm
1595883360bSNate Lawsonutility should also power down idle disks and other components besides the CPU.
1605883360bSNate Lawson.Pp
1615883360bSNate LawsonIf
1625883360bSNate Lawson.Nm
16383c94dadSRuslan Ermilovis used with
16483c94dadSRuslan Ermilov.Pa power_profile ,
16583c94dadSRuslan Ermilovthey may override each other.
1665883360bSNate Lawson.Pp
16783c94dadSRuslan ErmilovThe
1685883360bSNate Lawson.Nm
16983c94dadSRuslan Ermilovutility
1705883360bSNate Lawsonshould probably use the
1715883360bSNate Lawson.Xr devctl 4
1725883360bSNate Lawsoninterface instead of polling for AC line state.
173