From owner-freebsd-mobile Sat Jul 28 1:42: 0 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from freebsd.dk (fw-rl0.freebsd.dk [212.242.86.114]) by hub.freebsd.org (Postfix) with ESMTP id 4D6F037B405 for ; Sat, 28 Jul 2001 01:41:57 -0700 (PDT) (envelope-from sos@freebsd.dk) Received: (from sos@localhost) by freebsd.dk (8.11.3/8.11.3) id f6S8fvR80063; Sat, 28 Jul 2001 10:41:57 +0200 (CEST) (envelope-from sos) From: Søren Schmidt Message-Id: <200107280841.f6S8fvR80063@freebsd.dk> Subject: Re: ATA idle spindown patch. In-Reply-To: <15201.52182.97130.687513@kitab.cisco.com> "from Richard Johnson at Jul 27, 2001 01:15:18 pm" To: Richard Johnson Date: Sat, 28 Jul 2001 10:39:17 +0200 (CEST) Cc: Robert Sexton , freebsd-mobile@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=ISO-8859-1 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 It seems Richard Johnson wrote: > Robert Sexton writes: > > So heres a patch to implement it, hopefully the 'Right Way' (tm), but > > without the bells and whistles. Set hw.ata.suspend in /boot/loader.conf: > > hw.ata.suspend=300. (Choose your preferred idle time, or course) > > The default is not to even attempt to try setting > > the idle timer on the drive. So it should be harmless if not used. > > There are other wrinkles with altering > > the syncer to behave a little better, but a really useful solution is > > complicated. > > I've had basically this same thing hardcoded into ata-disk.c on my > laptop for quite a few months and, yes, it seems to work fine... > until you sleep the system and bring it back. After coming back from > sleep my laptop seems to have forgotten about the spindown time. > > It appears as though it also needs to be somewhere after resetting the > device when the machine comes back from sleep. Any ideas? It needs to be proberly integrated into the detach/attach/suspend/resume system for this to work proberly. I have most of it done here but currently too little time to get it really usefull... -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message