From owner-freebsd-mobile@FreeBSD.ORG Tue Sep 8 08:37:06 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 E21A8106566B for ; Tue, 8 Sep 2009 08:37:06 +0000 (UTC) (envelope-from lars@e.0x20.net) Received: from mail.0x20.net (mail.0x20.net [217.69.67.217]) by mx1.freebsd.org (Postfix) with ESMTP id A610E8FC0A for ; Tue, 8 Sep 2009 08:37:06 +0000 (UTC) Received: by mail.0x20.net (Postfix, from userid 1002) id C1379398B3; Tue, 8 Sep 2009 10:21:23 +0200 (CEST) Date: Tue, 8 Sep 2009 10:21:23 +0200 From: Lars Engels To: Matthias Apitz Message-ID: <20090908082123.GR38884@e.0x20.net> References: <20090820081055.GA2962@current.Sisis.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="reI/iBAAp9kzkmX4" Content-Disposition: inline In-Reply-To: <20090820081055.GA2962@current.Sisis.de> X-Editor: VIM - Vi IMproved 7.2 X-Operation-System: FreeBSD 5.5-RELEASE-p19 User-Agent: Mutt/1.5.19 (2009-01-05) 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 List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Sep 2009 08:37:07 -0000 --reI/iBAAp9kzkmX4 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 20, 2009 at 10:10:55AM +0200, Matthias Apitz wrote: >=20 > Hello, >=20 > I'm running 8-CURRENT and Xorg on the above mentioned laptop. >=20 > I'd like to have powered off the display on Lid close, and powered on > again on open; I watched the devd(8) events in both cases: >=20 > close: > setting system=3DACPI > setting subsystem=3DLid > setting type=3D\_SB_.LID_ > setting notify=3D0x00 > Processing notify event > ... >=20 > open: > setting system=3DACPI > setting subsystem=3DLid > setting type=3D\_SB_.LID_ > setting notify=3D0x01 > Processing notify event > ... >=20 > but they are not estimated in /etc/devd.conf. Any hint for a good > devd.conf entry to make that working? Thx in advance >=20 > 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. HTH Lars --reI/iBAAp9kzkmX4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkqmFAMACgkQKc512sD3afintACfa9QKipA41WQCny1CRpa+5FsZ Ui4AoKYRugaqJOujYkGbzfVbHPzSPLuA =UMRV -----END PGP SIGNATURE----- --reI/iBAAp9kzkmX4--