From owner-freebsd-questions@FreeBSD.ORG Mon Apr 7 08:49:34 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 7AC931065670 for ; Mon, 7 Apr 2008 08:49:34 +0000 (UTC) (envelope-from spil.oss@googlemail.com) Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3527A8FC2A for ; Mon, 7 Apr 2008 08:49:34 +0000 (UTC) (envelope-from spil.oss@googlemail.com) Received: by el-out-1112.google.com with SMTP id v27so919379ele.12 for ; Mon, 07 Apr 2008 01:49:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=3+zqugzMAc4rnj9NMNxeLxg+XnzL1ud/35nrYeuJVZ4=; b=A9ZewYzi5gu+Rz/55TnYWB96bHBmnMRgTMCVTlBlPBkKGnRtIwAWitSPCZ/71EZoBv5bcd+Ve1xqxKfgDEbPFKL4KwkcjNg9tx1zI8Gg3WjhUjV+GclWVZ0DWcLxBtVHl7UDtCymcBLZ0aTbBQcvnEEhOyoIEH7hJrFfd4qRl5M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=s/pRC9cw7LpANg1bCLD0qf5ITtLqhsNPAdZ7iaJ8IPIQ9ujzAq9FSqhYSzwKAjvmqr9XL0Bdsw8nvkqq0ny/R8BksFP1vi50uTtpSA5FsG+ST2skEXHCo5PrZb6MnSJJW/0earjLGd2q5vBLlHSC4CmdC09NxM63gZbPjNhSa1k= Received: by 10.115.54.1 with SMTP id g1mr5547340wak.140.1207558171633; Mon, 07 Apr 2008 01:49:31 -0700 (PDT) Received: by 10.70.27.5 with HTTP; Mon, 7 Apr 2008 01:49:31 -0700 (PDT) Message-ID: <5fbf03c20804070149j15a3e3b1s54ced2f0bfc81efd@mail.gmail.com> Date: Mon, 7 Apr 2008 10:49:31 +0200 From: "Spil Oss" To: freebsd-questions@freebsd.org In-Reply-To: <731432799.20080406100414@masm.elcom.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5fbf03c20804040812t5fdf8065ubf46d6420358595@mail.gmail.com> <5fbf03c20804040844q22875ac8nbbc3fae121d3eac8@mail.gmail.com> <731432799.20080406100414@masm.elcom.ru> Subject: Re: Problem with lid on Dell D400 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: spil.oss@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Apr 2008 08:49:34 -0000 Thanks Victor, Installed acpi_video and will try this later, currently I can't get to the console to check. Will report back after checking! New sysctls after kldload acpi_video: hw.acpi.video.tv0.active: 0 hw.acpi.video.crt0.active: 0 hw.acpi.video.lcd0.active: 0 hw.acpi.video.ext0.active: 0 Kind regards, Spil On 06/04/2008, Victor M. Blood wrote: > 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 > > > > > >