Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114424 - power saving guide - not explicit enough in whether hdparm step (slow hard drive) is needed if installing laptop-mode-tools
Summary: power saving guide - not explicit enough in whether hdparm step (slow hard dr...
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: nm (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-04 03:03 UTC by Amir Taaki
Modified: 2006-02-13 02:59 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Amir Taaki 2005-12-04 03:03:59 UTC
http://forums.gentoo.org/viewtopic-p-2926121.html#2926121 
 
Quote: 
  Hello,  
  
 I am following this guide  
 http://www.gentoo.org/doc/en/power-management-guide.xml  
  
 And have created the hdparm suspend timeout script and added it to my 
runlevel. As the next step I have emerged laptop-mode-tools and editing the 
conf file I found  
 /etc/laptop-mode/laptop-mode.conf 
Code: 
  # Idle timeout values. (hdparm -S)  
 # Default is 2 hours on AC (NOLM_HD_IDLE_TIMEOUT_SECONDS=7200) and 5 seconds 
fo$  
 # and for AC with laptop mode on.  
 LM_AC_HD_IDLE_TIMEOUT_SECONDS=5  
 LM_BATT_HD_IDLE_TIMEOUT_SECONDS=5  
 NOLM_HD_IDLE_TIMEOUT_SECONDS=7200 
 
    
 Is the hdparm script in the guide really neccessary?  
  
Code: 
  #!/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 $?  
 } 
 
    
 Why is it there as a required step if it isn't?  
  
 Thanks 
 
Things follow on sequentially in the guide, and when alternatives exist it 
often tells you by saying "do this OR do that", here it tells you to make this 
init script then tells you to go on to install laptop-mode-tools (which already 
has this functionality built into it). 

Reproducible: Always
Steps to Reproduce:
 
 


Expected Results:  
Be more explicit in saying they are alternatives if laptop-mode-tools *isn't* 
installed.
Comment 1 Dennis Nienhüser (RETIRED) gentoo-dev 2005-12-04 03:26:57 UTC
Thanks for the suggestion, I'll reword it to be more clear in the next upate. 
Comment 2 Dennis Nienhüser (RETIRED) gentoo-dev 2006-01-15 12:29:10 UTC
Amir, I'm working on an updated version of the guide and rewrote parts of the section about hard disk pm. It should be more structured now. Please have a quick look at it:
http://dev.gentoo.org/~earthwings/pmg/power-management-guide.html#doc_chap5
Comment 3 nm (RETIRED) gentoo-dev 2006-02-13 02:59:24 UTC
This has been fixed in the newly revised and expanded power management guide thanks to bug #122017; please see http://www.gentoo.org/doc/en/power-management-guide.xml. Thanks for addressing this issue.