home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / Disk&HD / tx-hd.LZX / HDOff.doc < prev    next >
Encoding:
PGP Message  |  1996-06-26  |  9.8 KB  |  248 lines

  1. -----BEGIN PGP SIGNED MESSAGE-----
  2.  
  3.  
  4. NAME
  5.         HDOff -- a program for the A600/A1200 and A4000 to stop the HD
  6.         motor.
  7.  
  8. SYNOPSIS
  9.         HDOff T=TIME/N,T2=TIME2/N,FORCE/S,OTHER/S,OTHER2/S,NOW/S,NOW2/S,
  10.         SET1200/S,SET4000/S,UPDATE/S,QUIET/S,STOP/S,STOP2/S
  11.  
  12. DESCRIPTION
  13.         HDOff  is  a program like NoiseSaver for the A1200 and A4000.  It stops
  14.         the HD motor x minutes after the last access.
  15.  
  16.         TIME, TIME2 :
  17.                 Time in minutes after the 1st/2nd HD will shut down.
  18.  
  19.         FORCE : 
  20.                 Forces  HDOff  to  quit.  Normaly HDOff doesn`t quit if another
  21.                 programm  (like  cachesoftware  ) patched the scsi.device after
  22.                 HDOff  did.   But if you are using SetFuncManager (or something
  23.                 similar), HDOff can nevertheless quit without danger.  ONLY USE
  24.                 THIS  OPTION  IF  YOU ARE USING SETFUNCMANAGER OR SOMTHING LIKE
  25.                 IT!
  26.  
  27.         OTHER, OTHER2 :
  28.                 This  option  makes  HDOff  to  use an alternative command ($94
  29.                 instead  of  $E0)  to  stop the HD`s motor.  If your HD doesn`t
  30.                 spin  down,  try  this  option.   Some drives, especially older
  31.                 ones,  don`t  support  the  `STANDBY`  (all newer drives should
  32.                 support  it,  at  least  the "green-PC" drives supporting power
  33.                 management).
  34.  
  35.         NOW, NOW2 :
  36.                 The  selected HD spins down immediately on startup, the program
  37.                 just does it`s normal job (usefull for seldom used HD`s).
  38.  
  39.         SET1200, SET4000:
  40.                 With  some odd HD`s, HDOff isn`t able to detect wich controller
  41.                 is  present  in  your  Amiga  (this happens, too, if you have a
  42.                 CD-Rom  connected  but no CD inserted).  If you start HDOff and
  43.                 get  a  "Incorrect  HD  controller!"  message, but are actually
  44.                 using  an  A600/A1200/A4000,  use  the  option  SET1200  for an
  45.                 A600/A1200 or SET4000 for an A4000.
  46.  
  47.         UPDATE:
  48.                 With this option you can adjust the shutdowntime online.
  49.  
  50.         QUIET:
  51.                 Using  this  option  HDOff won`t print anything out (similar to
  52.                 >NIL:).  Usefull e.g.  if you start it in the user-startup.
  53.  
  54.         STOP, STOP2:
  55.                 HDOff  will  just stop the 1st (STOP) or 2nd (STOP2) harddrive,
  56.                 but HDOff won`t be installed.
  57.  
  58. NOTE
  59.         Be shure not to set the "time" value too low (maximum are 65535 minutes
  60.         :)  as permanently spinning the drive up and down does shorten the life
  61.         expectancy of the drive (60 minutes is a good choice).
  62.  
  63.         You don`t need to start HDOff with run.
  64.  
  65.         To quit HDOff, simply restart it.
  66.  
  67.         If   a   requester   with   the   message  "Someone  else  has  patched
  68.         scsi.device!..."  pops  up,  someone  else (e.g.  caching software) has
  69.         latched  into  the  scsi.device.   For security reasons HDOff cannot be
  70.         terminated this time.
  71.  
  72.         This  program is 100% written in assembler (DevPac 3.14) and (as far as
  73.         its possible) systemconform.
  74.  
  75. EXAMPLES
  76.         1. HDOff 30
  77.         Stops the motor of the 1st HD 30 minutes after the last access.
  78.  
  79.         2. HDOff 30 15 OTHER2
  80.         Stops  the  motor  of the 1st HD 30 minutes, the motor of the 2nd HD 15
  81.         minutes  after the last access.  For the 2nd HD the alternative command
  82.         will be used to stop the motor
  83.  
  84.         3. HDOff T2=20
  85.         Stops the motor of the 2nd HD 30 minutes after the last access.
  86.  
  87.         4. HDOff 30 15 NOW2
  88.         Stops  the  motor  of  the  1st  HD 30 minutes, the motor of the 2nd HD
  89.         immediately.  If the 2nd HD was accessed and so spins up, the next spin
  90.         down will again happen after 15 mins.
  91.  
  92.         5. HDOff 50 10 UDPATE
  93.         If  you  already  started  HDOff,  the  timeout`s  for the HD`s will be
  94.         changed to the new values.
  95.  
  96.         6. HDOff STOP QUIET
  97.         This  will  just  and  only  stop  the 1st drive, there will not be any
  98.         timeout!  Additionally there will be no output.
  99.  
  100. TECHNICAL
  101.         How does it work? The essential things are:
  102.  
  103.         1. Test if ide controller is present (if not: quit)
  104.  
  105.         2.   Patch  scsi.device  (using  SetFunction,  of  course).   The patch
  106.         signals HD accesses to the main task.
  107.  
  108.         3.  Count the timer down and reinitialize it if a signal from the patch
  109.         occures.
  110.  
  111.         4.   If  timer  reaches 0:  Signal the patch to delay all commands (for
  112.         both  drives)  till  the  signal  is  retracted.  Security delay 1 sec.
  113.         Forbid(),     Wait_IDE_unbusy,     select     drive     (master/slave),
  114.         Wait_IDE_unbusy,  spin  down  HD, Permit().  Retract the signal for the
  115.         patch for the HD that was not stopped, for the other one after a 5 secs
  116.         security delay (spin up is done by the HD itself).
  117.  
  118.     5. Check, if there are any messages and process them.
  119.  
  120.         6.  Repeat step 3-4 until abort.
  121.  
  122.         For   more   information   about   the   messageport  have  a  look  in
  123.         Developers.doc!
  124.  
  125. DISCLAIMER & COPYRIGHT
  126.         This  software  is subject to the "Standard Amiga FD-Software Copyright
  127.         Note"  It is Freeware as defined in paragraph 4a.  For more information
  128.         please read "AFD-COPYRIGHT" (Version 1 or higher).
  129.  
  130. AUTHOR
  131.         Gideon Zenz
  132.         Giersbergstr. 41
  133.         53229 Bonn
  134.         GERMANY
  135.  
  136.         EMail: gzenz@ernie.mi.uni-koeln.de
  137.  
  138.         News about HDOff at: http://ernie.mi.uni-koeln.de/~gzenz/hdoff.html
  139.  
  140.         -Gideon Zenz, 26-Jun-96
  141.  
  142. BUGS
  143.         Non known.
  144.  
  145. FUTURE
  146.         I  have  now a SCSI-only system, but this didn`t prevent me not to do a
  147.         SCSI  version  of  HDOff.  The reasons are that HDOff wasn`t planned to
  148.         support more than 2 drives, and not more then one device, so it will be
  149.         quite difficult to implement.  But we`ll see B-)
  150.  
  151. HISTORY
  152.         v1.0: (08-Mai-94)
  153.          - Initial release
  154.  
  155.         v1.1: (30-Jan-95)
  156.          - Timerloop in minutes and much more precisely
  157.          - No need to start with run any more
  158.          - At all more secure and more systemconform
  159.          - A4000 support
  160.  
  161.         v1.2: (20-Apr-95)
  162.          - docs completely rewritten
  163.          - Support of 2nd HD`s
  164.          - New args OTHER and OTHER2 and NOW and NOW2
  165.  
  166.         v1.33: (7-Jan-96)
  167.          - HDOff crashed if started on heavy diskaccess.
  168.          - new options SET1200 and SET4000
  169.          - Implementation of the onlineport. Have a look in
  170.            Developers.doc for usage.
  171.  
  172.         v1.34: (22-Feb-96)
  173.      - Fixed a bug in the onlineport: PortVer wasn`t set.
  174.          - Added GetStats&Source
  175.          - Completely reworked Developer.doc
  176.          - Now working 100% on A600
  177.          - New arg UPDATE (thx to Ingo Eickelkamp for suggestion)
  178.  
  179.         v1.35: (16-Mar-96)
  180.          - New option QUIET
  181.          - Bugfix in UPDATE, wrong values were taken
  182.          - Now there is again a check if you enter too big values
  183.          - MAJOR bug: HD spun only the 1st time down on a1200 [thx to Oli Lohr]
  184.          - System of timecounting changed, now 100% accurate
  185.          - NOW(2) working again [thx to Oli Lohr]
  186.          - New options STOP(2) [thx to A.BOERNER@bbrandes.berlinet.de]
  187.          - New, bugfixed and improed version of Getstats [Thx Matthias Andree!]
  188.  
  189.         v1.36: (26-Jun-96)
  190.          - Some bugfixes
  191.          - Message port expanded/changed (look at Developers.doc)
  192.          - Everything is now multi threaded, so msg`s etc are immediately
  193.            processed now.
  194.          - Included new, advanced GetStats
  195.  
  196. THANKS
  197.         Many    thanks    to   heureka@bigben.dssd.sub.org   and   M.ZIELINSKI@
  198.         amtrash.comlink.de for their helps on A4000 and 2nd HD support, and all
  199.         other`s  who wrote me!  A special thank must go out to Matthias Andree,
  200.         who had a look at the docs, and who is now doing a nice GUI!
  201.  
  202. SECURITY
  203.         If  you  want  to be shure you have the original programs, check
  204.         with  "md5sum  -c  HDOff.doc".   (md5sum is part of the PGP package)
  205.  
  206. dfdf15f58f042ffa0f018ba8277124f7  AFD-COPYRIGHT
  207. f7da7a8653f2153aea03f73d664f2a40  AFD-COPYRIGHT.de
  208. a51dae271c4f6bc2de5bc1e14eb29633  Developers.doc
  209. a6fab0ca4f7d1d819e5eed56e77c17fe *GetStats
  210. 201e18e4ccdcfcaa3407ad19753d2f90  GetStats.c
  211. 5dd6e5c24b19fab3f93592ab9e8d710e *HDOff
  212. f66eb2c2050839fb34b72999692e2d2d  HDOff_1.36.readme
  213.  
  214. - -----BEGIN PGP PUBLIC KEY BLOCK-----
  215. Version: 2.6.3i
  216.  
  217. mQCNAi3izr8AAAEEAMi+7o+iKDG26t8EuoX0NJ92iwhkviRC3GdJ1Uvef4+xJA3V
  218. ey20ZnzBg/OokPdo0a3VxhwyjD2auyFmp7DLupQTko7Wx2zLk19EzVBxI6NggUev
  219. ep+eaVvAi8V/YosYh0Xg4/dScOq391irO6k9+BPqkQPH+bRNCUBgnhXGkfElAAUR
  220. tClHaWRlb24gWmVueiA8Z3plbnpARXJuaWUuTUkuVW5pLUtvZWxuLkRFPokAlQMF
  221. EDHR1zdAYJ4VxpHxJQEByIMD/ippEW/kpkaUhsB4amGVHff5oGMxkN/UyULVBwiT
  222. bI9j21MwiKzPTohyRnDs6r5FUGYk685m0kkm5UK65/IcpKDf4dGPpgTiVDv+iMJT
  223. vI9yt1+fLigsoSl6FEH8Xz0zNqftyPIsj2ofTsjbCrtr3ALA/gEOlrSXEwBB31ST
  224. 5Q3qtClHaWRlb24gWmVueiA8Z3plbnpARXJuaWUuTUkuVW5pLUtvZWxuLkRFPrQo
  225. R2lkZW9uIFplbnogPE1hcnZpbkBCaWdCZW4uZHNzZC5zdWIub3JnPokAlQMFEDCg
  226. BWBAYJ4VxpHxJQEB3zYEAKT01zBYqdHINoKFkQsv9L+hHlcgwpxYh7tFipO4Hh5B
  227. 89ktXrIhfOynnXDT5loZ++WZJ12hhc1pF/0J8XYeT5NwMk3cw1EZ7tVgTdpZy4bl
  228. 25gitPI96wbby6tK2YNi/A76X/6400gfOlF3+OzIEflqMOb5bcLy9TRCNRgAmAaZ
  229. tCZHaWRlb24gWmVueiA8TWFydmluQEJJR0JFTi53d2Iuc3ViLmRlPokAlQIFEC7p
  230. 8Z8rOCXSNjQ6+QEBbDUEAI46TkfnK0GWPEV74lhrieivNOm4fZgiDmF5n5miZYtm
  231. hCNqqWy2jfit/eLrCtHMp5XhlRQpDnwGvidz0EyDj0kwfvKdpnADdibmVkfOXlBO
  232. iSskVPeg/HN+gjYCscrXpQ7g+CQMAOoBvwoqohAq+fYJ2mhsK5KS+ofojAUHGG8M
  233. tDJOT1RFOiBNYXJ2aW5AQklHQkVOLnd3Yi5zdWIuZGUgbm90IHZhbGlkIGFueSBt
  234. b3JlIbQVR2lkZW9uIFplbnogMjoyNDQwLzk5
  235. =qE9V
  236. - -----END PGP PUBLIC KEY BLOCK-----
  237.  
  238. -----BEGIN PGP SIGNATURE-----
  239. Version: 2.6.3i
  240. Charset: latin1
  241.  
  242. iQCVAwUBMdHX6kBgnhXGkfElAQGSYgP+Jldz+p+b3kM5RfVPO8cudI+fPjyYLqWK
  243. dHM431avUqtELnUFZOWcFTwWUse1W7wgynuS2mWuGPHOvVlI2OFH/8crhE3m9Lod
  244. mxDnakb43u1zSPo93bGtG4xwnZwf5/pz/7TwqzU/C7gFWh3EYECEP3Mz8jV7DAoS
  245. o4E8n8ncdF8=
  246. =ntQq
  247. -----END PGP SIGNATURE-----
  248.