~tormodvolden/ubuntu/karmic/laptop-mode-tools/dupl-hook

« back to all changes in this revision

Viewing changes to Documentation/faq.html

  • Committer: Bazaar Package Importer
  • Author(s): Tollef Fog Heen
  • Date: 2006-07-10 13:42:58 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060710134258-p25bl1rnxv021vz0
Tags: 1.31-1ubuntu1
Sync with Debian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
2
<html>
 
3
<head>
 
4
  <meta content="text/html; charset=ISO-8859-1"
 
5
 http-equiv="content-type">
 
6
  <title>Laptop Mode / Laptop Mode Tools FAQ</title>
 
7
</head>
 
8
<body>
 
9
<!--NOTINTEXT-->Return to the <a href="../index.html">Laptop Mode home page</a>, the
 
10
<!--NOTINTEXT--><a href="index.html">Laptop Mode Tools home page</a> or to 
 
11
<!--NOTINTEXT--><a href="../../index.html">Bart Samwel's home page</a>.<br>
 
12
 
 
13
 
 
14
<h1 style="margin-bottom: 0px;">
 
15
        Laptop Mode and Laptop Mode Tools FAQ
 
16
</h1>
 
17
<br>
 
18
 
 
19
 
 
20
<h2 style="margin-top: 0px; margin-bottom: 0px;">
 
21
        1. Things You Might Want To Know
 
22
</h2>
 
23
<br>
 
24
 
 
25
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
26
        Linux Journal article
 
27
</h3>
 
28
<br>
 
29
 
 
30
There's an article in the Linux Journal September 2004 issue.
 
31
It can be found online at <a href="http://www.linuxjournal.com/article/7539">http://www.linuxjournal.com/article/7539</a>.
 
32
It's not really up-to-date anymore BTW. The most important conclusion from the
 
33
article is that it doesn't really pay to increase the spun-down time over a
 
34
minute. I often get mails in which people tell me that they want to go up to
 
35
one hour or more without disk activity. This is nice for noise reduction purposes,
 
36
but not for saving power.<br>
 
37
<br>
 
38
 
 
39
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
40
        FOSDEM 2006 presentation
 
41
</h3>
 
42
<br>
 
43
 
 
44
I did a talk on power saving, Laptop Mode and the Laptop Mode Tools at FOSDEM
 
45
2006. A pdf version of the presentation can be downloaded
 
46
<a href="presentations/Laptop Mode FOSDEM 2006.pdf">here</a>.<br>
 
47
<br>
 
48
 
 
49
 
 
50
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
51
        Spinning Down May Kill Hard Drives
 
52
</h3>
 
53
<br>
 
54
 
 
55
Desktop hard drives are usually rated for only 40,000-50,000 spinups,
 
56
and one spinup every 10 minutes will kill your 40,000-spinup HD in 277 days.
 
57
So this is NOT recommended for server use, unless you increase the spinup
 
58
interval dramatically, to say once every hour or two. Laptop hard drives are
 
59
usually rated for around 300,000 spinups, so those will last about 2083 days or
 
60
6 years if you have them powered on 24-7.<br>
 
61
<br>
 
62
 
 
63
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
64
        If my machine crashes or runs out of power, will I lose all my work?
 
65
</h3>
 
66
<br>
 
67
 
 
68
If you have laptop mode enabled and your machine crashes, then you will lose up
 
69
to MAX_LOST_WORK_SECONDS seconds of work. If you really need to have something
 
70
written to disk, issue the "sync" command. If you have laptop mode enabled
 
71
and your machine runs out of power, you will not lose as much work (provided
 
72
you have an ACPI laptop, as most current PC laptops are) because laptop mode
 
73
is automatically disabled when the battery almost runs out.<br>
 
74
<br>
 
75
 
 
76
<h2 style="margin-top: 0px; margin-bottom: 0px;">
 
77
        2. Relationship with Other Packages
 
78
</h2>
 
79
<br>
 
80
 
 
81
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
82
        What does all this have to do with Smart Spindown?
 
83
</h3>
 
84
<br>
 
85
 
 
86
Nothing really. You use Smart Spindown if your hard drive can't spin
 
87
down by itself, or if you're irritated by repeated spindown attempts
 
88
while you're actually actively using the computer and don't want
 
89
spindowns at all. It's not well-integrated with Laptop Mode Tools and
 
90
it isn't maintained at the moment, so I'd advise against using it. :)<br>
 
91
<br>
 
92
 
 
93
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
94
        What is the relationship between Laptop Mode Tools and the script
 
95
        in the kernel documentation?
 
96
</h3>
 
97
<br>
 
98
 
 
99
Laptop Mode Tools is a fork of the script in the kernel documentation.
 
100
The script in the kernel documentation is currently pretty much
 
101
unmaintained AFAIK, so I don't recommend using it.<br>
 
102
<br>
 
103
 
 
104
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
105
        What is the relationship between the Ubuntu package "laptop-mode"
 
106
        and the Debian package "laptop-mode-tools"?
 
107
</h3>
 
108
<br>
 
109
 
 
110
There is a big thread about this on ubuntuforums,
 
111
<a href="http://ubuntuforums.org/showthread.php?t=36976">http://ubuntuforums.org/showthread.php?t=36976</a>
 
112
. Ubuntu has a rather outdated package for controlling
 
113
laptop mode, based on the aforementioned kernel documentation script.
 
114
Laptop mode tools basically is a much more recent version of the same
 
115
code. Ubuntu apparently also has laptop-mode-tools available, so I
 
116
advise you to use this package instead of laptop-mode. If it's not in
 
117
the Ubuntu repository, you can download it from a Debian apt source or
 
118
from the laptop mode tools homepage.<br>
 
119
<br>
 
120
 
 
121
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
122
        How does Laptop Mode Tools relate to noflushd?
 
123
</h3>
 
124
<br>
 
125
 
 
126
It doesn't. Don't install both together. Noflushd does the same thing for
 
127
your disks as laptop mode tools if you don't run a journaling filesystem
 
128
such as ext3, ReiserFS or XFS. If you do, Laptop Mode Tools is currently your
 
129
only option.<br>
 
130
<br>
 
131
 
 
132
 
 
133
<h2 style="margin-top: 0px; margin-bottom: 0px;">
 
134
        3. Is Laptop Mode Enabled?
 
135
</h2>
 
136
<br>
 
137
 
 
138
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
139
        How do I check if laptop mode is enabled?
 
140
</h3>
 
141
<br>
 
142
 
 
143
Do <span style="font-family: monospace;">cat /proc/sys/vm/laptop_mode</span>.
 
144
If it contains a nonzero value, then laptop mode is enabled, if it says
 
145
0, then it isn't.<br>
 
146
<br>
 
147
 
 
148
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
149
        What's <span style="font-family: monospace;">/var/run/laptop-mode-enabled</span>
 
150
        got to do with things?
 
151
</h3>
 
152
<br>
 
153
 
 
154
Well, this file is created and destroyed by the
 
155
<span style="font-family: monospace;">laptop-mode</span>
 
156
init script to enable/disable laptop mode activity. If this file is not present,
 
157
then laptop mode tools will not do a thing except disable itself, even when you
 
158
unplug your computer from the mains.<br>
 
159
<br>
 
160
 
 
161
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
162
        And what about <span style="font-family: monospace;">/etc/default/laptop-mode</span>?
 
163
</h3>
 
164
<br>
 
165
 
 
166
That's only supported for backward compatibility with the Ubuntu <span
 
167
 style="font-family: monospace;">laptop-mode</span> package. It
 
168
contains a setting using which you can enable or disable laptop mode
 
169
entirely.<br>
 
170
<br>
 
171
 
 
172
 
 
173
<h2 style="margin-top: 0px; margin-bottom: 0px;">
 
174
        4. Configuration Questions / Issues
 
175
</h2>
 
176
<br>
 
177
 
 
178
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
179
        Can I force laptop mode on/off?
 
180
</h3>
 
181
<br>
 
182
 
 
183
Yes, kind of. If you want to manually control laptop mode, you need to set all ENABLE_LAPTOP_MODE_* to 1, and then control laptop mode by manually calling the <span style="font-style: italic;">/etc/init.d/laptop-mode</span> script with the "start" and "stop" arguments.<br>
 
184
<br>
 
185
Note that the <span style="font-style: italic;">/usr/sbin/laptop_mode</span> command does not support the "start" and "stop" commands anymore. These commands interfere with the low-battery detection code, and they default to "auto" for that reason. This design flaw will be corrected by the 2.x major release, which will feature a profile-based configuration system that will allow manual profile switching without interfering with the low-battery detection code.<br>
 
186
<br>
 
187
 
 
188
 
 
189
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
190
        I have two hard drives, can I configure Laptop Mode to affect only
 
191
        one of them?
 
192
</h3>
 
193
<br>
 
194
 
 
195
Set HD="/dev/hdX /dev/hdY" in <span style="font-style: italic;">/etc/laptop-mode/laptop-mode.conf</span>,
 
196
where /dev/hdX and /dev/hdY are the device names that you want laptop
 
197
mode to affect. This doesn't quite work though: the kernel switch
 
198
(which delays all writes) doesn't discriminate between drives. You can
 
199
also limit which partitions are affected by the remounting, using the
 
200
PARTITIONS configuration setting, but again, this doesn't fully
 
201
disable laptop mode for the other partitions.<br>
 
202
<br>
 
203
 
 
204
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
205
        I set PARTITIONS and now it doesn't work anymore
 
206
        <span style="font-style: italic;">at all</span>.
 
207
</h3>
 
208
<br>
 
209
 
 
210
You have to include the default partitions (the partitions of the
 
211
drives listed in the HD configuration setting) as well. In version 1.06
 
212
and higher you can use the "auto" keyword to
 
213
indicate "and remount all of the default ones as well". "Default" here
 
214
means "partitions that contain the device name of a hard drive in HD",
 
215
i.e. if your partition is /dev/hda3 and you have HD=/dev/hda, then
 
216
/dev/hda3 is part of the default partitions, but if it is aptly named
 
217
/dev/hdx7 then it isn't. :)<br>
 
218
<br>
 
219
 
 
220
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
221
        I set REMOUNT_PARTITIONS to "/ /mnt /usr" and it doesn't work.
 
222
</h3>
 
223
<br>
 
224
 
 
225
You have to include the<span style="font-style: italic;"> </span>partitions'
 
226
<span style="font-style: italic;">devices</span>, not their mount
 
227
points. So you should list things like "/dev/hda2 /dev/hdb1". If you're
 
228
using version 1.06 or higher then you don't have this problem, as this
 
229
version supports mount points as well as device names in
 
230
REMOUNT_PARTITIONS (or PARTITIONS, as it's called in the new config
 
231
file format introduced in version 1.07).<br>
 
232
<br>
 
233
 
 
234
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
235
        Why does syslogd sync all the time? Can I turn this off?
 
236
</h3>
 
237
<br>
 
238
 
 
239
Yes, you can. In syslog.conf, you have to place a dash (-) before the
 
240
log file name, e.g. the line <span style="font-family: monospace;">kern.*
 
241
/var/log/kern.log</span> becomes <span style="font-family: monospace;">kern.*
 
242
-/var/log/kern.log</span>. In addition, you can use <span
 
243
 style="font-family: monospace;">lm-syslog-setup</span> (included in
 
244
laptop mode tools) to use different syslog.conf files based on whether
 
245
you're running on battery or on AC power. This creates three different <span
 
246
 style="font-family: monospace;">syslog.conf</span> files in <span
 
247
 style="font-family: monospace;">/etc</span>: <span
 
248
 style="font-family: monospace;">syslog-on-battery.conf</span> for
 
249
battery mode, <span style="font-family: monospace;">syslog-on-ac-with-lm.conf</span>
 
250
for AC mode with Laptop Mode enabled, and <span
 
251
 style="font-family: monospace;">syslog-on-ac-without-lm.conf</span>
 
252
for AC mode with Laptop Mode disabled. Laptop mode tools will then take
 
253
care of syslog.conf, by making it a link to the appropriate config file
 
254
based on the power and laptop mode state. After running <span
 
255
 style="font-family: monospace;">lm-syslog-setup</span>, you can
 
256
perhaps modify the "battery" version of the syslog.conf so that it
 
257
never syncs, while leaving the syncs intact when you're on AC.<br>
 
258
<br>
 
259
 
 
260
 
 
261
 
 
262
<h2 style="margin-top: 0px; margin-bottom: 0px;">
 
263
        5. Spinup Debugging
 
264
</h2>
 
265
<br>
 
266
 
 
267
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
268
        My disk spins up all the time and I have no clue what causes this.
 
269
        Can I debug this?
 
270
</h3>
 
271
<br>
 
272
 
 
273
Yes, you can. But first, check that you have modified your syslog.conf
 
274
to not sync, as described in the next question. To debug disk activity,
 
275
you can do:<br>
 
276
<br>
 
277
<div style="margin-left: 40px;"><span style="font-family: monospace;">echo
 
278
1 &gt; /proc/sys/vm/block_dump<br>
 
279
<br>
 
280
</span><span style="font-style: italic;">(</span><span
 
281
 style="font-weight: bold; font-style: italic;">Warning:</span><span
 
282
 style="font-style: italic;"> you <span
 
283
 style="text-decoration: underline;">must</span> disable syslogd before
 
284
you do this, or you must make sure that kernel output is not logged. If
 
285
you forget this, your system may get into a feedback loop, where
 
286
syslogd causes disk activity, this causes kernel output, and this
 
287
causes syslogd to do more disk activity, etcetera!)<br>
 
288
<br>
 
289
</span></div>
 
290
This enables file/disk activity debugging in the kernel. You can read
 
291
the output using <span style="font-family: monospace;">dmesg</span>.
 
292
When you're done, disable block dump using<br>
 
293
<br>
 
294
<div style="margin-left: 40px;"><span style="font-family: monospace;">echo
 
295
0 &gt; /proc/sys/vm/block_dump<br>
 
296
<br>
 
297
</span></div>
 
298
<span style="font-weight: bold;">NOTE: </span>Recently a tool called <span
 
299
 style="font-weight: bold; font-style: italic;">lm-profiler</span> was
 
300
added to laptop-mode-tools, which does all this for you. It also
 
301
detects network services that you might not want running, and it can
 
302
install the services' init scripts into laptop mode's new
 
303
"start/stop"&nbsp; directory structure, so that they are automatically
 
304
stopped when you are working on battery.<span
 
305
 style="font-family: monospace;"></span><span
 
306
 style="font-weight: bold; font-style: italic;"></span><br>
 
307
 <br>
 
308
 
 
309
 
 
310
<h2 style="margin-top: 0px; margin-bottom: 0px;">
 
311
        6. Common Problems
 
312
</h2>
 
313
<br>
 
314
 
 
315
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
316
        When I start laptop mode, it complains about an unknown mount option.
 
317
</h3>
 
318
<br>
 
319
 
 
320
<ul>
 
321
  <li><span style="font-style: italic; font-weight: bold;">Least likely
 
322
option:</span> You could have a 2.4 kernel version that doesn't support
 
323
the <span style="font-family: monospace;">commit=</span> option for
 
324
ReiserFS. To be honest, I have no clue whether that support was ever
 
325
backported, so if anyone reading this has a 2.4 kernel running, try
 
326
remounting your reiserfs partition with <span
 
327
 style="font-family: monospace;">-o remount,commit=5</span> and tell me
 
328
if it complains about an unknown mount option.</li>
 
329
  <li><span style="font-weight: bold;"><span style="font-style: italic;">Most
 
330
likely option: </span></span>Your root filesystem is mounted as ext2
 
331
instead of ext3, because you did all of the following:<br>
 
332
    <ul>
 
333
      <li>You compiled ext3 as a kernel module.</li>
 
334
      <li>You don't use an initrd, or if you do, it does <span
 
335
 style="font-style: italic;">not</span> load the ext3 module.</li>
 
336
      <li>You did not explicitly specify the rootfstype as "ext3" in
 
337
the kernel
 
338
boot parameters. This means it is&nbsp; autodetected as ext2 at boot
 
339
time,
 
340
because it lacks an ext3 module.</li>
 
341
    </ul>
 
342
This problem is very nasty, because it is impossible to detect it -- 
 
343
<span style="font-family: monospace;">/proc/mounts</span> will list the
 
344
rootfstype as <span style="font-family: monospace;">rootfs</span>,
 
345
which tells you nothing, and <span style="font-family: monospace;">mount</span>
 
346
as well as <span style="font-family: monospace;">/etc/mtab</span> will
 
347
tell you the fstype is in fact ext3 -- which is an incorrect <span
 
348
 style="font-style: italic;">guess</span>, taken from <span
 
349
 style="font-family: monospace;">/etc/fstab</span>. It puts your data
 
350
at risk because you do not have journalling enabled, while you think
 
351
you do. I've added a BIG FAT WARNING text when this happens in version
 
352
1.06 of laptop mode tools.<br>
 
353
  </li>
 
354
</ul>
 
355
<br>
 
356
 
 
357
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
358
        My log / laptop_mode output says <span style="font-style: italic;">hdc:
 
359
        drive_cmd: status=0x51 { DriveReady SeekComplete Error }</span>
 
360
</h3>
 
361
<br>
 
362
 
 
363
Then hdc is probably not a hard drive, nor a CD-ROM, and you should
 
364
remove it from the HD parameter in /etc/laptop-mode/laptop-mode.conf.
 
365
Fortunately, this doesn't actually break anything, so you can simply
 
366
ignore the error messages as well. Recent versions of laptop-mode-tools
 
367
correctly autodetect CD-ROM drives, so the error messages should be gone
 
368
if you upgrade to the most recent version.<br>
 
369
<br>
 
370
 
 
371
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
372
        I have an SATA disk and it doesn't work.
 
373
</h3>
 
374
<br>
 
375
 
 
376
Spindown timeouts don't currently work on SATA drives, because the
 
377
Linux kernel does not support that properly. There are patches available
 
378
that add this support. Check out 
 
379
<a href="http://www.thinkwiki.org/wiki/Problems_with_SATA_and_Linux">http://www.thinkwiki.org/wiki/Problems_with_SATA_and_Linux</a>
 
380
for all SATA-on-Linux problems. For laptop mode to work, you want the libata_passthru patch. It will be included
 
381
in the Linux kernel starting from version 2.6.15. Note: You also need a
 
382
recent version of hdparm in order to make this work!<br>
 
383
<br>
 
384
 
 
385
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
386
        I have a SCSI disk and it doesn't work.
 
387
</h3>
 
388
<br>
 
389
 
 
390
Starting from version 1.20 laptop-mode-tools supports SCSI drives.
 
391
You have to make sure you have sdparm installed though!<br>
 
392
<br>
 
393
 
 
394
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
395
        I run Slackware and Laptop Mode isn't initialized correctly on boot.
 
396
</h3>
 
397
<br>
 
398
 
 
399
This is caused by the fact that Slackware doesn't follow the Filesystem Hierarchy Standard
 
400
and it doesn't completely clear /var/run on boot. It will work when you include a call to
 
401
<pre>/etc/rc.d/init.d/laptop-mode restart</pre> in your rc.local.<br>
 
402
<br>
 
403
 
 
404
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
405
        I have an Apple notebook, and when I unplug the AC adapter Laptop
 
406
        Mode isn't enabled automatically.
 
407
</h3>
 
408
<br>
 
409
 
 
410
If you are running <span style="font-style: italic;">pmud</span>, then
 
411
you need to have the line "/usr/sbin/laptop_mode auto" in the file
 
412
/etc/power/pwrctl-local. Version 1.05 and higher add this automatically, I
 
413
just haven't had any reports that this actually works so be warned.
 
414
Versions 1.05 and up also install <span style="font-style: italic;">pbbuttonsd</span>
 
415
support, so that should work fine as well. Report back to me if it doesn't!<br>
 
416
<br>
 
417
 
 
418
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
419
        My system gets horribly slow!
 
420
</h3>
 
421
<br>
 
422
 
 
423
If you don't have that much RAM, you probably want to consider lowering
 
424
the READAHEAD value in <span style="font-style: italic;">/etc/laptop-mode/laptop-mode.conf</span>.
 
425
The default used to be 8MB, it was lowered to 3MB in version 1.05 for
 
426
exactly this reason.<br>
 
427
<br>
 
428
 
 
429
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
430
        I upgraded to version 1.06 or higher and hibernation no longer
 
431
        works / is horribly slow! What causes this?
 
432
</h3>
 
433
<br>
 
434
 
 
435
This is caused by the introduction of write caching control. Apparently
 
436
disbling the write cache makes some drives horribly slow. Set
 
437
DO_WRITECACHE=0 (version 1.06) or CONTROL_HD_WRITECACHE=0 (version 1.07
 
438
upward) to fix this. In a future version, this may be fixed by only
 
439
disabling the write caches when the battery level is low. Note that
 
440
writecache control is disabled by default in more recent versions.<br>
 
441
<br>
 
442
 
 
443
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
444
        I've set LM_BATT_HD_IDLE_TIMEOUT_SECONDS to 20 seconds, but the drive
 
445
        spins down after 5 seconds, what's going on?
 
446
</h3>
 
447
<br>
 
448
 
 
449
Some drives override the idle timeout setting (hdparm -S) when you also
 
450
set an aggressive power management level (hdparm -B). Set
 
451
CONTROL_HD_POWERMGMT=0 (supported from version 1.07) to stop laptop
 
452
mode tools from fiddling with the HD powermanagement setting.<br>
 
453
<br>
 
454
 
 
455
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
456
        I've set LM_BATT_HD_IDLE_TIMEOUT_SECONDS to 5 seconds, but the drive
 
457
        doesn't spin down at all.
 
458
</h3>
 
459
<br>
 
460
 
 
461
Well, some drives have a specific minimum to the idle timeout values they
 
462
support. Try increasing the value to 120 seconds and see if that works, then
 
463
work your way back to the lowest value that still works.<br>
 
464
<br>
 
465
 
 
466
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
467
        I experience system freezes every once in a while, is this normal?
 
468
</h3>
 
469
<br>
 
470
 
 
471
This is a bug in hardware or the Linux kernel,
 
472
triggered by something laptop mode tools does. Try setting
 
473
CONTROL_HD_POWERMGMT=0. This fixes the freezes for some people.
 
474
The default for CONTROL_HD_POWERMGMT was changed to 0 in version 1.11
 
475
for exactly this reason. Otherwise, for now, downgrade to a kernel
 
476
2.6.10 or earlier.<br>
 
477
<br>
 
478
 
 
479
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
480
        Laptop mode causes filesystem corruption.
 
481
</h3>
 
482
<br>
 
483
 
 
484
There has been a lengthy thread on the Linux Kernel mailing list about this,
 
485
and the cause was determined to be the ipw2200 wireless network driver,
 
486
version 1.0.8 (<a href="http://bughost.org/bugzilla/show_bug.cgi?id=821">http://bughost.org/bugzilla/show_bug.cgi?id=821</a>).
 
487
This driver causes random memory corruption after some amount of network
 
488
activity, and it will write a message "Firmware error detected.  Restarting."
 
489
to the kernel output. The memory corruption only happens the first time
 
490
the message is shown (unless you have compiled the driver with some debugging 
 
491
options set), and can corrupt pretty much anything, including filesystem
 
492
(meta)data that resides in memory. The chance that the overwritten data is,
 
493
in fact, filesystem data is larger when you're running laptop mode, because
 
494
laptop mode keeps filesystem data in memory for a longer period of time, thereby
 
495
increasing the proportion of memory that contains filesystem data.<br>
 
496
<br>
 
497
 
 
498
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
499
        I have an LVM partition and it doesn't get remounted.
 
500
</h3>
 
501
<br>
 
502
 
 
503
This could be because laptop mode tools does not notice that the LVM
 
504
partitions are on one of the hard drives that are listed in the HD
 
505
configuration setting. You should list the devices by hand in the
 
506
PARTITIONS configuration setting. (But: also check out the items on
 
507
this configuration setting in the Configuration section of the FAQ!)<br>
 
508
<br>
 
509
 
 
510
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
511
        I started using SELinux / upgraded to Fedora Core 4 and now Laptop
 
512
        Mode doesn't start when I unplug the power cord.
 
513
</h3>
 
514
<br>
 
515
 
 
516
This is caused by SELinux controlling acpid / apmd. How to change this
 
517
in FC4 (contributed by Vesko T. Tomov):<br>
 
518
<ol>
 
519
  <li>Click on Desktop in the panel&nbsp; --&gt; System settings --&gt;
 
520
Security level</li>
 
521
  <li>Enter root password</li>
 
522
  <li>Click on SELinux tab</li>
 
523
  <li>Click on "SELinux Service Protection"</li>
 
524
  <li>Check box next to: Disable SELinux protection for apmd daemon,
 
525
and click OK<br>
 
526
  </li>
 
527
  <li>Restart acpid<br>
 
528
  </li>
 
529
</ol>
 
530
<br>
 
531
 
 
532
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
533
        I run a 2.6.12 Linux kernel. Why does Laptop Mode no longer start
 
534
        when I close the lid?
 
535
</h3>
 
536
<br>
 
537
 
 
538
Some guy decided to delete the whole /proc/acpi/buttons directory,
 
539
without creating a replacement. It was reintroduced in 2.6.13, so I
 
540
suggest that you upgrade.<br>
 
541
<br>
 
542
 
 
543
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
544
        Why doesn't MUTT notice incoming mail anymore?
 
545
</h3>
 
546
<br>
 
547
 
 
548
That's because Laptop Mode Tools remounts your filesystems with the
 
549
"noatime" option, which prevents the updating of access times, while
 
550
mutt is one of the few programs that actually <span
 
551
 style="font-style: italic;">use</span> the access times. Set
 
552
DO_REMOUNT_NOATIME=0 (CONTROL_NOATIME in recent versions) in laptop-mode.conf
 
553
to fix this. Note that the default for this option has been changed to 0 recently.<br>
 
554
<br>
 
555
 
 
556
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
557
        Laptop mode stops working after I resume from hibernate.
 
558
</h3>
 
559
<br>
 
560
 
 
561
Well, you'll have to restart the laptop-mode service after resuming from
 
562
hibernation. The hibernate configuration file has support for starting/stopping
 
563
services, you can use that.<br>
 
564
<br>
 
565
 
 
566
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
567
        After the X screensaver has kicked in once, my X screen blanking
 
568
        settings are reset.
 
569
</h3>
 
570
<br>
 
571
 
 
572
Yes, xscreensaver resets the X screen blanking settings. I'm trying to
 
573
figure out how to fix this. Any ideas? Send me an e-mail!<br>
 
574
<br>
 
575
 
 
576
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
577
        I monitor my drives using SMART, and my drive won't spin down.
 
578
</h3>
 
579
<br>
 
580
 
 
581
Disable automatic offline testing with "smartctl -o 0". It prevents some
 
582
drives from spinning down properly.<br>
 
583
<br>
 
584
 
 
585
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
586
        One of my ext3/reiserfs partitions doesn't get remounted with the
 
587
        commit= option.
 
588
</h3>
 
589
<br>
 
590
 
 
591
Check if it is listed as type "auto" in fstab. Laptop mode tools cannot currently
 
592
detect the filesystem type if it is mounted as type "auto". If you desperately
 
593
need this, drop me a line.<br>
 
594
<br>
 
595
 
 
596
 
 
597
<h2 style="margin-top: 0px; margin-bottom: 0px;">
 
598
        7. Laptop Mode Tools Development / Contribution
 
599
</h2>
 
600
<br>
 
601
 
 
602
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
603
        What are the currently outstanding wishlist items that I shouldn't
 
604
        (or perhaps <span style="font-style: italic;">should</span>) bug the
 
605
        maintainer about?
 
606
</h3>
 
607
<br>
 
608
 
 
609
<ol>
 
610
  <li>Not installing pbbuttonsd support on PC hardware, and not
 
611
installing ACPI+APM support on Mac hardware.</li>
 
612
  <li>It seems that LVM partitions' default settings for noatime are
 
613
not always correctly
 
614
read from /etc/fstab. May be an fstab layout issue or something, I
 
615
haven't been able to reproduce this. If anyone reading this has an LVM
 
616
volume, please try and mark it as "noatime" in fstab, start laptop
 
617
mode, stop laptop mode and check whether the noatime is still there --
 
618
and mail me if it isn't. Thanks!
 
619
  </li>
 
620
</ol>
 
621
<br>
 
622
 
 
623
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
624
        Is there a Laptop Mode mailing list?
 
625
</h3>
 
626
<br>
 
627
 
 
628
No. I'll create one if there is a lot of demand though.<br>
 
629
<br>
 
630
 
 
631
 
 
632
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
633
        I have written this great library called libnosync, will you
 
634
        include it?
 
635
</h3>
 
636
<br>
 
637
 
 
638
You wouldn't be the first. This library can be found in various
 
639
incarnations on the web, and I think there are at least half a dozen
 
640
people who have contacted me saying they either wrote this library, or
 
641
they were thinking about doing it. No, I will not include it in laptop
 
642
mode tools, as laptop mode tools is an architecture independent
 
643
package. I might add <span style="font-style: italic;">support</span>
 
644
for enabling/disabling it together with laptop mode though. I have some
 
645
plans to build a clean, configurable version of this library (which
 
646
would allow control at the user and process level, i.e. "disallow sync
 
647
only for emacs and vi, but not when they're run by root" and which
 
648
would be able to report all syncs to a log file). This would become a
 
649
separate package though!<br>
 
650
<br>
 
651
 
 
652
 
 
653
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
654
        I have a great idea for saving more power. Will you include it in
 
655
        Laptop Mode Tools?
 
656
</h3>
 
657
<br>
 
658
 
 
659
If you can write it as a plugin, to be placed in <span
 
660
 style="font-style: italic;">/etc/laptop-mode/batt-start</span> or the
 
661
like, then you can put it on the web yourself, and I'll gladly link to
 
662
your site. I'll even put it on my site, if you don't have a website to
 
663
put it on. If it's more complicated than that, or if it will benefit a
 
664
lot of people, then I'll consider including it.<br>
 
665
<br>
 
666
 
 
667
 
 
668
<h2 style="margin-top: 0px; margin-bottom: 0px;">
 
669
        8. Other Questions
 
670
</h2>
 
671
<br>
 
672
 
 
673
<h3 style="margin-top: 0px; margin-bottom: 0px;">
 
674
        What if my question isn't in here?
 
675
</h3>
 
676
<br>
 
677
 
 
678
Read the manual pages (the one you want to read is the one called <span
 
679
 style="font-style: italic;">laptop-mode.conf</span>). If that doesn't
 
680
give you the answer, contact <a href="mailto:bart@samwel.tk">Bart
 
681
Samwel (bart@samwel.tk)</a>.<br>
 
682
<br>
 
683
 
 
684
</body>
 
685
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script><script type="text/javascript"> _uacct = "UA-62629-3"; urchinTracker(); </script> </html>