From owner-freebsd-current@FreeBSD.ORG Sat Sep 13 02:20:41 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D8CC16A4BF for ; Sat, 13 Sep 2003 02:20:41 -0700 (PDT) Received: from spork.pantherdragon.org (spork.pantherdragon.org [206.29.168.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5292444001 for ; Sat, 13 Sep 2003 02:20:40 -0700 (PDT) (envelope-from dmp@bitfreak.org) Received: from speck.techno.pagans (12-206-23-247.client.attbi.com [12.206.23.247]) by spork.pantherdragon.org (Postfix) with ESMTP id 9B1CD2A41F; Sat, 13 Sep 2003 02:20:39 -0700 (PDT) Received: from speck.techno.pagans (localhost.techno.pagans [127.0.0.1]) by speck.techno.pagans (Postfix) with SMTP id 9262EC0EE; Sat, 13 Sep 2003 02:20:35 -0700 (PDT) Date: Sat, 13 Sep 2003 02:20:35 -0700 From: Darren Pilgrim To: John-Mark Gurney Message-Id: <20030913022035.261bfb15.dmp@bitfreak.org> In-Reply-To: <20030913081616.GV39788@funkthat.com> References: <20030911175541.2da727af.dmp@bitfreak.org> <20030913081616.GV39788@funkthat.com> X-Mailer: Sylpheed version 0.9.3claws (GTK+ 1.2.10; i386-portbld-freebsd5.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-current Subject: Re: How do put an ATA disk into sleep/standby mode? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Sep 2003 09:20:41 -0000 On 2003.09.13 01:16:16 -0700, John-Mark Gurney wrote: > Darren Pilgrim wrote this message on Thu, Sep 11, 2003 at 17:55 -0700: > > In my workstation, running 5.1-R, I have two disks, one containing > > FreeBSD, the other Windows. Since the Windows disk isn't used at > > all when in FreeBSD, I would like to put it into standby or sleep > > mode(whichever is necessary) to make it spin down, reducing heat and > > noise production--both of which have become a real problem. > > > > This is at least technically possible, since spinning down a disk is > > part of the APM sleep mode. The capabilities list atacontrol > > reports for the disk in question shows power management and advanced > > power management as being supported, and I've gotten Windows to spin > > down this disk. I haven't had any luck figuring out how to do this > > in FreeBSD, though. > > > > So how do I accomplish this? > > Well, in -current, sos has commited a frame work that will let a > userland utility to send arbitrary commands to the disks, and so > this will be possible from a utility. I may just wait for 5.2 to work on this, then. > I wanted this feature too, and I happen to be browsing around the ata > spec and noticed that you can include a spin down time as part of the > disk idle command.. The disk idle command appears to be quite > harmless as it just asks the drive to go to idle (if it was doing a > read ahead or something else). So, I have this patch. I originally > did this against 4.2-R I believe, but I think I have updated it to a > more recent version.. (the revisions it's against are in the patch).. > > hope this helps you. It does, in that it confirms that it's at least possible to spin down disks without suspending the entire machine. What I was thinking of, though, was a program or extension to atacontrol that would send the standby or sleep signal and detach the device to avoid having an unresponsive device entry.