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.\" 25*28111ddfSMateusz Piotrowski.Dd February 25, 2023 265883360bSNate Lawson.Dt POWERD 8 275883360bSNate Lawson.Os 285883360bSNate Lawson.Sh NAME 295883360bSNate Lawson.Nm powerd 3083c94dadSRuslan Ermilov.Nd "system power control utility" 315883360bSNate Lawson.Sh SYNOPSIS 325883360bSNate Lawson.Nm 3383c94dadSRuslan Ermilov.Op Fl a Ar mode 3483c94dadSRuslan Ermilov.Op Fl b Ar mode 3583c94dadSRuslan Ermilov.Op Fl i Ar percent 36cf2280acSRebecca Cran.Op Fl M Ar freq 3798b486dcSMateusz Piotrowski.Op Fl m Ar freq 38d9138286SColin Percival.Op Fl N 3983c94dadSRuslan Ermilov.Op Fl n Ar mode 4084148fd1SPawel Jakub Dawidek.Op Fl P Ar pidfile 4198b486dcSMateusz Piotrowski.Op Fl p Ar ival 4283c94dadSRuslan Ermilov.Op Fl r Ar percent 435c81ba5aSAndriy Voskoboinyk.Op Fl s Ar source 445883360bSNate Lawson.Op Fl v 455883360bSNate Lawson.Sh DESCRIPTION 465883360bSNate LawsonThe 475883360bSNate Lawson.Nm 485883360bSNate Lawsonutility monitors the system state and sets various power control options 495883360bSNate Lawsonaccordingly. 5027f90bebSWarren BlockIt offers power-saving modes that can be 5127f90bebSWarren Blockindividually selected for operation on AC power or batteries. 5298b486dcSMateusz Piotrowski.Bl -tag -width "hiadaptive" 5398b486dcSMateusz Piotrowski.It Cm maximum 5427f90bebSWarren BlockChoose the highest performance values. 5527f90bebSWarren BlockMay be abbreviated as 5698b486dcSMateusz Piotrowski.Cm max . 5798b486dcSMateusz Piotrowski.It Cm minimum 5827f90bebSWarren BlockChoose the lowest performance values to get the most power savings. 5927f90bebSWarren BlockMay be abbreviated as 6098b486dcSMateusz Piotrowski.Cm min . 6198b486dcSMateusz Piotrowski.It Cm adaptive 6227f90bebSWarren BlockAttempt to strike a balance by degrading performance when the system 6327f90bebSWarren Blockappears idle and increasing it when the system is busy. 645883360bSNate LawsonIt offers a good balance between a small performance loss for greatly 655883360bSNate Lawsonincreased power savings. 6627f90bebSWarren BlockMay be abbreviated as 6798b486dcSMateusz Piotrowski.Cm adp . 6898b486dcSMateusz Piotrowski.It Cm hiadaptive 6927f90bebSWarren BlockLike 7098b486dcSMateusz Piotrowski.Cm adaptive 7127f90bebSWarren Blockmode, but tuned for systems where performance and interactivity are 7227f90bebSWarren Blockmore important than power consumption. 7327f90bebSWarren BlockIt increases frequency faster, reduces frequency less aggressively, and 74484b7a09SGavin Atkinsonwill maintain full frequency for longer. 7527f90bebSWarren BlockMay be abbreviated as 7698b486dcSMateusz Piotrowski.Cm hadp . 7727f90bebSWarren Block.El 785883360bSNate Lawson.Pp 7927f90bebSWarren BlockThe default mode is 8098b486dcSMateusz Piotrowski.Cm adaptive 8127f90bebSWarren Blockfor battery power and 8298b486dcSMateusz Piotrowski.Cm hiadaptive 8327f90bebSWarren Blockfor the rest. 8427f90bebSWarren Block.Pp 855883360bSNate Lawson.Nm 8627f90bebSWarren Blockrecognizes these runtime options: 8798b486dcSMateusz Piotrowski.Bl -tag -width "-r percent" 885883360bSNate Lawson.It Fl a Ar mode 895883360bSNate LawsonSelects the 905883360bSNate Lawson.Ar mode 915883360bSNate Lawsonto use while on AC power. 925883360bSNate Lawson.It Fl b Ar mode 935883360bSNate LawsonSelects the 945883360bSNate Lawson.Ar mode 955883360bSNate Lawsonto use while on battery power. 965883360bSNate Lawson.It Fl i Ar percent 97dbd31977SAlexander MotinSpecifies the CPU load percent level when adaptive 985883360bSNate Lawsonmode should begin to degrade performance to save power. 99dbd31977SAlexander MotinThe default is 50% or lower. 100cf2280acSRebecca Cran.It Fl M Ar freq 101cf2280acSRebecca CranSpecifies the maximum frequency to throttle up to. 10298b486dcSMateusz Piotrowski.It Fl m Ar freq 10398b486dcSMateusz PiotrowskiSpecifies the minimum frequency to throttle down to. 104d9138286SColin Percival.It Fl N 105d9138286SColin PercivalTreat "nice" time as idle for the purpose of load calculation; 10698b486dcSMateusz Piotrowskii.e., do not increase the CPU frequency if the CPU is only busy 107d9138286SColin Percivalwith "nice" processes. 1085883360bSNate Lawson.It Fl n Ar mode 1095883360bSNate LawsonSelects the 1105883360bSNate Lawson.Ar mode 1115883360bSNate Lawsonto use normally when the AC line state is unknown. 11298b486dcSMateusz Piotrowski.It Fl P Ar pidfile 11398b486dcSMateusz PiotrowskiSpecifies an alternative file in which the process ID should be stored. 1145883360bSNate Lawson.It Fl p Ar ival 1155883360bSNate LawsonSpecifies a different polling interval (in milliseconds) for AC line state 1165883360bSNate Lawsonand system idle levels. 117dbd31977SAlexander MotinThe default is 250 ms. 1185883360bSNate Lawson.It Fl r Ar percent 119dbd31977SAlexander MotinSpecifies the CPU load percent level where adaptive 1205883360bSNate Lawsonmode should consider the CPU running and increase performance. 1215d8e279eSTom RhodesThe default is 75% or higher. 1225c81ba5aSAndriy Voskoboinyk.It Fl s Ar source 1235c81ba5aSAndriy VoskoboinykEnforces method for AC line state refresh; by default, it is chosen 1245c81ba5aSAndriy Voskoboinykautomatically. 1255c81ba5aSAndriy VoskoboinykThe set of valid methods is 1265c81ba5aSAndriy Voskoboinyk.Cm sysctl , devd 1275c81ba5aSAndriy Voskoboinykand 1285c81ba5aSAndriy Voskoboinyk.Cm apm 1295c81ba5aSAndriy Voskoboinyk(i386 only). 1305883360bSNate Lawson.It Fl v 1315883360bSNate LawsonVerbose mode. 1325883360bSNate LawsonMessages about power changes will be printed to stdout and 1335883360bSNate Lawson.Nm 1345883360bSNate Lawsonwill operate in the foreground. 1355883360bSNate Lawson.El 13698b486dcSMateusz Piotrowski.Sh FILES 13798b486dcSMateusz Piotrowski.Bl -tag -width "/var/run/powerd.pid" 13898b486dcSMateusz Piotrowski.It Pa /var/run/powerd.pid 13998b486dcSMateusz PiotrowskiThe default PID file. 14098b486dcSMateusz Piotrowski.El 1415883360bSNate Lawson.Sh SEE ALSO 1425883360bSNate Lawson.Xr acpi 4 , 1435883360bSNate Lawson.Xr apm 4 , 144ec071430SFelix Johnson.Xr cpufreq 4 , 145ec071430SFelix Johnson.Xr rc.conf 5 1465883360bSNate Lawson.Sh HISTORY 1475883360bSNate LawsonThe 1485883360bSNate Lawson.Nm 1495883360bSNate Lawsonutility first appeared in 15019797b22SJoel Dahl.Fx 6.0 . 1515883360bSNate Lawson.Sh AUTHORS 15283c94dadSRuslan Ermilov.An -nosplit 1535883360bSNate Lawson.An Colin Percival 1545883360bSNate Lawsonfirst wrote 15583c94dadSRuslan Ermilov.Nm estctrl , 1565883360bSNate Lawsonthe utility that 1575883360bSNate Lawson.Nm 1585883360bSNate Lawsonis based on. 1595883360bSNate Lawson.An Nate Lawson 1605883360bSNate Lawsonthen updated it for 1615883360bSNate Lawson.Xr cpufreq 4 , 1627f2f0628SChristian Bruefferadded features, and wrote this manual page. 1635883360bSNate Lawson.Sh BUGS 1645883360bSNate LawsonThe 1655883360bSNate Lawson.Nm 1665883360bSNate Lawsonutility should also power down idle disks and other components besides the CPU. 1675883360bSNate Lawson.Pp 1685883360bSNate LawsonIf 1695883360bSNate Lawson.Nm 17083c94dadSRuslan Ermilovis used with 171*28111ddfSMateusz Piotrowski.Pa /etc/rc.d/power_profile , 17283c94dadSRuslan Ermilovthey may override each other. 1735883360bSNate Lawson.Pp 17483c94dadSRuslan ErmilovThe 1755883360bSNate Lawson.Nm 17683c94dadSRuslan Ermilovutility 1775883360bSNate Lawsonshould probably use the 1785883360bSNate Lawson.Xr devctl 4 1795883360bSNate Lawsoninterface instead of polling for AC line state. 180