From owner-freebsd-mobile@FreeBSD.ORG Tue Apr 13 09:25:54 2004 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6AFC516A4DA for ; Tue, 13 Apr 2004 09:25:54 -0700 (PDT) Received: from otter3.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2519643D2D for ; Tue, 13 Apr 2004 09:25:54 -0700 (PDT) (envelope-from anderson@centtech.com) Received: from centtech.com (neutrino.centtech.com [10.177.171.220]) by otter3.centtech.com (8.12.3/8.12.3) with ESMTP id i3DGPmE8011310; Tue, 13 Apr 2004 11:25:53 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <407C1488.9070408@centtech.com> Date: Tue, 13 Apr 2004 11:25:44 -0500 From: Eric Anderson User-Agent: Mozilla Thunderbird 0.5 (X11/20040406) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jesse Sheidlower References: <20040413160206.GA14154@panix.com> <407C10CE.4090401@centtech.com> In-Reply-To: <407C10CE.4090401@centtech.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-mobile@freebsd.org Subject: Re: Activating ACPI suspend on lid close? X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Apr 2004 16:25:54 -0000 Eric Anderson wrote: [..snip..] > > and /etc/rc.lid looks like: > sync && sync && sync > > if [ $1 = 0x00 ]; then > logger -t Lid Close at `date +'%Y%m%d %H:%M:%S'` > /etc/rc.suspend acpi 3 > else > logger -t Lid Open at `date +'%Y%m%d %H:%M:%S'` > /etc/rc.resume acpi 3 > fi > One slight modification to the rc.lid script: add: ( sleep 2 ; ataidle -s 0 0) & before the "/etc/rc.suspend acpi 3" line to have it spin down and suspend the disk also. Eric -- ------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Today is the tomorrow you worried about yesterday. ------------------------------------------------------------------