From owner-freebsd-mobile@FreeBSD.ORG Tue Apr 13 09:09:55 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 D6C8816A4CE for ; Tue, 13 Apr 2004 09:09:55 -0700 (PDT) Received: from otter3.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62E4643D5C for ; Tue, 13 Apr 2004 09:09:55 -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 i3DG9sE8006654; Tue, 13 Apr 2004 11:09:54 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <407C10CE.4090401@centtech.com> Date: Tue, 13 Apr 2004 11:09:50 -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> In-Reply-To: <20040413160206.GA14154@panix.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:09:55 -0000 Jesse Sheidlower wrote: >I'm running 5.2-CURRENT on an IBM ThinkPad T41p. Though I had >originally had some of the problems others here have reported, >as with USB on resume, things seems to have cleared up by now; >I'm not sure why (perhaps something recent with ACPI support >in CURRENT has helped). > >I can successfully suspend with "zzz" or "acpiconf -s 3", and >resume by hitting the power button. But shutting the cover >does nothing. Opening the cover, after having suspended with >either of the above, _does_ resume, however. > >Is this something I need to configure somewhere, or is it >something that will never work, or what? > > Here's what I have set up on my Dell D600: in /etc/sysctl.conf: hw.acpi.video.lcd0.active=1 hw.acpi.lid_switch_state=NONE and in /etc/devd.conf: notify 10 { match "system" "ACPI"; match "subsystem" "Lid"; action "/etc/rc.lid $notify"; }; 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 Hope that helps. Eric -- ------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Today is the tomorrow you worried about yesterday. ------------------------------------------------------------------