Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hard drive won't go to standby
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1745

PostPosted: Fri May 06, 2011 9:51 am    Post subject: hard drive won't go to standby Reply with quote

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
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2336
Location: $TERM

PostPosted: Sat May 07, 2011 3:49 am    Post subject: Reply with quote

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
View user's profile Send private message
theBlackDragon
l33t
l33t


Joined: 23 Nov 2002
Posts: 768
Location: Belgium

PostPosted: Mon Jun 06, 2011 4:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum