home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / disks / misc / findcount / hdoff / hdoff.doc < prev    next >
PGP Signed Message  |  1981-06-29  |  6KB  |  159 lines

  1. -----BEGIN PGP SIGNED MESSAGE-----
  2.  
  3.  
  4. NAME
  5.         HDOff -- a program for the A1200 and A4000 to stop the HD motor
  6.  
  7. SYNOPSIS
  8.         HDOff T=TIME/N,T2=TIME2/N,FORCE/S,OTHER/S,OTHER2/S,NOW/S,NOW2/S
  9.  
  10. DESCRIPTION
  11.         HDOff  is  a program like NoiseSaver for the A1200 and A4000.  It
  12.         stops the HD motor x minutes after the last access.
  13.  
  14.         TIME, TIME2 : Time for the 1st and 2nd HD
  15.  
  16.         FORCE : Forces  HDOff to quit.  Normaly HDOff wouldn`t quit if an
  17.                 other   programm   (like   cachesoft   etc)  patched  the
  18.                 scsi.device   after   HDOff.    But   if  you  are  using
  19.                 SetFuncManager   (or  something  like  this),  HDOff  can
  20.                 nevertheless  quit  without danger.  ONLY USE THIS OPTION
  21.                 IF YOU ARE USING SETFUNCMANAGER OR SOMTHING LIKE IT!
  22.  
  23.         OTHER, OTHER2 :  This option makes HDOff to use an other command
  24.                          ($94  instead  of  $E0)  to stop the HD motor.
  25.                          If also your HD won`t spin down, use this option.
  26.                          Some drives, especially old ones, don`t support
  27.                          the spindowncommand (all newer drives should
  28.                          support it).
  29.  
  30.         NOW, NOW2 : The  selected  HD  spins immediately down, after this
  31.                     the  program  runs  normal  (usefull  for seldom-used
  32.                     HD`s).
  33.  
  34. NOTE
  35.         Don`t  adjust the "time" value too low (maximum are 65535 minutes
  36.         :) !  Your HD will thank you!
  37.  
  38.         You don`t need to start HDOff with run.
  39.  
  40.         To quit simply restart HDOff.
  41.  
  42.         If  a  requester  with  the  message  "Someone  else  has patched
  43.         scsi.device!..."  pops  up, someone else (f.e.  caching software)
  44.         has  latched  into  the  scsi.device.  For security reasons HDOff
  45.         cannot be terminated.
  46.  
  47.         This  program  is  100% written in assembler (DevPac 3.14) and (as
  48.         far as its possible) systemconform.
  49.  
  50. EXAMPLES
  51.         1. HDOff 30
  52.         Stops the motor of the 1st HD 30 minutes after the last access.
  53.  
  54.         2. HDOff 30 15 OTHER2
  55.         Stops the motor of the 1st HD 30 minutes, the motor of the 2nd HD
  56.         15  minutes  after  the  last  access.   For the 2nd HD the other
  57.         command will be used to stop the motor
  58.  
  59.         3. HDOff T2=20
  60.         Stops the motor of the 2nd HD 30 minutes after the last access.
  61.  
  62.         4. HDOff 30 15 NOW2
  63.         Stops  the motor of the 1st HD 30 minutes, the motor of the 2nd HD
  64.         directly.   If  (by  an access) the 2nd HD spins up, the next spin
  65.         down is again in 15 mins.
  66.  
  67. TECHNICAL
  68.         How does it work? The essential things are:
  69.  
  70.         1. Test if ide controller is present (if not: quit)
  71.  
  72.         2.   Patching of the scsi.device (of cause with SetFunction).  The
  73.         patch signals HD accesses to the MainTask.
  74.  
  75.         3.   Count  the  timeloop down and reinit it if an signal from the
  76.         patch occures.
  77.  
  78.         4.  If timecounter 0:  Signal the patch to delay all commands (for
  79.         both  drives) till the signal is "retract".  Security delay 1 sek.
  80.         Forbid(),   Wait_IDE_unbusy,   select  the  drive  (master/slave),
  81.         Wait_IDE_unbusy,  spin  down HD, Permit.  "Retract" the signal for
  82.         the patch for the HD that was not stopped, for the other one after
  83.         5 seks security delay (spin up is done by the HD itself).
  84.  
  85.         5.  Repeat step 3-4 till abort.
  86.  
  87. DISCLAIMER
  88.         This  prg  is  a  hack!  It was only programmed for the A1200 and
  89.         A4000  with IDE HD`s!  Use it at your own risk!
  90.  
  91. COPYRIGHT
  92.         This  prg  is Freeware.  You may copy it, but you must not change
  93.         anything!  No commercial using without my permission!
  94.  
  95. AUTHOR
  96.         Gideon Zenz
  97.         Giersbergstr. 41
  98.         53229 Bonn
  99.         GERMANY
  100.  
  101.         EMail: gzenz@ernie.mi.uni-koeln.de (fast)
  102.                Marvin@BigBen.wwb.sub.de (secure)
  103.  
  104.         -Gideon Zenz, 19-Apr-95
  105.  
  106. BUGS
  107.         Non known.
  108.  
  109. HISTORY
  110.         v1.0: (08-Mai-94)
  111.          - Initial release
  112.  
  113.         v1.1: (30-Jan-95)
  114.          - Timerloop in minutes and much more precisely
  115.          - No need to start with run any more
  116.          - At all more secure and more systemconform
  117.          - A4000 support
  118.  
  119.         v1.2: (20-Apr-95)
  120.          - docs completely rewritten
  121.          - Support of 2nd HD`s
  122.          - New args OTHER and OTHER2 and NOW and NOW2
  123.  
  124. THANKS
  125.         Many       thanks      to      heureka@bigben.wwb.sub.de      and
  126.         M.ZIELINSKI@amtrash.comlink.de  for their helps on A4000 & 2nd HD
  127.         Support!
  128.  
  129. SECURITY
  130.         If  you  want  to be shure you have the original programms, check
  131.         with  "md5sum  -c  HDOff.doc".   (You  get  md5sum f.e.  from the
  132.         PGP-archive)
  133.  
  134. 81f898816640fb9a6360ca0f81ff6ad3 *HDOff
  135.  
  136. - -----BEGIN PGP PUBLIC KEY BLOCK-----
  137. Version: 2.6ui
  138.  
  139. mQCNAi3izr8AAAEEAMi+7o+iKDG26t8EuoX0NJ92iwhkviRC3GdJ1Uvef4+xJA3V
  140. ey20ZnzBg/OokPdo0a3VxhwyjD2auyFmp7DLupQTko7Wx2zLk19EzVBxI6NggUev
  141. ep+eaVvAi8V/YosYh0Xg4/dScOq391irO6k9+BPqkQPH+bRNCUBgnhXGkfElAAUR
  142. tCZHaWRlb24gWmVueiA8TWFydmluQEJJR0JFTi53d2Iuc3ViLmRlPokAlQIFEC7p
  143. 8Z8rOCXSNjQ6+QEBbDUEAI46TkfnK0GWPEV74lhrieivNOm4fZgiDmF5n5miZYtm
  144. hCNqqWy2jfit/eLrCtHMp5XhlRQpDnwGvidz0EyDj0kwfvKdpnADdibmVkfOXlBO
  145. iSskVPeg/HN+gjYCscrXpQ7g+CQMAOoBvwoqohAq+fYJ2mhsK5KS+ofojAUHGG8M
  146. tBVHaWRlb24gWmVueiAyOjI0NDAvOTk=
  147. =SGnp
  148. - -----END PGP PUBLIC KEY BLOCK-----
  149.  
  150. -----BEGIN PGP SIGNATURE-----
  151. Version: 2.6ui
  152.  
  153. iQCVAgUBL5cMTUBgnhXGkfElAQHDsgP9EHWqJqz+neUGRUQjrUjvCB8EiHSDs8lT
  154. hhu5qZJwThr9dHeV1/2Jw+ENIrxPdt8zjEong14zx8FCOozSr2tbPZ90Jj3m6hL7
  155. f1a75CB+guuNJYhTnDK3H/GVo3Nq1uCPndcy6F69QTSxvHWmh3il6S84NF+pyM1n
  156. tRFm3DbN1Nc=
  157. =YlA5
  158. -----END PGP SIGNATURE-----
  159.