~ubuntu-branches/debian/squeeze/laptop-mode-tools/squeeze

« back to all changes in this revision

Viewing changes to etc/laptop-mode/laptop-mode.conf

  • Committer: Bazaar Package Importer
  • Author(s): Bart Samwel
  • Date: 2008-07-15 12:47:01 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080715124701-kaj9itpwjfpjrr0m
Tags: 1.45-1
* New upstream version 1.45.
* New upstream version 1.44:
  * Strip non-numeric suffixes from kernel minor version number.
    Closes: #488950.
  * Remove spurious error message on machines that don't have 
    /sys/class/power_supply. Closes: #490167.
  * Fix incorrect path to laptop-mode.conf in the laptop-mode.conf(8)
    manual page. Closes: #488261.
  * Add sched-mc-power-savings module. Closes: #490587.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
#    CONTROL_something=0/1   Determines whether Laptop Mode Tools controls 
8
8
#                            something
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
#                            active
11
12
#    AC_something=value      Value of "something" when the computer is running
12
13
#                            on AC power
13
 
#    BATT_something=value    Value of "something when the computer is running on
14
 
#                            battery power
 
14
#    BATT_something=value    Value of "something when the computer is running
 
15
#                            on battery power
15
16
#
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
21
 
# of power state.
 
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.
22
23
#
23
24
# Some options only work on ACPI systems. They are marked ACPI-ONLY.
24
25
#
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.
 
29
#
 
30
 
31
# Modules
 
32
# -------
 
33
#
 
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!
 
37
#
28
38
###############################################################################
29
39
 
30
40
 
34
44
# -----------------------
35
45
###############################################################################
36
46
 
 
47
 
 
48
#
37
49
# Set this to 1 if you want to see a lot of information when you start/stop 
38
50
# laptop_mode.
 
51
#
39
52
VERBOSE_OUTPUT=0
40
53
 
41
54
 
51
64
# settings using the CONTROL_... options further down in this config file.
52
65
###############################################################################
53
66
 
 
67
 
 
68
#
54
69
# Enable laptop mode when on battery power.
 
70
#
55
71
ENABLE_LAPTOP_MODE_ON_BATTERY=1
56
72
 
 
73
 
 
74
#
57
75
# Enable laptop mode when on AC power.
 
76
#
58
77
ENABLE_LAPTOP_MODE_ON_AC=0
59
78
 
 
79
 
 
80
#
60
81
# Enable laptop mode when the laptop's lid is closed, even when we're on AC
61
82
# power? (ACPI-ONLY)
 
83
#
62
84
ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED=0
63
85
 
64
86
 
82
104
# Disabling data loss sensitive features is ACPI-ONLY.
83
105
###############################################################################
84
106
 
 
107
 
 
108
#
85
109
# Disable all data loss sensitive features when the battery level (in % of the
86
110
# battery capacity) reaches this value.
 
111
#
87
112
MINIMUM_BATTERY_CHARGE_PERCENT=3
88
113
 
 
114
 
 
115
#
89
116
# Disable data loss sensitive features when the battery reports its state
90
117
# as "critical".
 
118
#
91
119
DISABLE_LAPTOP_MODE_ON_CRITICAL_BATTERY_LEVEL=1
92
120
 
93
121
 
100
128
# devices and partitions are affected by laptop mode.
101
129
###############################################################################
102
130
 
 
131
 
 
132
#
103
133
# The drives that laptop mode controls.
104
134
# Separate them by a space, e.g. HD="/dev/hda /dev/hdb". The default is a
105
135
# wildcard, which will get you all your IDE and SCSI/SATA drives.
 
136
#
106
137
HD="/dev/[hs]d[abcdefgh]"
107
138
 
 
139
 
 
140
#
108
141
# The partitions (or mount points) that laptop mode controls.
109
142
# Separate the values by spaces. Use "auto" to indicate all partitions on drives
110
143
# listed in HD. You can add things to "auto", e.g. "auto /dev/hdc3". You can
111
144
# also specify mount points, e.g. "/mnt/data".
 
145
#
112
146
PARTITIONS="auto /dev/mapper/*"
113
147
 
114
148
 
115
 
# If this is enabled, laptop mode tools will assume that SCSI drives are really
116
 
# SATA drives that only _look_ like SCSI drives, and will use hdparm to control
117
 
# them. Set this to 0 if you have /dev/sd devices and you want laptop mode
118
 
# tools to use the "sdparm" command to control them. 
 
149
#
 
150
# If this is enabled, laptop mode tools will assume that SCSI drives are
 
151
# really SATA drives that only _look_ like SCSI drives, and will use hdparm
 
152
# to control them. Set this to 0 if you have /dev/sd devices and you want
 
153
# laptop mode tools to use the "sdparm" command to control them. 
 
154
#
119
155
ASSUME_SCSI_IS_SATA=1
120
156
 
121
157
 
127
163
# parameters of your hard drives and file systems.
128
164
###############################################################################
129
165
 
 
166
 
 
167
#
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.
 
171
#
133
172
LM_BATT_MAX_LOST_WORK_SECONDS=600
134
173
LM_AC_MAX_LOST_WORK_SECONDS=360
135
174
 
 
175
 
 
176
#
136
177
# Should laptop mode tools control readahead?
 
178
#
137
179
CONTROL_READAHEAD=1
138
180
 
 
181
 
 
182
#
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.
 
188
#
144
189
LM_READAHEAD=3072
145
190
NOLM_READAHEAD=128
146
191
 
 
192
 
 
193
#
147
194
# Should laptop mode tools add the "noatime" option to the mount options when 
148
195
# laptop mode is enabled?
 
196
#
149
197
CONTROL_NOATIME=0
150
198
 
 
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).
 
202
USE_RELATIME=1
 
203
 
 
204
 
 
205
#
151
206
# Should laptop mode tools control the hard drive idle timeout settings?
 
207
#
152
208
CONTROL_HD_IDLE_TIMEOUT=1
153
209
 
 
210
 
 
211
#
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.
 
215
#
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
160
219
 
 
220
 
 
221
#
161
222
# Should laptop mode tools control the hard drive power management settings?
 
223
#
162
224
CONTROL_HD_POWERMGMT=0
163
225
 
 
226
 
 
227
#
164
228
# Power management for HD (hdparm -B values)
 
229
#
165
230
BATT_HD_POWERMGMT=1
166
 
LM_AC_HD_POWERMGMT=255
167
 
NOLM_AC_HD_POWERMGMT=255
168
 
 
 
231
LM_AC_HD_POWERMGMT=254
 
232
NOLM_AC_HD_POWERMGMT=254
 
233
 
 
234
 
 
235
#
169
236
# Should laptop mode tools control the hard drive write cache settings?
 
237
#
170
238
CONTROL_HD_WRITECACHE=0
171
239
 
 
240
 
 
241
#
172
242
# Write cache settings for HD (hdparm -W values)
 
243
#
173
244
NOLM_AC_HD_WRITECACHE=1
174
245
NOLM_BATT_HD_WRITECACHE=0
175
246
LM_HD_WRITECACHE=0
176
247
 
177
248
 
178
249
 
179
 
###############################################################################
180
 
# CPU frequency scaling and throttling
181
 
# ------------------------------------
182
 
#
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
186
 
# frequency scaling.
187
 
#
188
 
# This feature only works on 2.6 kernels.
189
 
###############################################################################
190
 
 
191
 
# Should laptop mode tools control the maximum CPU frequency?
192
 
CONTROL_CPU_FREQUENCY=0
193
 
 
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
207
 
 
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
212
 
 
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
218
 
# by a factor 8).
219
 
BATT_CPU_THROTTLING=medium
220
 
LM_AC_CPU_THROTTLING=medium
221
 
NOLM_AC_CPU_THROTTLING=minimum
222
 
 
223
 
 
224
 
 
225
 
###############################################################################
226
 
# Syslog configuration control
227
 
# ----------------------------
228
 
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:
233
 
#
234
 
#       mail.*          -/var/log/mail/mail.log
235
 
#
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
 
###############################################################################
243
 
 
244
 
# Should laptop mode tools control which syslog.conf should be used?
245
 
CONTROL_SYSLOG_CONF=0
246
 
 
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
255
 
 
256
 
# Signal this program when syslog.conf has been replaced.
257
 
SYSLOG_CONF_SIGNAL_PROGRAM=syslogd
258
 
 
259
 
# This is the syslog configuration file that should be replaced by a link to the
260
 
# other files.
261
 
SYSLOG_CONF=/etc/syslog.conf
262
 
 
263
 
 
264
 
 
265
 
###############################################################################
266
 
# X display settings
267
 
# ------------------
268
 
#
269
 
# Using these settings, you can let laptop mode tools control the X display
270
 
# standby timeouts.
271
 
###############################################################################
272
 
 
273
 
# Should laptop mode tools control DPMS standby settings for X displays?
274
 
CONTROL_DPMS_STANDBY=0
275
 
 
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
282
 
 
283
 
 
284
 
 
285
 
###############################################################################
286
 
# Terminal settings
287
 
# -----------------
288
 
#
289
 
# Using these settings, you can let laptop mode tools control the terminal
290
 
# blanking timeouts.
291
 
###############################################################################
292
 
 
293
 
# Should laptop mode tools control terminal blanking settings?
294
 
CONTROL_TERMINAL=0
295
 
 
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
307
 
 
308
 
 
309
 
 
310
 
###############################################################################
311
 
# Auto-hibernation settings
312
 
# -------------------------
313
 
#
314
 
# Using these settings, you can make laptop mode tools automatically put your
315
 
# computer into hibernation when the battery level goes critically low.
316
 
#
317
 
# This feature only works on ACPI, and only works on computers whose batteries
318
 
# give off battery events often enough.
319
 
###############################################################################
320
 
 
321
 
# Should laptop mode tools perform auto-hibernation?
322
 
ENABLE_AUTO_HIBERNATION=0
323
 
 
324
 
# The hibernation command that is to be executed when auto-hibernation
325
 
# is triggered.
326
 
HIBERNATE_COMMAND=/usr/sbin/hibernate
327
 
 
328
 
# Auto-hibernation battery level threshold, in percentage of the battery's
329
 
# total capacity.
330
 
AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT=2
331
 
 
332
 
# Enable this to auto-hibernate if the battery reports that its level is
333
 
# "critical".
334
 
AUTO_HIBERNATION_ON_CRITICAL_BATTERY_LEVEL=1
335
 
 
336
 
 
337
 
 
338
 
###############################################################################
339
 
# Start/Stop Programs settings
340
 
# ----------------------------
341
 
#
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
 
###############################################################################
352
 
 
353
 
# Should laptop mode start and stop programs? 
354
 
CONTROL_START_STOP=1
355
 
 
356
 
 
357
250
 
358
251
###############################################################################
359
252
# Settings you probably don't want to touch
363
256
# for completeness' sake.
364
257
###############################################################################
365
258
 
 
259
 
 
260
#
366
261
# Change mount options on partitions in PARTITIONS? You don't really want to
367
262
# disable this. If you do, then your hard drives will probably not spin down
368
263
# anymore.
 
264
#
369
265
CONTROL_MOUNT_OPTIONS=1
370
266
 
 
267
 
 
268
#
371
269
# Dirty synchronous ratio.  At this percentage of dirty pages the process
372
270
# which calls write() does its own writeback.
 
271
#
373
272
LM_DIRTY_RATIO=60
374
273
NOLM_DIRTY_RATIO=40
375
274
 
 
275
 
 
276
#
376
277
# Allowed dirty background ratio, in percent.  Once DIRTY_RATIO has been
377
278
# exceeded, the kernel will wake pdflush which will then reduce the amount
378
279
# of dirty memory to dirty_background_ratio.  Set this nice and low, so once
379
280
# some writeout has commenced, we do a lot of it.
 
281
#
380
282
LM_DIRTY_BACKGROUND_RATIO=1
381
283
NOLM_DIRTY_BACKGROUND_RATIO=10
382
284
 
 
285
 
 
286
#
383
287
# kernel default settings -- don't touch these unless you know what you're 
384
288
# doing.
 
289
#
385
290
DEF_UPDATE=5
386
291
DEF_XFS_AGE_BUFFER=15
387
292
DEF_XFS_SYNC_INTERVAL=30
388
293
DEF_XFS_BUFD_INTERVAL=1
389
294
DEF_MAX_AGE=30
390
295
 
 
296
 
 
297
#
391
298
# This must be adjusted manually to the value of HZ in the running kernel
392
299
# on 2.4, until the XFS people change their 2.4 external interfaces to work in
393
300
# centisecs. This can be automated, but it's a work in progress that still
394
 
# needs# some fixes. On 2.6 kernels, XFS uses USER_HZ instead of HZ for
 
301
# needs some fixes. On 2.6 kernels, XFS uses USER_HZ instead of HZ for
395
302
# external interfaces, and that is currently always set to 100. So you don't
396
303
# need to change this on 2.6.
 
304
#
397
305
XFS_HZ=100
398
306
 
 
307
 
 
308
#
399
309
# Seconds laptop mode has to to wait after the disk goes idle before doing
400
310
# a sync.
 
311
#
401
312
LM_SECONDS_BEFORE_SYNC=2
402
313
 
403
314