View previous topic :: View next topic |
Author |
Message |
Alan Turing n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/7710549124130084fb647e.gif)
Joined: 10 Sep 2003 Posts: 53 Location: Freiburg, Baden (Germany)
|
Posted: Sat Nov 12, 2011 11:37 pm Post subject: SATA Link Power Management |
|
|
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.
- 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.
- 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 |
|
![](templates/gentoo/images/spacer.gif) |
gorkypl Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 04 Oct 2010 Posts: 444 Location: Kraków, PL
|
Posted: Mon Nov 14, 2011 12:59 am Post subject: Re: SATA Link Power Management |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|