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.\" 275d8e279eSTom Rhodes.Dd December 24, 2008 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. 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. 60dbd31977SAlexander MotinHiadaptive mode is alike adaptive mode, but tuned for systems where 61dbd31977SAlexander Motinperformance and interactivity are more important then power consumption. 62dbd31977SAlexander MotinIt rises frequency faster, drops slower and keeps twice lower CPU load. 63dbd31977SAlexander MotinThe default mode is adaptive for battery power and hiadaptive for the rest. 645883360bSNate Lawson.Pp 655883360bSNate LawsonThe 665883360bSNate Lawson.Nm 675883360bSNate Lawsonutility recognizes the following runtime options: 6883c94dadSRuslan Ermilov.Bl -tag -width ".Fl r Ar percent" 695883360bSNate Lawson.It Fl a Ar mode 705883360bSNate LawsonSelects the 715883360bSNate Lawson.Ar mode 725883360bSNate Lawsonto use while on AC power. 735883360bSNate Lawson.It Fl b Ar mode 745883360bSNate LawsonSelects the 755883360bSNate Lawson.Ar mode 765883360bSNate Lawsonto use while on battery power. 775883360bSNate Lawson.It Fl i Ar percent 78dbd31977SAlexander MotinSpecifies the CPU load percent level when adaptive 795883360bSNate Lawsonmode should begin to degrade performance to save power. 80dbd31977SAlexander MotinThe default is 50% or lower. 815883360bSNate Lawson.It Fl n Ar mode 825883360bSNate LawsonSelects the 835883360bSNate Lawson.Ar mode 845883360bSNate Lawsonto use normally when the AC line state is unknown. 855883360bSNate Lawson.It Fl p Ar ival 865883360bSNate LawsonSpecifies a different polling interval (in milliseconds) for AC line state 875883360bSNate Lawsonand system idle levels. 88dbd31977SAlexander MotinThe default is 250 ms. 89177b9d3bSPawel Jakub Dawidek.It Fl P Ar pidfile 90177b9d3bSPawel Jakub DawidekSpecifies an alternative file in which the process ID should be stored. 9184148fd1SPawel Jakub DawidekThe default is 9284148fd1SPawel Jakub Dawidek.Pa /var/run/powerd.pid . 935883360bSNate Lawson.It Fl r Ar percent 94dbd31977SAlexander MotinSpecifies the CPU load percent level where adaptive 955883360bSNate Lawsonmode should consider the CPU running and increase performance. 965d8e279eSTom RhodesThe default is 75% or higher. 975883360bSNate Lawson.It Fl v 985883360bSNate LawsonVerbose mode. 995883360bSNate LawsonMessages about power changes will be printed to stdout and 1005883360bSNate Lawson.Nm 1015883360bSNate Lawsonwill operate in the foreground. 1025883360bSNate Lawson.El 1035883360bSNate Lawson.Sh SEE ALSO 1045883360bSNate Lawson.Xr acpi 4 , 1055883360bSNate Lawson.Xr apm 4 , 1065883360bSNate Lawson.Xr cpufreq 4 1075883360bSNate Lawson.Sh HISTORY 1085883360bSNate LawsonThe 1095883360bSNate Lawson.Nm 1105883360bSNate Lawsonutility first appeared in 11119797b22SJoel Dahl.Fx 6.0 . 1125883360bSNate Lawson.Sh AUTHORS 11383c94dadSRuslan Ermilov.An -nosplit 1145883360bSNate Lawson.An Colin Percival 1155883360bSNate Lawsonfirst wrote 11683c94dadSRuslan Ermilov.Nm estctrl , 1175883360bSNate Lawsonthe utility that 1185883360bSNate Lawson.Nm 1195883360bSNate Lawsonis based on. 1205883360bSNate Lawson.An Nate Lawson 1215883360bSNate Lawsonthen updated it for 1225883360bSNate Lawson.Xr cpufreq 4 , 1237f2f0628SChristian Bruefferadded features, and wrote this manual page. 1245883360bSNate Lawson.Sh BUGS 1255883360bSNate LawsonThe 1265883360bSNate Lawson.Nm 1275883360bSNate Lawsonutility should also power down idle disks and other components besides the CPU. 1285883360bSNate Lawson.Pp 1295883360bSNate LawsonIf 1305883360bSNate Lawson.Nm 13183c94dadSRuslan Ermilovis used with 13283c94dadSRuslan Ermilov.Pa power_profile , 13383c94dadSRuslan Ermilovthey may override each other. 1345883360bSNate Lawson.Pp 13583c94dadSRuslan ErmilovThe 1365883360bSNate Lawson.Nm 13783c94dadSRuslan Ermilovutility 1385883360bSNate Lawsonshould probably use the 1395883360bSNate Lawson.Xr devctl 4 1405883360bSNate Lawsoninterface instead of polling for AC line state. 141