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.\" 275883360bSNate Lawson.Dd February 26, 2005 285883360bSNate Lawson.Dt POWERD 8 295883360bSNate Lawson.Os 305883360bSNate Lawson.Sh NAME 315883360bSNate Lawson.Nm powerd 325883360bSNate Lawson.Nd system power control utility 335883360bSNate Lawson.Sh SYNOPSIS 345883360bSNate Lawson.Nm 355883360bSNate Lawson.Op Fl a mode 365883360bSNate Lawson.Op Fl b mode 375883360bSNate Lawson.Op Fl i percent 385883360bSNate Lawson.Op Fl n mode 395883360bSNate Lawson.Op Fl p ival 405883360bSNate Lawson.Op Fl r percent 415883360bSNate Lawson.Op Fl v 425883360bSNate Lawson.Sh DESCRIPTION 435883360bSNate LawsonThe 445883360bSNate Lawson.Nm 455883360bSNate Lawsonutility monitors the system state and sets various power control options 465883360bSNate Lawsonaccordingly. 475883360bSNate LawsonIt offers three modes (max, min, and adaptive) that can be 485883360bSNate Lawsonindividually selected while on AC power or batteries. 495883360bSNate Lawson.Pp 505883360bSNate LawsonMaximum mode chooses the highest performance values. 515883360bSNate LawsonMinimum mode selects the lowest performance values to get the most power 525883360bSNate Lawsonsavings. 535883360bSNate LawsonAdaptive mode attempts to strike a balance by degrading performance when 545883360bSNate Lawsonthe system appears idle and increasing it when the system is busy. 555883360bSNate LawsonIt offers a good balance between a small performance loss for greatly 565883360bSNate Lawsonincreased power savings. 575883360bSNate LawsonThe default mode is 585883360bSNate Lawsonadaptive. 595883360bSNate Lawson.Pp 605883360bSNate LawsonThe 615883360bSNate Lawson.Nm 625883360bSNate Lawsonutility recognizes the following runtime options: 635883360bSNate Lawson.Bl -tag -width -i_percent 645883360bSNate Lawson.It Fl a Ar mode 655883360bSNate LawsonSelects the 665883360bSNate Lawson.Ar mode 675883360bSNate Lawsonto use while on AC power. 685883360bSNate Lawson.It Fl b Ar mode 695883360bSNate LawsonSelects the 705883360bSNate Lawson.Ar mode 715883360bSNate Lawsonto use while on battery power. 725883360bSNate Lawson.It Fl i Ar percent 735883360bSNate LawsonSpecifies the CPU idle percent level when 745883360bSNate Lawsonadaptive 755883360bSNate Lawsonmode should begin to degrade performance to save power. 76b3c9af56SNate LawsonThe default is 90% or higher. 775883360bSNate Lawson.It Fl n Ar mode 785883360bSNate LawsonSelects the 795883360bSNate Lawson.Ar mode 805883360bSNate Lawsonto use normally when the AC line state is unknown. 815883360bSNate Lawson.It Fl p Ar ival 825883360bSNate LawsonSpecifies a different polling interval (in milliseconds) for AC line state 835883360bSNate Lawsonand system idle levels. 845883360bSNate LawsonThe default is 500 ms. 855883360bSNate Lawson.It Fl r Ar percent 865883360bSNate LawsonSpecifies the CPU idle percent level where 875883360bSNate Lawsonadaptive 885883360bSNate Lawsonmode should consider the CPU running and increase performance. 89b3c9af56SNate LawsonThe default is 80% or lower. 905883360bSNate Lawson.It Fl v 915883360bSNate LawsonVerbose mode. 925883360bSNate LawsonMessages about power changes will be printed to stdout and 935883360bSNate Lawson.Nm 945883360bSNate Lawsonwill operate in the foreground. 955883360bSNate Lawson.El 965883360bSNate Lawson.Sh SEE ALSO 975883360bSNate Lawson.Xr acpi 4 , 985883360bSNate Lawson.Xr apm 4 , 995883360bSNate Lawson.Xr cpufreq 4 1005883360bSNate Lawson.Sh HISTORY 1015883360bSNate LawsonThe 1025883360bSNate Lawson.Nm 1035883360bSNate Lawsonutility first appeared in 1045883360bSNate Lawson.Fx 5.5 . 1055883360bSNate Lawson.Sh AUTHORS 1065883360bSNate Lawson.An Colin Percival 1075883360bSNate Lawsonfirst wrote 1085883360bSNate Lawson.Pa estctrl , 1095883360bSNate Lawsonthe utility that 1105883360bSNate Lawson.Nm 1115883360bSNate Lawsonis based on. 1125883360bSNate Lawson.An Nate Lawson 1135883360bSNate Lawsonthen updated it for 1145883360bSNate Lawson.Xr cpufreq 4 , 1157f2f0628SChristian Bruefferadded features, and wrote this manual page. 1165883360bSNate Lawson.Sh BUGS 1175883360bSNate LawsonThe 1185883360bSNate Lawson.Nm 1195883360bSNate Lawsonutility should also power down idle disks and other components besides the CPU. 1205883360bSNate Lawson.Pp 1215883360bSNate LawsonIf 1225883360bSNate Lawson.Nm 1235883360bSNate Lawsonis used with power_profile, they may override each other. 1245883360bSNate Lawson.Pp 1255883360bSNate Lawson.Nm 1265883360bSNate Lawsonshould probably use the 1275883360bSNate Lawson.Xr devctl 4 1285883360bSNate Lawsoninterface instead of polling for AC line state. 129