From owner-freebsd-current@FreeBSD.ORG Sat Jul 17 02:29:23 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 1CB2216A4CE for ; Sat, 17 Jul 2004 02:29:23 +0000 (GMT) Received: from h2.liquidneon.com (h2.liquidneon.com [216.38.206.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA7F943D39 for ; Sat, 17 Jul 2004 02:29:22 +0000 (GMT) (envelope-from so14k@so14k.com) Received: (qmail 90943 invoked from network); 17 Jul 2004 02:29:22 -0000 Received: from c-24-8-51-173.client.comcast.net (HELO hole.house.so14k.com) (brad@liquidneon.com@24.8.51.173) by h2.liquidneon.com with RC4-MD5 encrypted SMTP; 17 Jul 2004 02:29:22 -0000 From: Brad Davis To: freebsd-current@freebsd.org Date: Fri, 16 Jul 2004 20:29:20 -0600 User-Agent: KMail/1.6.2 References: <46569.199.201.236.2.1089959961.squirrel@199.201.236.2> <40F7D06F.5060004@centtech.com> In-Reply-To: <40F7D06F.5060004@centtech.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200407162029.20862.so14k@so14k.com> cc: Eric Anderson 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: Sat, 17 Jul 2004 02:29:23 -0000 On Friday 16 July 2004 6:56 am, Eric Anderson wrote: > 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 Hi Eric, I have done this, but nothing happens. I don't get any entries into syslog after running devd -dD I get this: hole# devd -dD Parsing /etc/devd.conf ethernet-nic-regex=(an|ar|ath|aue|awi|bfe|bge|cm|cnw|cs|cue|dc|de|ed|el|em|ep| ex|fe|fxp|gem|gx|hme|ie|kue|lge|lnc|my|nge|pcn|ray|re|rl|rue|sf|sis|sk|sn| snc|ste|ti|tl|tx|txp|vr|vx|wb|wi|xe|xl)[0-9]+ scsi-controller-regex=(adv|advw|aic|aha|ahb|ahc|ahd|bt|ct|iir|isp|mly|mpt|ncv| nsp|stg|sym|wds)[0-9]+ Parsing files in /etc/devd Parsing files in /usr/local/etc/devd How would I enable devd on boot? I didn't see anything in the /etc/rc* scripts. I also don't see anything when I unplug the power to my laptop or close the lid from the debug output of devd. Regards, Brad Davis -- Q: Why do mountain climbers rope themselves together? A: To prevent the sensible ones from going home.