xref: /freebsd/usr.sbin/powerd/powerd.8 (revision 83c94dadce28cb244e900727ef1b54cf52127030)
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.\"
2783c94dadSRuslan Ermilov.Dd April 10, 2005
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
4083c94dadSRuslan Ermilov.Op Fl r Ar 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:
6383c94dadSRuslan Ermilov.Bl -tag -width ".Fl r Ar 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.
892f8ad6c0SNate LawsonThe default is 65% 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
10683c94dadSRuslan Ermilov.An -nosplit
1075883360bSNate Lawson.An Colin Percival
1085883360bSNate Lawsonfirst wrote
10983c94dadSRuslan Ermilov.Nm estctrl ,
1105883360bSNate Lawsonthe utility that
1115883360bSNate Lawson.Nm
1125883360bSNate Lawsonis based on.
1135883360bSNate Lawson.An Nate Lawson
1145883360bSNate Lawsonthen updated it for
1155883360bSNate Lawson.Xr cpufreq 4 ,
1167f2f0628SChristian Bruefferadded features, and wrote this manual page.
1175883360bSNate Lawson.Sh BUGS
1185883360bSNate LawsonThe
1195883360bSNate Lawson.Nm
1205883360bSNate Lawsonutility should also power down idle disks and other components besides the CPU.
1215883360bSNate Lawson.Pp
1225883360bSNate LawsonIf
1235883360bSNate Lawson.Nm
12483c94dadSRuslan Ermilovis used with
12583c94dadSRuslan Ermilov.Pa power_profile ,
12683c94dadSRuslan Ermilovthey may override each other.
1275883360bSNate Lawson.Pp
12883c94dadSRuslan ErmilovThe
1295883360bSNate Lawson.Nm
13083c94dadSRuslan Ermilovutility
1315883360bSNate Lawsonshould probably use the
1325883360bSNate Lawson.Xr devctl 4
1335883360bSNate Lawsoninterface instead of polling for AC line state.
134