From owner-freebsd-mobile Wed Dec 26 9:13:14 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from ns.bsag.ch (ns.bsag.ch [62.2.201.74]) by hub.freebsd.org (Postfix) with ESMTP id 8966D37B417 for ; Wed, 26 Dec 2001 09:13:06 -0800 (PST) Received: from gw.bsag.ch (root@localhost) by ns.bsag.ch with ESMTP id fBQHENA25680 for ; Wed, 26 Dec 2001 18:14:23 +0100 (CET) Received: from ns.bsag.ch (bs13.bsag.ch [192.168.1.13]) by gw.bsag.ch with ESMTP id fBQHEMn25676 for ; Wed, 26 Dec 2001 18:14:22 +0100 (CET) Received: (from hpr@localhost) by ns.bsag.ch (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) id fBQHD5712187 for freebsd-mobile@FreeBSD.ORG; Wed, 26 Dec 2001 18:13:05 +0100 Date: Wed, 26 Dec 2001 18:13:05 +0100 From: Hanspeter Roth To: freebsd-mobile@FreeBSD.ORG Subject: Re: IDE standby timeout (hdparm) Message-ID: <20011226181305.A11126@bs13.bsag.ch> References: <20011219104954.A5747@bs82.bsag.ch> <20011219060022.A72034@kudra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.16i In-Reply-To: <20011219060022.A72034@kudra.com>; from robert@kudra.com on Wed, Dec 19, 2001 at 06:00:22AM -0500 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, Dec 19, 2001 at 06:00:22AM -0500, Robert Sexton wrote: > On Wed, Dec 19, 2001 at 10:49:54AM +0100, Hanspeter Roth wrote: > > > > is it possible to finetune the standby timeout (spindown) of > > IDE-disks? > > -Hanspeter > > As far as I know, the answer is still no. But heres a patch (good > against -CURRENT and recent -STABLE that adds it. I used 4.4-RELEASE. I had to add two more parameters to the ata_command call. I inserted two more zeros. if (ata_command(adp->controller, adp->unit, 0xe2, 0, 0, 0, ata_suspend/10, 0, ATA_WAIT_INTR)) > > To activate the patch, put the following in /boot/loader.conf: > > hw.ata.suspend=180 # 180 seconds For the disk I tested the time is maybe half of the time specified. Nevertheless, that's ok. This parameter is applied to all ATA disks. Of course the main topic here are mobiles which usually only have one. I would be interested in setting the suspend time for each disk individually. :-) (For a desktop. But it seems to me there is no appropriate mailing list which deals with power management in general.) -Hanspeter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message