1 .\" (c) Copyright 2010 by Matthew Dillon and Dima Ruban. Permission to
2 .\" use and distribute based on the DragonFly copyright.
9 .Nd simple CPU performance control and battery life monitor
13 .Op Fl b Ar backlight_percentage
14 .Op Fl h Ar highest_freq
15 .Op Fl l Ar lowest_freq
16 .Op Fl p Ar hysteresis
18 .Op Fl u Ar trigger_up
19 .Op Fl B Ar minimum_battery_life
20 .Op Fl L Ar battery_life_linger
21 .Op Fl P Ar battery_poll_interval
22 .Op Fl T Ar sample_time
26 daemon monitors the CPU load and automatically adjusts the CPU
27 performance up or down accordingly.
31 also monitors battery life.
32 If the battery life is low
33 (less than or equal to 2% by default),
35 will send audio alert immediately,
36 and shutdown the machine after lingering for a little while
37 (60 seconds by default).
39 The options are as follows:
40 .Bl -tag -width ".Fl p Ar hysteresis"
41 .It Fl b Ar backlight_percentage
42 Set backlight to the specified percentage,
43 if AC line is not plugged in.
45 Enable mwait C-state hint adjustment,
51 to not go to the background and prints some debug output to
54 Enable Intel Performance and Energy Bias Hint adjustment,
57 Disable CPU power domain frequency adjustment.
58 CPU power domain frequency adjustment does not reduce CPU power consumption
61 on some of the modern Intel CPUs,
63 .It Fl h Ar highest_freq
64 If CPU power domain frequency adjustment is enabled,
65 then frequency of CPU power domains will not be set to a value higher
66 than the specified limit.
68 .It Fl l Ar lowest_freq
69 If CPU power domain frequency adjustment is enabled,
70 then frequency of CPU power domains will not be set to a value lower
71 than the specified limit.
73 .It Fl p Ar hysteresis
74 Percent of the upper limit to subtract as an hysteresis value to scale
75 down to the min performance.
79 Polling time in seconds.
81 Setting this value lower will poll for load changes faster.
83 a workstation might want to use 0.2 or 0.4.
84 .Nm can become unstable if you make this value too small.
87 Disables switching to turbo mode as maximum frequency completely.
88 Switching to turbo mode as maximum frequency is enabled by default,
89 if the CPU supports it.
90 .It Fl u Ar trigger_up
91 Per CPU load limit in percent to force maximum performance.
93 (meaning an instantanious load of 0.25 on a single cpu).
94 The load is calculated over 3 polls.
95 It is suggested that this value not be made lower than around 7.
96 .It Fl B Ar minimum_battery_life
97 If battery life is less than or equal to the specified value,
98 the machine will start shutting down process.
100 (2% battery life left).
101 .It Fl L Ar battery_life_linger
102 If battery life is less than or equal to the configured value,
103 shutting down the machine will be delayed by the specified value.
105 alert message will be logged to the console,
106 and audio alert will be alarmed.
107 If AC line is plugged in during this delay,
108 shutting down process will be cancelled.
109 Default is 60 seconds.
110 .It Fl P Ar battery_poll_interval
111 Poll the battery life at the specified interval.
113 battery life monitoring will be disabled.
114 Default is 5 seconds.
116 Don't alarm audio alert,
117 if the battery life is low.
118 .It Fl T Ar sample_time
119 Total sample interval in seconds.
121 This effects how quickly powerd ratchets down the performance
122 and cpus on an idle machine.
123 Longer times will ratchet down more slowly.
125 a workstation might want to use a value of 30.0.
130 utility will exit with a non-zero code if the required sysctls are not
133 The defaults work well for servers but a workstation user might want
134 to use something like the following in their
136 to ratchet up the machine more quickly in response to spike loads
137 (such as when you are browsing).
139 .Li powerd_enable="YES"
141 .Li powerd_flags="-u 7 -r 0.2 -T 60"
148 command first appeared in
151 I'm shocked I tell you,
152 shocked that there might be bugs in this program!