From owner-freebsd-mobile Fri Jul 27 13:16:14 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from sj-msg-core-3.cisco.com (sj-msg-core-3.cisco.com [171.70.157.152]) by hub.freebsd.org (Postfix) with ESMTP id 96D5A37B401 for ; Fri, 27 Jul 2001 13:16:10 -0700 (PDT) (envelope-from raj@cisco.com) Received: from mira-sjcm-2.cisco.com (mira-sjcm-2.cisco.com [171.69.24.14]) by sj-msg-core-3.cisco.com (8.11.3/8.9.1) with ESMTP id f6RKDuJ25002; Fri, 27 Jul 2001 13:14:16 -0700 (PDT) Received: from kitab.cisco.com (kitab.cisco.com [171.69.187.233]) by mira-sjcm-2.cisco.com (Mirapoint) with ESMTP id AEF00731; Fri, 27 Jul 2001 13:15:35 -0700 (PDT) Received: (from raj@localhost) by kitab.cisco.com (8.11.0/8.9.2) id f6RKFY011981; Fri, 27 Jul 2001 13:15:34 -0700 (PDT) (envelope-from raj) From: Richard Johnson MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15201.52182.97130.687513@kitab.cisco.com> Date: Fri, 27 Jul 2001 13:15:18 -0700 To: Robert Sexton Cc: freebsd-mobile@FreeBSD.ORG Subject: Re: ATA idle spindown patch. In-Reply-To: <20010724181649.A61408@kudra.com> References: <20010724181649.A61408@kudra.com> X-Mailer: VM 6.90 under 20.4 "Emerald" XEmacs Lucid 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 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? /raj To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message