nightmorph    07/07/08 07:48:13

  Modified:             power-management-guide.xml
  Log:
  updated power management guide for bug 184215

Revision  Changes    Path
1.28                 xml/htdocs/doc/en/power-management-guide.xml

file : 
http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/power-management-guide.xml?rev=1.28&view=markup
plain: 
http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/power-management-guide.xml?rev=1.28&content-type=text/plain
diff : 
http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/power-management-guide.xml?r1=1.27&r2=1.28

Index: power-management-guide.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/power-management-guide.xml,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- power-management-guide.xml  30 May 2007 19:09:04 -0000      1.27
+++ power-management-guide.xml  8 Jul 2007 07:48:12 -0000       1.28
@@ -1,6 +1,6 @@
 <?xml version='1.0' encoding="UTF-8"?>
 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
-<!-- $Header: 
/var/cvsroot/gentoo/xml/htdocs/doc/en/power-management-guide.xml,v 1.27 
2007/05/30 19:09:04 nightmorph Exp $ -->
+<!-- $Header: 
/var/cvsroot/gentoo/xml/htdocs/doc/en/power-management-guide.xml,v 1.28 
2007/07/08 07:48:12 nightmorph Exp $ -->
 <guide link="/doc/en/power-management-guide.xml">
 <title>Power Management Guide</title>
 
@@ -23,8 +23,8 @@
 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
 <license/>
 
-<version>1.33</version>
-<date>2007-05-30</date>
+<version>1.34</version>
+<date>2007-07-08</date>
 
 <chapter>
 <title>Introduction</title>
@@ -1069,39 +1069,32 @@
 <body>
 
 <p>
-The second possibility is using a small script and <c>hdparm</c>. Skip this if
-you are using laptop-mode. Otherwise, create <path>/etc/init.d/pmg_hda</path>:
+The second possibility is using <c>hdparm</c>. Skip this if
+you are using laptop-mode. Otherwise, edit <path>/etc/conf.d/hdparm</path> and
+add the following values to your drive entries. This example assumes your hard
+drive is called <b>hda</b>:
 </p>
 
-<pre caption="Using hdparm for disk standby">
-#!/sbin/runscript
-
-depend() {
-after hdparm
-}
-
-start() {
-ebegin "Activating Power Management for Hard Drives"
-hdparm -q -S12 /dev/hda
-eend $?
-}
-
-stop () {
-ebegin "Deactivating Power Management for Hard Drives"
-hdparm -q -S253 /dev/hda
-eend $?
-}
+<pre caption="Using /etc/conf.d/hdparm for disk standby">
+hda_args="-q -S12"
 </pre>
 
 <p>
-See <c>man hdparm</c> for the options. If your script is ready, add it to the
-battery runlevel.
+This will activate power management for your hard drive. If you ever want to
+deactivate power management, you can edit <path>/etc/conf.d/hdparm</path> and
+change the values to <c>-q -S0</c>, or just run <c>hdparm -q -S0 /dev/hda</c>.
+</p>
+
+<p>
+See <c>man hdparm</c> for the options. Though you can always start 
<c>hdparm</c>
+manually when you are on battery power by running <c>/etc/init.d/hdparm
+start</c>, it's much easier to automate its startup and shutdown. To do so, add
+<c>hdparm</c> to the battery runlevel so that it will automatically enable 
power
+management.
 </p>
 
 <pre caption="Automate disk standby settings">
-# <i>chmod +x /etc/init.d/pmg_hda</i>
-# <i>/sbin/depscan.sh</i>
-# <i>rc-update add pmg_hda battery</i>
+# <i>rc-update add hdparm battery</i>
 </pre>
 
 <impo>
@@ -1178,7 +1171,7 @@
 
 <p>
 Wireless LAN cards consume quite a bit of energy. Put them in Power Management
-mode in analogy to the <c>pmg_hda</c> script.
+mode just like your hard drives.
 </p>
 
 <note>
@@ -1186,36 +1179,21 @@
 this with the actual name of your interface.
 </note>
 
-<pre caption="WLAN Power Management automated">
-#!/sbin/runscript
-start() {
-  ebegin "Activating Power Management for Wireless LAN"
-  iwconfig wlan0 power on
-  eend $?
-}
+<p>
+Add the following script to <path>/etc/conf.d/net</path> to automatically 
enable
+power management for your wireless card:
+</p>
 
-stop () {
-  ebegin "Deactivating Power Management for Wireless LAN"
-  iwconfig wlan0 power off
-  eend $?
-}
+<pre caption="Automated WLAN Power Management">
+iwconfig_wlan0="power on"
 </pre>
 
 <p>
-Starting this script will activate power saving features for wlan0. Save it as
-<path>/etc/init.d/pmg_wlan0</path> and add it to the battery runlevel like the
-disk script above. See <c>man iwconfig</c> for details and more options like
-the period between wakeups or timeout settings. If your driver and access point
-support changing the beacon time, this is a good starting point to save even
-more energy.
+See <c>man iwconfig</c> for details and more options like the period between
+wakeups or timeout settings. If your driver and access point support changing
+the beacon time, this is a good starting point to save even more energy.
 </p>
 
-<pre caption="Power Management for WLAN">
-# <i>chmod +x /etc/init.d/pmg_wlan0</i>
-# <i>/sbin/depscan.sh</i>
-# <i>rc-update add pmg_wlan0 battery</i>
-</pre>
-
 </body>
 </section>
 <section>



-- 
[EMAIL PROTECTED] mailing list

Reply via email to