From owner-freebsd-questions@FreeBSD.ORG Sun Apr 6 06:04:14 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9CF8A1065673 for ; Sun, 6 Apr 2008 06:04:14 +0000 (UTC) (envelope-from root@masm.elcom.ru) Received: from smtp.elcom.ru (smtp.elcom.ru [84.53.200.28]) by mx1.freebsd.org (Postfix) with ESMTP id 4AB938FC12 for ; Sun, 6 Apr 2008 06:04:14 +0000 (UTC) (envelope-from root@masm.elcom.ru) Received: by smtp.elcom.ru (Postfix, from userid 65534) id DB1523D95BE; Sun, 6 Apr 2008 10:04:11 +0400 (MSD) Received: from comp.vmhost.my (dsl-212-78.elcom.ru [84.53.212.78]) by smtp.elcom.ru (Postfix) with ESMTP id A12943D95BC; Sun, 6 Apr 2008 10:04:11 +0400 (MSD) Date: Sun, 6 Apr 2008 10:04:14 +0400 From: "Victor M. Blood" X-Mailer: The Bat! (v3.80.06) Professional Organization: Home Programming Inc. X-Priority: 3 (Normal) Message-ID: <731432799.20080406100414@masm.elcom.ru> To: Spil Oss , freebsd-questions@freebsd.org In-Reply-To: <5fbf03c20804040844q22875ac8nbbc3fae121d3eac8@mail.gmail.com> References: <5fbf03c20804040812t5fdf8065ubf46d6420358595@mail.gmail.com> <5fbf03c20804040844q22875ac8nbbc3fae121d3eac8@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Subject: Re: Problem with lid on Dell D400 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Apr 2008 06:04:14 -0000 On 04.04.2008, Spil Oss wrote: > On a Dell D400 notebook (Pentium-M 1.4GHz, Intel 855GM, ICH4M) running > FreeBSD 7.0 #0 > Closing the lid switches off the display, opening the lid does not > switch the display back on. Very annoying. The machine is fully > functional otherwise (accessed via ssh). > Noticed this first on a vanilla FreeBSD-7.0 #0 install, the optimized > kernel seems to behave the same. > In sysctl I noticed after closing and opening the lid > hw.acpi.lid_switch_state: NONE > but I have not checked the status of this sysctl before I closed the lid. > dmesg output is not of boot -v, but of regular boot > I wouldn't care if the lid doesn't have acpi features (e.g. suspend on > lid close), but I'd like the screen to switch off for additional > battery-life. > Hope someone can help me! on Dell 1300B I use module acpi_video add to loader.conf acpi_video_load="yes" and configure devd.conf to run script on lid change status: exist in it's examples. notify 10 { match "system" "ACPI"; match "subsystem" "Lid"; action "/sbin/lidctl $notify"; }; # cat /sbin/lidctl #!/bin/sh hive=hw.acpi.video.lcd0.active sysctl=/sbin/sysctl case "$1" in "1" | "0x01") ${sysctl} ${hive}=1 >/dev/null ;; "0" | "0x00") ${sysctl} ${hive}=0 >/dev/null ;; esac -- With all regards, Victor M. Blood. mailto: freebsd@masm.elcom.ru FTN: 2:5024/1.95@Fidonet.org, ICQ#3567656