From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 2 16:47:39 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC93016A4CE for ; Fri, 2 Jul 2004 16:47:39 +0000 (GMT) Received: from n066.sc1.cp.net (h13.rdg.cp.net [209.228.29.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D76043D1D for ; Fri, 2 Jul 2004 16:47:39 +0000 (GMT) (envelope-from bruce@cran.org.uk) Received: from [192.168.0.10] (82.3.65.58) by n066.sc1.cp.net (7.0.027.3-1) id 40C8ED0900324A71; Fri, 2 Jul 2004 16:46:35 +0000 In-Reply-To: <86d63n8ttx.fsf@kamino.rfc1149.org> References: <86d63n8ttx.fsf@kamino.rfc1149.org> Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <60B91C04-CC47-11D8-B2DB-000D93ACEE20@cran.org.uk> Content-Transfer-Encoding: 7bit From: Bruce Cran Date: Fri, 2 Jul 2004 17:46:34 +0100 To: Arne Schwabe X-Mailer: Apple Mail (2.618) cc: hackers@freebsd.org Subject: Re: Setting Standby Mode for ATA Disks X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2004 16:47:40 -0000 On 25 Jun 2004, at 17:51, Arne Schwabe wrote: > Hi, > > is there a way to set the standby mode for ATA Disks > > Under linux hdparm -S seems to work: > > -S Set the standby (spindown) timeout for the drive. This > value is > used by the drive to determine how long to wait (with > no disk > activity) before turning off the spindle motor to > save power. > Under such circumstances, the drive may take as long as > 30 sec- > onds to respond to a subsequent disk access, though > most drives > are much quicker. The encoding of the timeout value is > somewhat > peculiar. A value of zero means "off". Values from > 1 to 240 > specify multiples of 5 seconds, for timeouts from 5 > seconds to > 20 minutes. Values from 241 to 251 specify from 1 to > 11 units > of 30 minutes, for timeouts from 30 minutes to 5.5 > hours. A > value of 252 signifies a timeout of 21 minutes, 253 > sets a ven- > dor-defined timeout, and 255 is interpreted as 21 > minutes plus > 15 seconds. > > I googled but I did not found anything like this for FreeBSD :/ ATAidle (http://www.cran.org.uk/bruce/software/ataidle.php and sysutils/ataidle in ports) does this. Unfortunately due to a site redesign, the page seems to have been dropped from the google results; I'll have to add the keywords back in so it gets listed again! -- Bruce Cran