
FB II Compiler
PG PRO
Debugging
Memory
System
Mathematics
Resources
Disk I/O
Windows
Controls
Menus
Mouse
Keyboard
Text
Fonts
Drawing
Sound
Clipboard
Printing
Communication
ASM |
SYSTEM
Spin down SCSI hard drives
I believe this functionality is in the Power Manager (Power.h):
LOCAL FN SPINDOWNHARDDISK
dc.w #$7007
dc.w #$A09E
END FN
I do not know how to actually put the computer to sleep. Perhaps set the sleep-idle time to zero, call WAITNEXTEVENT, then set the sleep-idle time back to where it was?
System software that supports IDE drives has stub code to make them act like SCSI drives. Macs can't really deal with non-SCSI disks directly.
Don't use SCSIRESET. It'll kill any IO in progress and, depending on system version, drive firmware, and the direction of the wind, possibly knock your hard disk off the desktop.
|