home *** CD-ROM | disk | FTP | other *** search
- -----BEGIN PGP SIGNED MESSAGE-----
-
-
- NAME
- HDOff -- a program for the A1200 and A4000 to stop the HD motor
-
- SYNOPSIS
- HDOff T=TIME/N,T2=TIME2/N,FORCE/S,OTHER/S,OTHER2/S,NOW/S,NOW2/S
-
- DESCRIPTION
- HDOff is a program like NoiseSaver for the A1200 and A4000. It
- stops the HD motor x minutes after the last access.
-
- TIME, TIME2 : Time for the 1st and 2nd HD
-
- FORCE : Forces HDOff to quit. Normaly HDOff wouldn`t quit if an
- other programm (like cachesoft etc) patched the
- scsi.device after HDOff. But if you are using
- SetFuncManager (or something like this), HDOff can
- nevertheless quit without danger. ONLY USE THIS OPTION
- IF YOU ARE USING SETFUNCMANAGER OR SOMTHING LIKE IT!
-
- OTHER, OTHER2 : This option makes HDOff to use an other command
- ($94 instead of $E0) to stop the HD motor.
- If also your HD won`t spin down, use this option.
- Some drives, especially old ones, don`t support
- the spindowncommand (all newer drives should
- support it).
-
- NOW, NOW2 : The selected HD spins immediately down, after this
- the program runs normal (usefull for seldom-used
- HD`s).
-
- NOTE
- Don`t adjust the "time" value too low (maximum are 65535 minutes
- :) ! Your HD will thank you!
-
- You don`t need to start HDOff with run.
-
- To quit simply restart HDOff.
-
- If a requester with the message "Someone else has patched
- scsi.device!..." pops up, someone else (f.e. caching software)
- has latched into the scsi.device. For security reasons HDOff
- cannot be terminated.
-
- This program is 100% written in assembler (DevPac 3.14) and (as
- far as its possible) systemconform.
-
- EXAMPLES
- 1. HDOff 30
- Stops the motor of the 1st HD 30 minutes after the last access.
-
- 2. HDOff 30 15 OTHER2
- Stops the motor of the 1st HD 30 minutes, the motor of the 2nd HD
- 15 minutes after the last access. For the 2nd HD the other
- command will be used to stop the motor
-
- 3. HDOff T2=20
- Stops the motor of the 2nd HD 30 minutes after the last access.
-
- 4. HDOff 30 15 NOW2
- Stops the motor of the 1st HD 30 minutes, the motor of the 2nd HD
- directly. If (by an access) the 2nd HD spins up, the next spin
- down is again in 15 mins.
-
- TECHNICAL
- How does it work? The essential things are:
-
- 1. Test if ide controller is present (if not: quit)
-
- 2. Patching of the scsi.device (of cause with SetFunction). The
- patch signals HD accesses to the MainTask.
-
- 3. Count the timeloop down and reinit it if an signal from the
- patch occures.
-
- 4. If timecounter 0: Signal the patch to delay all commands (for
- both drives) till the signal is "retract". Security delay 1 sek.
- Forbid(), Wait_IDE_unbusy, select the drive (master/slave),
- Wait_IDE_unbusy, spin down HD, Permit. "Retract" the signal for
- the patch for the HD that was not stopped, for the other one after
- 5 seks security delay (spin up is done by the HD itself).
-
- 5. Repeat step 3-4 till abort.
-
- DISCLAIMER
- This prg is a hack! It was only programmed for the A1200 and
- A4000 with IDE HD`s! Use it at your own risk!
-
- COPYRIGHT
- This prg is Freeware. You may copy it, but you must not change
- anything! No commercial using without my permission!
-
- AUTHOR
- Gideon Zenz
- Giersbergstr. 41
- 53229 Bonn
- GERMANY
-
- EMail: gzenz@ernie.mi.uni-koeln.de (fast)
- Marvin@BigBen.wwb.sub.de (secure)
-
- -Gideon Zenz, 19-Apr-95
-
- BUGS
- Non known.
-
- HISTORY
- v1.0: (08-Mai-94)
- - Initial release
-
- v1.1: (30-Jan-95)
- - Timerloop in minutes and much more precisely
- - No need to start with run any more
- - At all more secure and more systemconform
- - A4000 support
-
- v1.2: (20-Apr-95)
- - docs completely rewritten
- - Support of 2nd HD`s
- - New args OTHER and OTHER2 and NOW and NOW2
-
- THANKS
- Many thanks to heureka@bigben.wwb.sub.de and
- M.ZIELINSKI@amtrash.comlink.de for their helps on A4000 & 2nd HD
- Support!
-
- SECURITY
- If you want to be shure you have the original programms, check
- with "md5sum -c HDOff.doc". (You get md5sum f.e. from the
- PGP-archive)
-
- 81f898816640fb9a6360ca0f81ff6ad3 *HDOff
-
- - -----BEGIN PGP PUBLIC KEY BLOCK-----
- Version: 2.6ui
-
- mQCNAi3izr8AAAEEAMi+7o+iKDG26t8EuoX0NJ92iwhkviRC3GdJ1Uvef4+xJA3V
- ey20ZnzBg/OokPdo0a3VxhwyjD2auyFmp7DLupQTko7Wx2zLk19EzVBxI6NggUev
- ep+eaVvAi8V/YosYh0Xg4/dScOq391irO6k9+BPqkQPH+bRNCUBgnhXGkfElAAUR
- tCZHaWRlb24gWmVueiA8TWFydmluQEJJR0JFTi53d2Iuc3ViLmRlPokAlQIFEC7p
- 8Z8rOCXSNjQ6+QEBbDUEAI46TkfnK0GWPEV74lhrieivNOm4fZgiDmF5n5miZYtm
- hCNqqWy2jfit/eLrCtHMp5XhlRQpDnwGvidz0EyDj0kwfvKdpnADdibmVkfOXlBO
- iSskVPeg/HN+gjYCscrXpQ7g+CQMAOoBvwoqohAq+fYJ2mhsK5KS+ofojAUHGG8M
- tBVHaWRlb24gWmVueiAyOjI0NDAvOTk=
- =SGnp
- - -----END PGP PUBLIC KEY BLOCK-----
-
- -----BEGIN PGP SIGNATURE-----
- Version: 2.6ui
-
- iQCVAgUBL5cMTUBgnhXGkfElAQHDsgP9EHWqJqz+neUGRUQjrUjvCB8EiHSDs8lT
- hhu5qZJwThr9dHeV1/2Jw+ENIrxPdt8zjEong14zx8FCOozSr2tbPZ90Jj3m6hL7
- f1a75CB+guuNJYhTnDK3H/GVo3Nq1uCPndcy6F69QTSxvHWmh3il6S84NF+pyM1n
- tRFm3DbN1Nc=
- =YlA5
- -----END PGP SIGNATURE-----
-