home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #6
/
amigamamagazinepolishissue1998.iso
/
disks
/
misc
/
hdoff
/
hdoff.doc
< prev
next >
Wrap
PGP Signed Message
|
1997-07-20
|
11KB
|
262 lines
-----BEGIN PGP SIGNED MESSAGE-----
NAME
HDOff -- a program for the A600/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,
SET1200/S,SET4000/S,UPDATE/S,QUIET/S,STOP/S,STOP2/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 in minutes after the 1st/2nd HD will shut down.
FORCE :
Forces HDOff to quit. Normaly HDOff doesn`t quit if another
programm (like cachesoftware ) patched the scsi.device after
HDOff did. But if you are using SetFuncManager (or something
similar), 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 alternative command ($94
instead of $E0) to stop the HD`s motor. If your HD doesn`t
spin down, try this option. Some drives, especially older
ones, don`t support the `STANDBY` (all newer drives should
support it, at least the "green-PC" drives supporting power
management).
NOW, NOW2 :
The selected HD spins down immediately on startup, the program
just does it`s normal job (usefull for seldom used HD`s).
SET1200, SET4000:
With some odd HD`s, HDOff isn`t able to detect wich controller
is present in your Amiga (this happens, too, if you have a
CD-Rom connected but no CD inserted). If you start HDOff and
get a "Incorrect HD controller!" message, but are actually
using an A600/A1200/A4000, use the option SET1200 for an
A600/A1200 or SET4000 for an A4000.
UPDATE:
With this option you can adjust the shutdowntime online.
QUIET:
Using this option HDOff won`t print anything out (similar to
>NIL:). Usefull e.g. if you start it in the user-startup.
STOP, STOP2:
HDOff will just stop the 1st (STOP) or 2nd (STOP2) harddrive,
but HDOff won`t be installed.
NOTE
Be shure not to set the "time" value too low (maximum are 65535 minutes
:) as permanently spinning the drive up and down does shorten the life
expectancy of the drive (60 minutes is a good choice).
You don`t need to start HDOff with run.
To quit HDOff, simply restart it.
If a requester with the message "Someone else has patched
scsi.device!..." pops up, someone else (e.g. caching software) has
latched into the scsi.device. For security reasons HDOff cannot be
terminated this time.
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 alternative 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
immediately. If the 2nd HD was accessed and so spins up, the next spin
down will again happen after 15 mins.
5. HDOff 50 10 UDPATE
If you already started HDOff, the timeout`s for the HD`s will be
changed to the new values.
6. HDOff STOP QUIET
This will just and only stop the 1st drive, there will not be any
timeout! Additionally there will be no output.
TECHNICAL
How does it work? The essential things are:
1. Test if ide controller is present (if not: quit)
2. Patch scsi.device (using SetFunction, of course). The patch
signals HD accesses to the main task.
3. Count the timer down and reinitialize it if a signal from the patch
occures.
4. If timer reaches 0: Signal the patch to delay all commands (for
both drives) till the signal is retracted. Security delay 1 sec.
Forbid(), Wait_IDE_unbusy, select 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 a 5 secs
security delay (spin up is done by the HD itself).
5. Check, if there are any messages and process them.
6. Repeat step 3-4 until abort.
For more information about the messageport have a look in
Developers.doc!
DISCLAIMER & COPYRIGHT
This software is subject to the "Standard Amiga FD-Software Copyright
Note" It is Freeware as defined in paragraph 4a. For more information
please read "AFD-COPYRIGHT" (Version 1 or higher).
AUTHOR
Gideon Zenz
Giersbergstr. 41
53229 Bonn
GERMANY
EMail: gzenz@ixc.net
-Gideon Zenz, 20-Jul-97
BUGS
None known.
FUTURE
I have now a SCSI-only system, but this didn`t prevent me not to do a
SCSI version of HDOff. The reasons are that HDOff wasn`t planned to
support more than 2 drives, and not more then one device, so it will be
quite difficult to implement. But we`ll see B-)
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
v1.33: (7-Jan-96)
- HDOff crashed if started on heavy diskaccess.
- new options SET1200 and SET4000
- Implementation of the onlineport. Have a look in
Developers.doc for usage.
v1.34: (22-Feb-96)
- Fixed a bug in the onlineport: PortVer wasn`t set.
- Added GetStats&Source
- Completely reworked Developer.doc
- Now working 100% on A600
- New arg UPDATE (thx to Ingo Eickelkamp for suggestion)
v1.35: (16-Mar-96)
- New option QUIET
- Bugfix in UPDATE, wrong values were taken
- Now there is again a check if you enter too big values
- MAJOR bug: HD spun only the 1st time down on a1200 [thx to Oli Lohr]
- System of timecounting changed, now 100% accurate
- NOW(2) working again [thx to Oli Lohr]
- New options STOP(2) [thx to A.BOERNER@bbrandes.berlinet.de]
- New, bugfixed and improed version of Getstats [Thx Matthias Andree!]
v1.36: (26-Jun-96)
- Some bugfixes
- Message port expanded/changed (look at Developers.doc)
- Everything is now multi threaded, so msg`s etc are immediately
processed now.
- Included new, advanced GetStats
v1.37 (1-Sep-96)
- Fixed Mungwallhit
- Optimized
- Msgport updated for GUI by M.Andree (look at Developers.doc)
- adapted GetStats
v1.38 (20-Jul-97)
- some bugfixes (thx to Dave Jones, Oli Lohr)
THANKS
Many thanks to heureka@bigben.dssd.sub.org and M.ZIELINSKI@
amtrash.comlink.de for their helps on A4000 and 2nd HD support, and all
other`s who wrote me! A special thank must go out to Matthias Andree,
who had a look at the docs, and who is now doing a nice GUI!
SECURITY
If you want to be shure you have the original programs, check
with "md5sum -c HDOff.doc". (md5sum is part of the PGP package)
dfdf15f58f042ffa0f018ba8277124f7 AFD-COPYRIGHT
f7da7a8653f2153aea03f73d664f2a40 AFD-COPYRIGHT.de
5be909723874ce17be7fc3c426025f98 Developers.doc
732fcce06b2f7c5e3e1abbaf8f9ab2d6 *GetStats
eb56a33c57b9992656dcaf45cf3da761 GetStats.c
2b624ffa9e8fdac01ff101ab2a298dde *HDOff
96dc1c9138a28d041c5fd8e8406096dd HDOff_1.38.readme
- -----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.3ia
mQCNAi3izr8AAAEEAMi+7o+iKDG26t8EuoX0NJ92iwhkviRC3GdJ1Uvef4+xJA3V
ey20ZnzBg/OokPdo0a3VxhwyjD2auyFmp7DLupQTko7Wx2zLk19EzVBxI6NggUev
ep+eaVvAi8V/YosYh0Xg4/dScOq391irO6k9+BPqkQPH+bRNCUBgnhXGkfElAAUR
tBtHaWRlb24gWmVueiA8Z3plbnpAaXhjLm5ldD6JAJUDBRAzJLB9QGCeFcaR8SUB
AYlyA/9vod8ZjMXVMG9dua5vHOS88m2dfg81A/c8X3u+PCoGmRS5i/V6zFKBu+43
zBtjCw6g1bVwMMjEz+wBcGswfFflwV/5q7jqGi/ABBP1SP23jttBFVKoco8ZWNRQ
Q/mNV8RDLqPzjZAnmEA0dCO+ZkBHR3Bo8nfmeon6HjXgpjuGrbQ6Tk9URTogPGd6
ZW56QEVybmllLk1JLlVuaS1Lb2Vsbi5ERT4gaXMgbm90IHZhbGlkIGFueSBtb3Jl
IYkAlQMFEDMksKpAYJ4VxpHxJQEBnykD/3JcoNyUEjHH8GIp3E1IMGBo0LmHIfII
LaJkrT8XbM+6+6qSEIhAJ3MwUuwksWyVqaGNUMVlUpG2lIDe9uVaK+kzmfrK3iTG
L5syQrctbaqvgIFbDdKuJKFPUGAaG4ttXhhxU0H88h4A4nhnza0vEtDO7Aqxg7E+
QZJL+ZpLE4H4tClHaWRlb24gWmVueiA8Z3plbnpARXJuaWUuTUkuVW5pLUtvZWxu
LkRF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