Path: utzoo!attcan!uunet!wuarchive!usc!apple!well!oster From: oster@well.sf.ca.us (David Phillip Oster) Newsgroups: comp.sys.mac.programmer Subject: Re: Putting an SE into sleep mode Message-ID: <17217@well.sf.ca.us> Date: 13 Apr 90 15:16:01 GMT References: <17171@well.sf.ca.us> Reply-To: oster@well.UUCP (David Phillip Oster) Organization: Whole Earth 'Lectronic Link, Sausalito, CA Lines: 176 Thanks to all who replied. Here are the people who helped me: From qantel!lll-winken!ames!BBN.COM!ll-xn!oakland.bbn.com!bbn.com!levin There was an application called 'SCSI Stop' or something, probably available on sumex, that executed a shutdown, attempted to park the HD heads and power off the drive (I say attempted because drivers and drives did not always permit these operations), waited 10 seconds for you to power off the Mac, and restarted. I believe it was from Ephraim Vishniac, who understands this stuff very well. I'll bet he could either point you the right direction, if not provide the source code; or you might be able to learn enough by 'nosy'ing the program. Regards / JBL -- Nets: levin@bbn.com | "There were sweetheart roses on Yancey Wilmerding's or {...}!bbn!levin | bureau that morning. Wide-eyed and distraught, she POTS: (617)873-3463 | stood with all her faculties rooted to the floor." ----------------------------------------------- From apple!Think.COM!ephraim I'm just guessing, but the system probably sends a SCSI "Stop" command to the drive. More precisely, it probably makes some Apple-specific call to the device driver, which then sends a SCSI Stop command to the drive. I wrote a program years ago called "SCSI Stop" to shut down SCSI drives. (This was before the Finder had a real shutdown command.) You can probably still find it on sumex. Full source code was included. -- Ephraim Vishniac ephraim@think.com ThinkingCorp@applelink.apple.com Thinking Machines Corporation / 245 First Street / Cambridge, MA 02142 One of the flaws in the anarchic bopper society was the ease with which such crazed rumors could spread. ----------------------------------------------- From apple!phoenix.Princeton.EDU!bowman From: Hiroshi Bowman Hiya-- I've been wondering the same thing: surely, I thought, there was some way to power-down the HD from software. If you wouldn't mind, please post any information you receive. Thanks! --HCB ----------------------------------------------- From apple!nada.kth.se!ianf Bravo! Thanks for the initiative! I've been cussing at the bloody fan ever since I took it out of the box. And yet -- Apple Sweden did exchange the original SE fan for a new rotary model (the original was of a rotating "can with spokes" whereas the new -- quieter but still far too loud -- is of the usual "propeller" type). You've got yourself a customer.... --Ian Feldman / ianf@nada.kth.se || uunet!nada.kth.se!ianf / "There, Watson! / Obviously he is not the ImageWriter hacker we were looking for" ----------------------------------------------- From lll-winken!uunet!bnlux0.bnl.gov!kneifel Hello, I had used a CDEV/INIT called SCSI saver to do just that. I had a very loud drive that I didn't want to hear. What SCSI saver does is to use a user chosen timeout for doing a shutdown on the disk. When ever you want to use the disk again it takes a couple of seconds to spin up. I believe it is in the info-mac archives at Stanford. If you can't find it I have copy at home which I could mail to you. Hope this helps Charley L. Kneifel (kneifel@bnlux0.bnl.gov) P.S. I think the program is either PD or shareware. ----------------------------------------------- From pacbell!pyramid!munnari!rob From: munnari!rob (Robert Wallen) Someone has. I use it on my SE/30 and it seems to be ok. The only annoying thing is when you sit in ZModem for 30 minutes (my timeout value) working away and the drive powers down - next time you do an SFGetFile, it takes a while to start up. The 'cdev' is called SCSI Saver and was written by Darrell Pfeifer according to the cdev display. MacNet: Darrell GEnie: DPfeifer If you like, I could mail you a binhex'd copy. Just let me know. ----------------------------------------------- From apple!mica.berkeley.edu!korn Thu Apr 12 12:54:47 1990 From: apple!mica.berkeley.edu!korn (Peter "Arrgh" Korn) I'm almost certain that what is happening is that the drive is being parked. Since Finder 4.2 (I believe, if not sooner) Shutdown from Finder sends the appropriate command to a SCSI disk telling it to park itself. I don't know if there are ramifications w.r.t. open files if/when the drive is parked. I'm guessing that parking->powering down for that particular drive and/or driver (it might be on the card, or in the driver). Probably time for a debugger stepping through the Shutdown code. Also, I believe there is a Shutdown Manager (IM vol V) that may have a routine or two installed to do the parking/powering down. Look through that queue. Good luck! Peter -- -- Peter "Arrgh" Korn korn@mica.Berkeley.EDU {decvax,hplabs,sdcsvax,ulysses,usenix}!ucbvax!mica!korn ----------------------------------------------- From apple!coherent!dplatt Thu Apr 12 18:41:37 1990 >From my copy of the SCSI-1 specification... (lightly edited... the file I have is in WordPerfect format...). Issue this command and I think it'll work with most drives. The description says that this command is used to enable or disable further operations on the logical unit... most drives probably respond to this command by spinning down. 8.1.11 START/STOP UNIT Command Peripheral Device Type: Direct Access, Write-Once Read-Multiple, and Read-Only Direct Access Operation Code Type: Optional Operation Code: 1B (Hex) Table 8-20 START/STOP UNIT Command ============================================================================== Bit| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | Byte | | | | | | | | | ============================================================================== 0 | Operation Code | -----|-----------------------------------------------------------------------| 1 | Logical Unit Number | Reserved | Immed | -----|-----------------------------------------------------------------------| 2 | Reserved | -----|-----------------------------------------------------------------------| 3 | Reserved | -----|-----------------------------------------------------------------------| 4 | Reserved | Start | -----|-----------------------------------------------------------------------| 5 | Vendor Unique | Reserved | Flag | Link | ============================================================================== -- Dave Platt VOICE: (415) 493-8805 UUCP: ...!{ames,apple,uunet}!coherent!dplatt DOMAIN: dplatt@coherent.com INTERNET: coherent!dplatt@ames.arpa, ...@uunet.uu.net USNAIL: Coherent Thought Inc. 3350 West Bayshore #205 Palo Alto CA 94303 -- -- David Phillip Oster - Note new address. Old one has gone Bye Bye. -- oster@well.sf.ca.us = {backbone}!well!oster