You are not logged in.

#1 2011-01-13 09:26:52

9011
Member
Registered: 2010-06-03
Posts: 4

Asus EEE PC Hdparm -B issue

Hello,

I have a Asus  EEE PC 1015pem and run arch with the orginal kernel and I use laptop-mode-tools.

After i installed laptop-mode-tools i begin to hear a clicking noise from the harddrive... I figured out that when i used the laptop on battery the hdparm -B
value was 1, and if I run hdparm -B 254 /dev/sda the clicking noise disappear... So i changed the hdparm -B values in laptop-mode.conf to 254 but when i
reboot the computer still use 1 on battery... So computer doesn't read the values from laptop-mode.conf.

I then put in

hdparm -B 254 /dev/sda

in rc.local and if I start the computer now even if it runs on battery it use the value 254, but the problem is that if I now put in the ac adapter and then unplug it
the computer go back to the 1 value...

So if someone now how I can fix this please tell me smile

Last edited by 9011 (2011-01-13 09:27:48)

Offline

#2 2011-01-15 12:02:49

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

Re: Asus EEE PC Hdparm -B issue

I think the problem lies in the power manager of the DE you run. I found that the only reliable way to force hdparm to 254 is to manually run it, because some DE scripts overwrite it.
OR a script that's to be executed when power adaptor is disconnected with a slight delay so that all other modifiers are run before it:

[root@lightbringer dheart]# cat /usr/local/bin/powersave 
#!/bin/bash
#
sleep 5 &&
hdparm -B 254 /dev/sda

Last edited by Dheart (2011-01-15 12:06:07)


My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...

Offline

Board footer

Powered by FluxBB