View previous topic :: View next topic |
Author |
Message |
curmudgeon Veteran

Joined: 08 Aug 2003 Posts: 1745
|
Posted: Fri May 06, 2011 9:51 am Post subject: hard drive won't go to standby |
|
|
From http://www.gentoo.org/doc/en/power-management-guide.xml:
Code: |
The second possibility is using hdparm. Skip this if you are using laptop-mode. Otherwise, edit /etc/conf.d/hdparm and add the following values to your drive entries. This example assumes your hard drive is called hda:
Code Listing 5.5: Using /etc/conf.d/hdparm for disk standby
hda_args="-q -S12"
This will activate power management for your hard drive. If you ever want to deactivate power management, you can edit /etc/conf.d/hdparm and change the values to -q -S0, or just run hdparm -q -S0 /dev/hda.
See man hdparm for the options. Though you can always start hdparm manually when you are on battery power by running /etc/init.d/hdparm start, it's much easier to automate its startup and shutdown. To do so, add hdparm to the battery runlevel so that it will automatically enable power management.
|
So:
Code: |
# hdparm -S12 /dev/sda
/dev/sda:
setting standby to 12 (1 minutes)
|
The hard drive never spins down, though. I always get:
Code: |
# hdparm -C /dev/sda
/dev/sda:
drive state is: active/idle
|
I don't know what the hard drive could be doing. There are only a few lines each day in /var/log/messages (leases renewing and such). Any thoughts? |
|
Back to top |
|
 |
dE_logics Advocate


Joined: 02 Jan 2009 Posts: 2336 Location: $TERM
|
Posted: Sat May 07, 2011 3:49 am Post subject: |
|
|
I think the best way to see if the HDD has spins down is to use your ears.
Does it spin down with --idle-immediate or -y (try both)?
And what's the output of -B? _________________ My blog |
|
Back to top |
|
 |
theBlackDragon l33t

Joined: 23 Nov 2002 Posts: 768 Location: Belgium
|
Posted: Mon Jun 06, 2011 4:20 pm Post subject: |
|
|
I seem to be having the same problem which started recently as my harddrives used to spin down correctly before.
There don't seem to be any open files on the drives ("lsof|grep /mnt" doesn't return anything) and manually suspending the drive with "hdparm -y" works just fine (and they stay spun down, so it's not like something is actually using them). _________________ Fvwm|Fvwm forum |
|
Back to top |
|
 |
|