home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / linux / announce / 202 < prev    next >
Encoding:
Text File  |  1993-01-29  |  4.8 KB  |  138 lines

  1. Newsgroups: comp.os.linux.announce
  2. Path: sparky!uunet!ukma!bogus.sura.net!howland.reston.ans.net!spool.mu.edu!caen!batcomputer!heeb
  3. From: heeb@iis.ethz.ch (Hansruedi Heeb)
  4. Subject: Laptop Power Management - a Start (Western Digital chips only)
  5. Message-ID: <1993Jan29.042817.737@tc.cornell.edu>
  6. Originator: mdw@theory.TC.Cornell.EDU
  7. Keywords: Linux, laptop, power management, Western Digital
  8. Sender: news@tc.cornell.edu
  9. Nntp-Posting-Host: theory.tc.cornell.edu
  10. Organization: Integrated Systems Lab, ETH Zurich, Switzerland
  11. Date: Fri, 29 Jan 1993 04:28:17 GMT
  12. Approved: linux-announce@tc.cornell.edu (Matt Welsh)
  13. Lines: 123
  14.  
  15. Laptop Power Management - a Start (Western Digital 7600 chips only)
  16. -------------------------------------------------------------------
  17.  
  18. This is far from being finished. But since I have no time to
  19. work on it for the next few weeks I uploaded it now.
  20.  
  21. Currently all 'pwrm' does is to set the time-outs for the
  22. LCD and the backlighting. And it does an installation check
  23. for the WD7600 chipset and returns its status.
  24. Time-out settings include permanently on and permanently off.
  25.  
  26. This was tested on SLS 0.98 pl 1 (Nov 12). But it should be
  27. pretty independent of the kernel version.
  28.  
  29. Uploaded to sunsite.unc.edu:/pub/Linux/Incoming and tsx-11.mit.edu:/incoming
  30.  
  31. Notes
  32. -----
  33.  
  34. - UNLESS YOU HAVE A WD7600 CHIPSET THIS IS USELESS FOR YOU!!
  35.   Power management is sufficiently different between chipsets
  36.   that this code is of no use whatsoever on anything but the WD7600.
  37.   If you have code for another chipset (like APM) I would like
  38.   to build it into 'pwrm'. It is probably better to have a
  39.   single Linux laptop power manager than one for each architecture.
  40.  
  41. - If you do not know what chipset you have:
  42.   * Watch the messages when you boot MessyDOS, you may get a message
  43.     like "Western Digital power manager installed"
  44.   * Just run 'pwrm'. The installation check is reliable and safe (see below).
  45.   * I would like to compile a list of laptops that have the WD7600.
  46.     If you have such a machine drop me a line!
  47.     I have a CompuAdd Express 425CXL.
  48.  
  49. - This is potentially dangerous code because it does an 'iopl(3)'
  50.   which unlockes all I/O ports (IT ONLY RUNS AS ROOT of course).
  51.   However the installation check consists of two simple reads
  52.   (no writes) and should therefore be safe on any machine.
  53.   If the installation check fails, 'pwrm' exits.
  54.  
  55. Installation
  56. ------------
  57.  
  58. Type 'make'.
  59.  
  60. 'su' to root!
  61.  
  62. 'pwrm -u' will give you the command line options.
  63.  
  64. To Do List
  65. ----------
  66.  
  67. Volunteers ? Send me mail if you want to try one of them!
  68.  
  69. - Add harddisk time-out. This can hopefully be done by calling
  70.   the kernel somehow, I have not checked yet. There seem to be
  71.   no provisions in the WD7600 for that (they use BIOS I think).
  72.  
  73. - Sleep mode (stopping the processor clock): If your processor
  74.   can handle this then it is a huge power saver (see below)
  75.   This is so fast that it should go into the idle process
  76.   (and the wake-up should go into the interrupt rotines).
  77.  
  78. - User initiated switching of the clock speed. My chipset
  79.   can handle 6 MHz, 12 MHz and 25 MHz.
  80.  
  81. - Suspend mode (powering down the whole machine except one
  82.   of the WD7600 chips): The toughest. Lots of stuff has to
  83.   be saved, lots of things have to switched (clock speeds,
  84.   clock sources ...). Probably quite a challenge.
  85.  
  86. - Getting a remaining battery estimation: The WD7600 has no
  87.   provision for that. So this must be calculated from the
  88.   time each part of the system is up.
  89.  
  90. Current measurements on the CompuAdd 425 CXL
  91. --------------------------------------------
  92.  
  93. The surprise is that the largest power savings (after
  94. suspend mode) is not the harddisk nor the backlighting but sleep mode!
  95. Most numbers are quite approximate.
  96.  
  97. Base current: 700 to 780 mA
  98. (Linux or DOS with sleep mode disabled, HD running, LCD, backl. on)
  99.  
  100. Differences:
  101.  
  102. Sleep mode enabled, idle DOS: -200 to -280 mA (!!)
  103. Sleep mode anabled, active  : -100 to -180 mA
  104. Backlighting off            :         -110 mA
  105. Harddisk off                :  -40 to  -80 mA (!!)
  106. LCD off                     :          -20 mA
  107. Clock at 12 MHz (no sleep)  :  -60 to  -80 mA
  108. Clock at  6 MHz (no sleep)  : -110 to -130 mA
  109.  
  110. Harddisk startup            :         +300 mA (for 1 to 2 sec)
  111. Floppy                      :         +200 mA
  112. COM chip on                 :          +10 mA
  113.  
  114. Suspend mode draws about 100 mA only!
  115.  
  116. Questions to the DOS/Linux gurus
  117. --------------------------------
  118.  
  119. - Send me mail if you know how to switch on/off the hard-disk
  120.   through system calls. That would save me some digging in
  121.   the kernel sources.
  122.  
  123. - The MessyDos driver does lots of OUTs to port ED(hex).
  124.   Anybody knows what that does ??
  125.  
  126. Other Info
  127. ----------
  128.  
  129. Western Digital's tech info phone number is (714) 932 4900
  130. The manual I used is called 'WD7600 Chip Set - Programmer's Guide'
  131.  
  132. Enjoy,
  133.  
  134. Hansruedi Heeb - heeb@iis.ethz.ch
  135.  
  136. -- 
  137. Send submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu
  138.