From owner-freebsd-mobile@FreeBSD.ORG Tue Sep 8 14:40:53 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 69C7B106568F for ; Tue, 8 Sep 2009 14:40:53 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from dd12710.kasserver.com (dd12710.kasserver.com [85.13.134.233]) by mx1.freebsd.org (Postfix) with ESMTP id 26E3B8FC0A for ; Tue, 8 Sep 2009 14:40:53 +0000 (UTC) Received: from current.Sisis.de (cazador.sisis.de [193.31.11.193]) by dd12710.kasserver.com (Postfix) with ESMTP id 8E740184A8C37; Tue, 8 Sep 2009 16:40:54 +0200 (CEST) Received: (from guru@localhost) by current.Sisis.de (8.14.3/8.14.3/Submit) id n88EeoiZ006031; Tue, 8 Sep 2009 16:40:50 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: current.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Tue, 8 Sep 2009 16:40:50 +0200 From: Matthias Apitz To: Lars Engels Message-ID: <20090908144050.GA6014@current.Sisis.de> References: <20090820081055.GA2962@current.Sisis.de> <20090908082123.GR38884@e.0x20.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20090908082123.GR38884@e.0x20.net> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 8.0-CURRENT (i386) Cc: freebsd-mobile@freebsd.org Subject: Re: Dell M4400 && power-off the display on Lid close (8-CURRENT / Xorg) X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Sep 2009 14:40:53 -0000 El día Tuesday, September 08, 2009 a las 10:21:23AM +0200, Lars Engels escribió: > > but they are not estimated in /etc/devd.conf. Any hint for a good > > devd.conf entry to make that working? Thx in advance > > > > Btw: I don't want suspend/resume. > > Try this: > > notify 10 { > match "system" "ACPI"; > match "subsystem" "Lid"; > action"$PATH_TO_YOUR_SCRIPT $notify"; > }; > > And in your script you turn off the backlight with > xbacklight -set 0 > when notify is 0x00 and > xbacklight -set 100 > for 0x01. Thanks for your hint; I'm using since some time now: cat /usr/local/etc/devd/lid.conf # # When the the Lid is open / closed .... # # , August 2009 # notify 10 { match "system" "ACPI"; match "subsystem" "Lid"; match "notify" "0x00"; action "/usr/local/bin/xset -display :0.0 s 1"; }; notify 10 { match "system" "ACPI"; match "subsystem" "Lid"; match "notify" "0x01"; action "/usr/local/bin/xset -display :0.0 s 120"; }; Thx matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ People who hate Microsoft Windows use Linux but people who love UNIX use FreeBSD.