7
7
# CONTROL_something=0/1 Determines whether Laptop Mode Tools controls
9
9
# LM_something=value Value of "something" when laptop mode is active
10
# NOLM_something=value Value of "something" when laptop mode is NOT active
10
# NOLM_something=value Value of "something" when laptop mode is NOT
11
12
# AC_something=value Value of "something" when the computer is running
13
# BATT_something=value Value of "something when the computer is running on
14
# BATT_something=value Value of "something when the computer is running
16
17
# There can be combinations of LM_/NOLM_ and AC_/BATT_ prefixes, but the
17
18
# available prefixes are different for each setting. The available ones are
18
# documented in the manual page, laptop-mode.conf(8). If there is no LM_/NOLM_
19
# in a setting name, then the value is used independently of laptop mode state,
20
# and similarly, if there is no AC_/BATT_, then the value is used independently
19
# documented in the manual page, laptop-mode.conf(8). If there is no LM_/
20
# NOLM_ in a setting name, then the value is used independently of laptop
21
# mode state, and similarly, if there is no AC_/BATT_, then the value is used
22
# independently of power state.
23
24
# Some options only work on ACPI systems. They are marked ACPI-ONLY.
25
# Note that this configuration file is a fragment of bash shell script: you
26
# can use all the features of the bash scripting language to achieve your
26
# Note that this configuration file is a fragment of shell script: you
27
# can use all the features of the shell scripting language to achieve your
27
28
# desired configuration.
34
# Laptop Mode Tools modules have separate configuration files, that can be
35
# found in /etc/laptop-mode/conf.d. Please look through these configuration
36
# files as well, there are many useful power saving tools in there!
28
38
###############################################################################
127
163
# parameters of your hard drives and file systems.
128
164
###############################################################################
130
168
# Maximum time, in seconds, of work that you are prepared to lose when your
131
169
# system crashes or power runs out. This is the maximum time that Laptop Mode
132
170
# will keep unsaved data waiting in memory before spinning up your hard drive.
133
172
LM_BATT_MAX_LOST_WORK_SECONDS=600
134
173
LM_AC_MAX_LOST_WORK_SECONDS=360
136
177
# Should laptop mode tools control readahead?
137
179
CONTROL_READAHEAD=1
139
183
# Read-ahead, in kilobytes. You can spin down the disk while playing MP3/OGG
140
184
# by setting the disk readahead to a reasonable size, e.g. 3072 (3 MB).
141
185
# Effectively, the disk will read a complete MP3 at once, and will then spin
142
186
# down while the MP3/OGG is playing. Don't set this too high, because the
143
187
# readahead is applied to _all_ files that are read from disk.
144
189
LM_READAHEAD=3072
145
190
NOLM_READAHEAD=128
147
194
# Should laptop mode tools add the "noatime" option to the mount options when
148
195
# laptop mode is enabled?
149
197
CONTROL_NOATIME=0
199
# Should laptop use relatime instead of noatime? The "relatime" mount option has
200
# more standards-compliant semantics, and allows more applications to work,
201
# while retaining a low level of atime updates (i.e., disk writes).
151
206
# Should laptop mode tools control the hard drive idle timeout settings?
152
208
CONTROL_HD_IDLE_TIMEOUT=1
154
212
# Idle timeout values. (hdparm -S)
155
213
# Default is 2 hours on AC (NOLM_HD_IDLE_TIMEOUT_SECONDS=7200) and 20 seconds
156
214
# for battery and for AC with laptop mode on.
157
216
LM_AC_HD_IDLE_TIMEOUT_SECONDS=20
158
217
LM_BATT_HD_IDLE_TIMEOUT_SECONDS=20
159
218
NOLM_HD_IDLE_TIMEOUT_SECONDS=7200
161
222
# Should laptop mode tools control the hard drive power management settings?
162
224
CONTROL_HD_POWERMGMT=0
164
228
# Power management for HD (hdparm -B values)
165
230
BATT_HD_POWERMGMT=1
166
LM_AC_HD_POWERMGMT=255
167
NOLM_AC_HD_POWERMGMT=255
231
LM_AC_HD_POWERMGMT=254
232
NOLM_AC_HD_POWERMGMT=254
169
236
# Should laptop mode tools control the hard drive write cache settings?
170
238
CONTROL_HD_WRITECACHE=0
172
242
# Write cache settings for HD (hdparm -W values)
173
244
NOLM_AC_HD_WRITECACHE=1
174
245
NOLM_BATT_HD_WRITECACHE=0
175
246
LM_HD_WRITECACHE=0
179
###############################################################################
180
# CPU frequency scaling and throttling
181
# ------------------------------------
183
# Laptop mode tools can automatically adjust your kernel CPU frequency
184
# settings. This includes upper and lower limits and scaling governors.
185
# There is also support for CPU throttling, on systems that don't support
188
# This feature only works on 2.6 kernels.
189
###############################################################################
191
# Should laptop mode tools control the maximum CPU frequency?
192
CONTROL_CPU_FREQUENCY=0
194
# Legal values are "slowest" for the slowest speed that your
195
# CPU is able to operate at, "fastest" for the fastest speed,
196
# "medium" for some value in the middle, or any value listed in
197
# /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies.
198
BATT_CPU_MAXFREQ=medium
199
BATT_CPU_MINFREQ=slowest
200
BATT_CPU_GOVERNOR=ondemand
201
LM_AC_CPU_MAXFREQ=fastest
202
LM_AC_CPU_MINFREQ=slowest
203
LM_AC_CPU_GOVERNOR=ondemand
204
NOLM_AC_CPU_MAXFREQ=fastest
205
NOLM_AC_CPU_MINFREQ=slowest
206
NOLM_AC_CPU_GOVERNOR=performance
208
# Should laptop mode tools control the CPU throttling? This is only useful
209
# on processors that don't have frequency scaling.
210
# (Only works when you have /proc/acpi/processor/CPU*/throttling.)
211
CONTROL_CPU_THROTTLING=0
213
# Legal values are "maximum" for the maximum (slowest) throttling level,
214
# "minimum" for minimum (fastest) throttling level, "medium" for a value
215
# somewhere in the middle (this is usually 50% for P4s), or any value listed
216
# in /proc/acpi/processor/CPU*/throttling. Be careful when using "maximum":
217
# this may be _very_ slow (in fact, with P4s it slows down the processor
219
BATT_CPU_THROTTLING=medium
220
LM_AC_CPU_THROTTLING=medium
221
NOLM_AC_CPU_THROTTLING=minimum
225
###############################################################################
226
# Syslog configuration control
227
# ----------------------------
229
# Syslog daemons have a tendency to sync their log files when entries are
230
# written to them. This causes disks to spin up, which is not very nice when
231
# you're trying to save power. The syslog.conf can be tweaked to *not* sync
232
# a given file, by prepending the log file name with a dash, like this:
234
# mail.* -/var/log/mail/mail.log
236
# Using the following options, you can let laptop mode switch between
237
# different syslog configurations depending on whether you are working on
238
# battery or on AC power. To set this up, start by configuring these options
239
# for your syslog daemon, and then run lm-syslog-setup to create the various
240
# files. Then edit the laptop mode-specific syslog configuration files to
241
# remove the syncs only when laptop mode is active.
242
###############################################################################
244
# Should laptop mode tools control which syslog.conf should be used?
245
CONTROL_SYSLOG_CONF=0
247
# Laptop mode tools controls syslog.conf by replacing /etc/syslog.conf (or
248
# whatever you specify in SYSLOG_CONF) by a link to the files configured here.
249
# NOTE: these files are NOT created by default, and if they do not
250
# exist this feature will not work. You can run the script
251
# /usr/sbin/lm-syslog-setup to set things up.
252
LM_AC_SYSLOG_CONF=/etc/syslog-on-ac-with-lm.conf
253
NOLM_AC_SYSLOG_CONF=/etc/syslog-on-ac-without-lm.conf
254
BATT_SYSLOG_CONF=/etc/syslog-on-battery.conf
256
# Signal this program when syslog.conf has been replaced.
257
SYSLOG_CONF_SIGNAL_PROGRAM=syslogd
259
# This is the syslog configuration file that should be replaced by a link to the
261
SYSLOG_CONF=/etc/syslog.conf
265
###############################################################################
269
# Using these settings, you can let laptop mode tools control the X display
271
###############################################################################
273
# Should laptop mode tools control DPMS standby settings for X displays?
274
CONTROL_DPMS_STANDBY=0
276
# These settings specify the standby timeout for the X display,
277
# in seconds. The suspend and poweroff timeouts are somewhat
278
# larger values derived from these values.
279
BATT_DPMS_STANDBY=300
280
LM_AC_DPMS_STANDBY=1200
281
NOLM_AC_DPMS_STANDBY=1200
285
###############################################################################
289
# Using these settings, you can let laptop mode tools control the terminal
291
###############################################################################
293
# Should laptop mode tools control terminal blanking settings?
296
# These settings specify the blanking and powerdown timeouts. Note that
297
# the powerdown timeout is counted from the moment the screen is blanked,
298
# i.e. BLANK_MINUTES=2 and POWERDOWN_MINUTES=5 means the screen powers
299
# down after 7 minutes of inactivity. The range for all these settings is
300
# 1 to 60 minutes, or 0 to disable.
301
BATT_TERMINAL_BLANK_MINUTES=1
302
BATT_TERMINAL_POWERDOWN_MINUTES=2
303
LM_AC_TERMINAL_BLANK_MINUTES=10
304
LM_AC_TERMINAL_POWERDOWN_MINUTES=10
305
NOLM_AC_TERMINAL_BLANK_MINUTES=10
306
NOLM_AC_TERMINAL_POWERDOWN_MINUTES=50
310
###############################################################################
311
# Auto-hibernation settings
312
# -------------------------
314
# Using these settings, you can make laptop mode tools automatically put your
315
# computer into hibernation when the battery level goes critically low.
317
# This feature only works on ACPI, and only works on computers whose batteries
318
# give off battery events often enough.
319
###############################################################################
321
# Should laptop mode tools perform auto-hibernation?
322
ENABLE_AUTO_HIBERNATION=0
324
# The hibernation command that is to be executed when auto-hibernation
326
HIBERNATE_COMMAND=/usr/sbin/hibernate
328
# Auto-hibernation battery level threshold, in percentage of the battery's
330
AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT=2
332
# Enable this to auto-hibernate if the battery reports that its level is
334
AUTO_HIBERNATION_ON_CRITICAL_BATTERY_LEVEL=1
338
###############################################################################
339
# Start/Stop Programs settings
340
# ----------------------------
342
# Laptop mode tools can automatically start and stop programs when entering
343
# various power modes. Put scripts accepting "start" and "stop" parameters
344
# in the directories /etc/laptop-mode/batt-stop, batt-start, lm-ac-stop,
345
# lm-ac-start, nolm-ac-stop and nolm-ac-start. Laptop mode will call the
346
# scripts in a state-"stop" directory with the "stop" parameter when entering
347
# the state in question, and it will call the same scripts with the "start"
348
# parameter when leaving the state. Scripts in a state-"start" directory are
349
# called with the "start" parameter when the specified state is entered, and
350
# with the "stop" parameter when the specified state is left.
351
###############################################################################
353
# Should laptop mode start and stop programs?
358
251
###############################################################################
359
252
# Settings you probably don't want to touch