Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SATA Link Power Management
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
Alan Turing
n00b
n00b


Joined: 10 Sep 2003
Posts: 53
Location: Freiburg, Baden (Germany)

PostPosted: Sat Nov 12, 2011 11:37 pm    Post subject: SATA Link Power Management Reply with quote

powertop (tool that helps you find what software is using the most power) has the following suggestion:

Quote:
Enable SATA ALPM link power management via:
echo min_power > /sys/class/scsi_host/host0/link_power_management_policy


If I do so my home server consumes around 0.5W less power. For me this is really a big deal, since my home server consumes only around 15W in idle.


Now I want to enable SATA Link Power Management by default.

  1. I could type the command echo min_power > /sys/class/scsi_host/host0/link_power_management_policy after each boot.
    Obviously not a convenient way. :wink:
  2. Put a script executing this command to /etc/local.d/.
    Is this a good choice?
    E.g., if you want that your hard drive goes to standby after 15(?) minutes, you don't put a script to /etc/local.d/, the "gentoo way" is to put the line sata_all_args="-S 120" to /etc/conf.d/hdparm and add /etc/init.d/hdparm to the default runlevel.

Is there already some init script that I should use to enable this SATA Link Power Management?
Back to top
View user's profile Send private message
gorkypl
Guru
Guru


Joined: 04 Oct 2010
Posts: 444
Location: Kraków, PL

PostPosted: Mon Nov 14, 2011 12:59 am    Post subject: Re: SATA Link Power Management Reply with quote

Alan Turing wrote:

[*] Put a script executing this command to /etc/local.d/.
Is this a good choice?

Yes, the best one.
Just read /etc/local.d/README before (you have to end file with .start and so on).
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