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.\" 27484b7a09SGavin Atkinson.Dd December 21, 2009 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 38*cf2280acSRebecca Cran.Op Fl m Ar freq 39*cf2280acSRebecca 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 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. 50484b7a09SGavin AtkinsonIt offers four modes (maximum, minimum, adaptive and hiadaptive) that can be 515883360bSNate Lawsonindividually selected while on AC power or batteries. 52dbd31977SAlexander MotinThe modes maximum, minimum, adaptive and hiadaptive may be abbreviated 53dbd31977SAlexander Motinmax, min, adp, hadp. 545883360bSNate Lawson.Pp 555883360bSNate LawsonMaximum mode chooses the highest performance values. 565883360bSNate LawsonMinimum mode selects the lowest performance values to get the most power 575883360bSNate Lawsonsavings. 585883360bSNate LawsonAdaptive mode attempts to strike a balance by degrading performance when 595883360bSNate Lawsonthe system appears idle and increasing it when the system is busy. 605883360bSNate LawsonIt offers a good balance between a small performance loss for greatly 615883360bSNate Lawsonincreased power savings. 62484b7a09SGavin AtkinsonHiadaptive mode is like adaptive mode, but tuned for systems where 630a47b5f5SJoerg Wunschperformance and interactivity are more important than power consumption. 64484b7a09SGavin AtkinsonIt increases frequency faster, reduces the frequency less aggressively and 65484b7a09SGavin Atkinsonwill maintain full frequency for longer. 66dbd31977SAlexander MotinThe default mode is adaptive for battery power and hiadaptive for the rest. 675883360bSNate Lawson.Pp 685883360bSNate LawsonThe 695883360bSNate Lawson.Nm 705883360bSNate Lawsonutility recognizes the following runtime options: 7183c94dadSRuslan Ermilov.Bl -tag -width ".Fl r Ar percent" 725883360bSNate Lawson.It Fl a Ar mode 735883360bSNate LawsonSelects the 745883360bSNate Lawson.Ar mode 755883360bSNate Lawsonto use while on AC power. 765883360bSNate Lawson.It Fl b Ar mode 775883360bSNate LawsonSelects the 785883360bSNate Lawson.Ar mode 795883360bSNate Lawsonto use while on battery power. 805883360bSNate Lawson.It Fl i Ar percent 81dbd31977SAlexander MotinSpecifies the CPU load percent level when adaptive 825883360bSNate Lawsonmode should begin to degrade performance to save power. 83dbd31977SAlexander MotinThe default is 50% or lower. 84*cf2280acSRebecca Cran.It Fl m Ar freq 85*cf2280acSRebecca CranSpecifies the minimum frequency to throttle down to. 86*cf2280acSRebecca Cran.It Fl M Ar freq 87*cf2280acSRebecca CranSpecifies the maximum frequency to throttle up to. 885883360bSNate Lawson.It Fl n Ar mode 895883360bSNate LawsonSelects the 905883360bSNate Lawson.Ar mode 915883360bSNate Lawsonto use normally when the AC line state is unknown. 925883360bSNate Lawson.It Fl p Ar ival 935883360bSNate LawsonSpecifies a different polling interval (in milliseconds) for AC line state 945883360bSNate Lawsonand system idle levels. 95dbd31977SAlexander MotinThe default is 250 ms. 96177b9d3bSPawel Jakub Dawidek.It Fl P Ar pidfile 97177b9d3bSPawel Jakub DawidekSpecifies an alternative file in which the process ID should be stored. 9884148fd1SPawel Jakub DawidekThe default is 9984148fd1SPawel Jakub Dawidek.Pa /var/run/powerd.pid . 1005883360bSNate Lawson.It Fl r Ar percent 101dbd31977SAlexander MotinSpecifies the CPU load percent level where adaptive 1025883360bSNate Lawsonmode should consider the CPU running and increase performance. 1035d8e279eSTom RhodesThe default is 75% or higher. 1045883360bSNate Lawson.It Fl v 1055883360bSNate LawsonVerbose mode. 1065883360bSNate LawsonMessages about power changes will be printed to stdout and 1075883360bSNate Lawson.Nm 1085883360bSNate Lawsonwill operate in the foreground. 1095883360bSNate Lawson.El 1105883360bSNate Lawson.Sh SEE ALSO 1115883360bSNate Lawson.Xr acpi 4 , 1125883360bSNate Lawson.Xr apm 4 , 1135883360bSNate Lawson.Xr cpufreq 4 1145883360bSNate Lawson.Sh HISTORY 1155883360bSNate LawsonThe 1165883360bSNate Lawson.Nm 1175883360bSNate Lawsonutility first appeared in 11819797b22SJoel Dahl.Fx 6.0 . 1195883360bSNate Lawson.Sh AUTHORS 12083c94dadSRuslan Ermilov.An -nosplit 1215883360bSNate Lawson.An Colin Percival 1225883360bSNate Lawsonfirst wrote 12383c94dadSRuslan Ermilov.Nm estctrl , 1245883360bSNate Lawsonthe utility that 1255883360bSNate Lawson.Nm 1265883360bSNate Lawsonis based on. 1275883360bSNate Lawson.An Nate Lawson 1285883360bSNate Lawsonthen updated it for 1295883360bSNate Lawson.Xr cpufreq 4 , 1307f2f0628SChristian Bruefferadded features, and wrote this manual page. 1315883360bSNate Lawson.Sh BUGS 1325883360bSNate LawsonThe 1335883360bSNate Lawson.Nm 1345883360bSNate Lawsonutility should also power down idle disks and other components besides the CPU. 1355883360bSNate Lawson.Pp 1365883360bSNate LawsonIf 1375883360bSNate Lawson.Nm 13883c94dadSRuslan Ermilovis used with 13983c94dadSRuslan Ermilov.Pa power_profile , 14083c94dadSRuslan Ermilovthey may override each other. 1415883360bSNate Lawson.Pp 14283c94dadSRuslan ErmilovThe 1435883360bSNate Lawson.Nm 14483c94dadSRuslan Ermilovutility 1455883360bSNate Lawsonshould probably use the 1465883360bSNate Lawson.Xr devctl 4 1475883360bSNate Lawsoninterface instead of polling for AC line state. 148