]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - usr.sbin/powerd/powerd.8
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / usr.sbin / powerd / powerd.8
1 .\" Copyright (c) 2005 Nate Lawson
2 .\" All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\"
13 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 .\" SUCH DAMAGE.
24 .\"
25 .\" $FreeBSD$
26 .\"
27 .Dd July 4, 2013
28 .Dt POWERD 8
29 .Os
30 .Sh NAME
31 .Nm powerd
32 .Nd "system power control utility"
33 .Sh SYNOPSIS
34 .Nm
35 .Op Fl a Ar mode
36 .Op Fl b Ar mode
37 .Op Fl i Ar percent
38 .Op Fl m Ar freq
39 .Op Fl M Ar freq
40 .Op Fl n Ar mode
41 .Op Fl p Ar ival
42 .Op Fl P Ar pidfile
43 .Op Fl r Ar percent
44 .Op Fl v
45 .Sh DESCRIPTION
46 The
47 .Nm
48 utility monitors the system state and sets various power control options
49 accordingly.
50 It offers power-saving modes that can be
51 individually selected for operation on AC power or batteries.
52 .Bl -tag -width ".Ar hiadaptive"
53 .It Ar maximum
54 Choose the highest performance values.
55 May be abbreviated as
56 .Ar max .
57 .It Ar minimum
58 Choose the lowest performance values to get the most power savings.
59 May be abbreviated as
60 .Ar min .
61 .It Ar adaptive
62 Attempt to strike a balance by degrading performance when the system
63 appears idle and increasing it when the system is busy.
64 It offers a good balance between a small performance loss for greatly
65 increased power savings.
66 May be abbreviated as
67 .Ar adp .
68 .It Ar hiadaptive
69 Like
70 .Ar adaptive
71 mode, but tuned for systems where performance and interactivity are
72 more important than power consumption.
73 It increases frequency faster, reduces frequency less aggressively, and
74 will maintain full frequency for longer.
75 May be abbreviated as
76 .Ar hadp .
77 .El
78 .Pp
79 The default mode is
80 .Ar adaptive
81 for battery power and
82 .Ar hiadaptive
83 for the rest.
84 .Pp
85 .Nm
86 recognizes these runtime options:
87 .Bl -tag -width ".Fl r Ar percent"
88 .It Fl a Ar mode
89 Selects the
90 .Ar mode
91 to use while on AC power.
92 .It Fl b Ar mode
93 Selects the
94 .Ar mode
95 to use while on battery power.
96 .It Fl i Ar percent
97 Specifies the CPU load percent level when adaptive
98 mode should begin to degrade performance to save power.
99 The default is 50% or lower.
100 .It Fl m Ar freq
101 Specifies the minimum frequency to throttle down to.
102 .It Fl M Ar freq
103 Specifies the maximum frequency to throttle up to.
104 .It Fl n Ar mode
105 Selects the
106 .Ar mode
107 to use normally when the AC line state is unknown.
108 .It Fl p Ar ival
109 Specifies a different polling interval (in milliseconds) for AC line state
110 and system idle levels.
111 The default is 250 ms.
112 .It Fl P Ar pidfile
113 Specifies an alternative file in which the process ID should be stored.
114 The default is
115 .Pa /var/run/powerd.pid .
116 .It Fl r Ar percent
117 Specifies the CPU load percent level where adaptive
118 mode should consider the CPU running and increase performance.
119 The default is 75% or higher.
120 .It Fl v
121 Verbose mode.
122 Messages about power changes will be printed to stdout and
123 .Nm
124 will operate in the foreground.
125 .El
126 .Sh SEE ALSO
127 .Xr acpi 4 ,
128 .Xr apm 4 ,
129 .Xr cpufreq 4
130 .Sh HISTORY
131 The
132 .Nm
133 utility first appeared in
134 .Fx 6.0 .
135 .Sh AUTHORS
136 .An -nosplit
137 .An Colin Percival
138 first wrote
139 .Nm estctrl ,
140 the utility that
141 .Nm
142 is based on.
143 .An Nate Lawson
144 then updated it for
145 .Xr cpufreq 4 ,
146 added features, and wrote this manual page.
147 .Sh BUGS
148 The
149 .Nm
150 utility should also power down idle disks and other components besides the CPU.
151 .Pp
152 If
153 .Nm
154 is used with
155 .Pa power_profile ,
156 they may override each other.
157 .Pp
158 The
159 .Nm
160 utility
161 should probably use the
162 .Xr devctl 4
163 interface instead of polling for AC line state.