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 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. 48484b7a09SGavin AtkinsonIt offers four modes (maximum, minimum, adaptive and hiadaptive) that can be 495883360bSNate Lawsonindividually selected while on AC power or batteries. 50dbd31977SAlexander MotinThe modes maximum, minimum, adaptive and hiadaptive may be abbreviated 51dbd31977SAlexander Motinmax, min, adp, hadp. 525883360bSNate Lawson.Pp 535883360bSNate LawsonMaximum mode chooses the highest performance values. 545883360bSNate LawsonMinimum mode selects the lowest performance values to get the most power 555883360bSNate Lawsonsavings. 565883360bSNate LawsonAdaptive mode attempts to strike a balance by degrading performance when 575883360bSNate Lawsonthe system appears idle and increasing it when the system is busy. 585883360bSNate LawsonIt offers a good balance between a small performance loss for greatly 595883360bSNate Lawsonincreased power savings. 60484b7a09SGavin AtkinsonHiadaptive mode is like adaptive mode, but tuned for systems where 61dbd31977SAlexander Motinperformance and interactivity are more important then power consumption. 62484b7a09SGavin AtkinsonIt increases frequency faster, reduces the frequency less aggressively and 63484b7a09SGavin Atkinsonwill maintain full frequency for longer. 64dbd31977SAlexander MotinThe default mode is adaptive for battery power and hiadaptive for the rest. 655883360bSNate Lawson.Pp 665883360bSNate LawsonThe 675883360bSNate Lawson.Nm 685883360bSNate Lawsonutility recognizes the following runtime options: 6983c94dadSRuslan Ermilov.Bl -tag -width ".Fl r Ar percent" 705883360bSNate Lawson.It Fl a Ar mode 715883360bSNate LawsonSelects the 725883360bSNate Lawson.Ar mode 735883360bSNate Lawsonto use while on AC power. 745883360bSNate Lawson.It Fl b Ar mode 755883360bSNate LawsonSelects the 765883360bSNate Lawson.Ar mode 775883360bSNate Lawsonto use while on battery power. 785883360bSNate Lawson.It Fl i Ar percent 79dbd31977SAlexander MotinSpecifies the CPU load percent level when adaptive 805883360bSNate Lawsonmode should begin to degrade performance to save power. 81dbd31977SAlexander MotinThe default is 50% or lower. 825883360bSNate Lawson.It Fl n Ar mode 835883360bSNate LawsonSelects the 845883360bSNate Lawson.Ar mode 855883360bSNate Lawsonto use normally when the AC line state is unknown. 865883360bSNate Lawson.It Fl p Ar ival 875883360bSNate LawsonSpecifies a different polling interval (in milliseconds) for AC line state 885883360bSNate Lawsonand system idle levels. 89dbd31977SAlexander MotinThe default is 250 ms. 90177b9d3bSPawel Jakub Dawidek.It Fl P Ar pidfile 91177b9d3bSPawel Jakub DawidekSpecifies an alternative file in which the process ID should be stored. 9284148fd1SPawel Jakub DawidekThe default is 9384148fd1SPawel Jakub Dawidek.Pa /var/run/powerd.pid . 945883360bSNate Lawson.It Fl r Ar percent 95dbd31977SAlexander MotinSpecifies the CPU load percent level where adaptive 965883360bSNate Lawsonmode should consider the CPU running and increase performance. 975d8e279eSTom RhodesThe default is 75% or higher. 985883360bSNate Lawson.It Fl v 995883360bSNate LawsonVerbose mode. 1005883360bSNate LawsonMessages about power changes will be printed to stdout and 1015883360bSNate Lawson.Nm 1025883360bSNate Lawsonwill operate in the foreground. 1035883360bSNate Lawson.El 1045883360bSNate Lawson.Sh SEE ALSO 1055883360bSNate Lawson.Xr acpi 4 , 1065883360bSNate Lawson.Xr apm 4 , 1075883360bSNate Lawson.Xr cpufreq 4 1085883360bSNate Lawson.Sh HISTORY 1095883360bSNate LawsonThe 1105883360bSNate Lawson.Nm 1115883360bSNate Lawsonutility first appeared in 11219797b22SJoel Dahl.Fx 6.0 . 1135883360bSNate Lawson.Sh AUTHORS 11483c94dadSRuslan Ermilov.An -nosplit 1155883360bSNate Lawson.An Colin Percival 1165883360bSNate Lawsonfirst wrote 11783c94dadSRuslan Ermilov.Nm estctrl , 1185883360bSNate Lawsonthe utility that 1195883360bSNate Lawson.Nm 1205883360bSNate Lawsonis based on. 1215883360bSNate Lawson.An Nate Lawson 1225883360bSNate Lawsonthen updated it for 1235883360bSNate Lawson.Xr cpufreq 4 , 1247f2f0628SChristian Bruefferadded features, and wrote this manual page. 1255883360bSNate Lawson.Sh BUGS 1265883360bSNate LawsonThe 1275883360bSNate Lawson.Nm 1285883360bSNate Lawsonutility should also power down idle disks and other components besides the CPU. 1295883360bSNate Lawson.Pp 1305883360bSNate LawsonIf 1315883360bSNate Lawson.Nm 13283c94dadSRuslan Ermilovis used with 13383c94dadSRuslan Ermilov.Pa power_profile , 13483c94dadSRuslan Ermilovthey may override each other. 1355883360bSNate Lawson.Pp 13683c94dadSRuslan ErmilovThe 1375883360bSNate Lawson.Nm 13883c94dadSRuslan Ermilovutility 1395883360bSNate Lawsonshould probably use the 1405883360bSNate Lawson.Xr devctl 4 1415883360bSNate Lawsoninterface instead of polling for AC line state. 142