You are not logged in.
Hi,
my HDD has a default value of hdparm -B 128 which results in landing and spinning drive's head every 5 seconds.
To not have this, i want to disable power managment by using hdparm -B 255. From man hdparm I read that file /etc/hdparm.conf is sourced. But here comes the problem:
This file is not installed with hdparm package.
After creating this file, it looks like hdparm ignores it.
cat /etc/hdparm.conf
command_line {
hdparm -B 255 /dev/sda
}
But i still see the default value in hdparm -I /dev/sda and HDD turns off every 5 seconds.
Can anyone help me please? Should I report a bug?
By the way I added hdparm -B 255 /dev/sda to /etc/rc.local, so it is executed when booting, but the default value is back after pm-suspend.
Offline
Add a hook. It should look like this
#!/bin/bash
case $1 in
hibernate)
echo "A hook to restore hdparm value on resume"
;;
suspend)
echo "A hook to restore hdparm settings at resume."
;;
thaw)
hdparm -B 255 /dev/sda
;;
resume)
hdparm -B 255 /dev/sda
;;
*) echo "somebody is calling me totally wrong."
;;
esac
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
Thank you for reply Dheart,
unfortunately this won't work, power managment level is back 128 after resuming.
And I don't think this is a right solution of non existing hdparm.conf file.
Last edited by EVRAMP (2009-03-18 19:28:09)
Offline
Put hdparm -B 254 /dev/sda* in /etc/rc.local
The settings aren't remembered after suspend/hibernate.
Last edited by Andy Mack (2009-03-18 20:18:16)
Offline
This is the fix even if it's not a spindown problem:
http://wiki.archlinux.org/index.php/Lap … wn_problem
Offline
Thank you thunderogg, this works for pm-hibernate, but not for pm-suspend.
I created bug report, since there really should be /etc/hdparm.conf as manual page says.
Offline
It works for me.
Offline
For another solution, see https://bbs.archlinux.org/viewtopic.php … 44#p852444
Offline