Advanced Power Management in Ubuntu 11.04 (HDD load cycling)

Associate
Joined
31 Aug 2006
Posts
965
Location
North West
Hi all,

First off I'm a linux/ubuntu novice so bare with me :D

Anyway, I have a relation's netbook here with me which originally had windows 7 starter. The HDD became corrupt through many bad sectors. I have just got a new Western Digital 250GB hdd and installed Ubuntu 11.04 on it. All was great until I began running it on battery power.

The HDD began clicking every 5-10 seconds (load cycling) with the S.M.A.R.T load cycle counter increasing fast. On A/C, the problem vanishes.

After much fumbling around, I found the following code to work:
$ sudo hdparm -B 254 /dev/sda

However it is not persistant, it just reverts back on reboot etc.

Can any of you Linux gurus help me!?!??!? I would like to turn advance power management off forever. The user will just be using it around the house where bumps/bangs aren't too likely.

Many thanks, Luke
 
Fixed! I used laptop-mode-tools and edited the following:

use:
sudo gedit etc/laptop-mode/laptop-mode.conf
in the terminal then adjust the following settings:

CONTROL_HD_IDLE_TIMEOUT=1
LM_AC_HD_IDLE_TIMEOUT_SECONDS=300
LM_BATT_HD_IDLE_TIMEOUT_SECONDS=300
NOLM_HD_IDLE_TIMEOUT_SECONDS=7200
CONTROL_HD_POWERMGMT=1
BATT_HD_POWERMGMT=254
LM_AC_HD_POWERMGMT=254
NOLM_AC_HD_POWERMGMT=254

The hdd clicking has gone away!
 
Back
Top Bottom