From owner-freebsd-current@FreeBSD.ORG Fri Jul 16 12:56:28 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 212F616A4CE for ; Fri, 16 Jul 2004 12:56:28 +0000 (GMT) Received: from otter3.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACB9D43D45 for ; Fri, 16 Jul 2004 12:56:27 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by otter3.centtech.com (8.12.3/8.12.3) with ESMTP id i6GCuQE8038551; Fri, 16 Jul 2004 07:56:26 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <40F7D06F.5060004@centtech.com> Date: Fri, 16 Jul 2004 07:56:15 -0500 From: Eric Anderson User-Agent: Mozilla Thunderbird 0.7.1 (X11/20040707) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Brad Davis References: <46569.199.201.236.2.1089959961.squirrel@199.201.236.2> In-Reply-To: <46569.199.201.236.2.1089959961.squirrel@199.201.236.2> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org Subject: Re: acpi_video without suspending X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jul 2004 12:56:28 -0000 Brad Davis wrote: >Hi, > >I have a Dell Inspirion 5150 running current from a few weeks ago and I'd >like to set it up so when I close the lid it doesn't go into suspend but >just turns off the display. I have set > >hw.acpi.lid_switch_state=S0 > >Which effectively stops the machine from suspending. But since the display >doesn't go off its putting out quite a bit of heat into a very small >inclosed space. > > You could use devd, like this: Put this in /etc/devd.conf (or change as necessary): notify 10 { match "system" "ACPI"; match "subsystem" "Lid"; action "/etc/rc.lid $notify"; }; and have /etc/rc.lid contain: sync && sync && sync if [ $1 = 0x00 ]; then logger -t Lid Close at `date +'%Y%m%d %H:%M:%S'` ( sleep 2 ; ataidle -s 0 0) & sysctl hw.acpi.video.lcd0.active=0 else logger -t Lid Open at `date +'%Y%m%d %H:%M:%S'` sysctl hw.acpi.video.lcd0.active=1 fi Make sure your lid state is '1' on bootup.. You can just force it to 1 if you need to in sysctl.conf or something.. Eric -- ------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Talk sense to a fool and he calls you foolish. ------------------------------------------------------------------