You are not logged in.

#1 2008-11-15 21:55:28

jorpheus
Member
Registered: 2008-11-07
Posts: 98

Questions about suggestions (Laptop wiki)

OK, number one:

To allow the CD/DVD rom to spin down after a while, run the following:

/usr/bin/hal-disable-polling --device /dev/scd0

Powertop suggests the same thing. Is this something to be run only once or should I put it in some .conf file somewhere to make it permanent? If so, where?

Hard drive spin down problem

Documented here

To prevent your laptop hard drive from spinning down too often (result of too aggressive APM defaults) do the following:

Add the following to /etc/rc.local

hdparm -B 255 /dev/sdX where X is your hard drive device


Add the following to /etc/pm/sleep.d/50-hdparm_pm

#!/bin/sh

if [ -n "$1" ] && ([ "$1" = "resume" ] || [ "$1" = "thaw" ]); then
    hdparm -B 255 /dev/your-hard-drive > /dev/null
fi

and run "chmod +x /etc/pm/sleep.d/50-hdparm_pm" to make sure it resets after suspend.

Now APM should be turned off for your hard drive.

What I don't understand here is should I do both or is the first useful without the second? Also, is there some side-effect to turning APM off?


And since I'm asking stuff (and hoping for replies tongue), if I use wicd, should I disable netfs in the daemons array in rc.conf?

Last edited by jorpheus (2008-11-15 22:16:52)

Offline

Board footer

Powered by FluxBB