From owner-freebsd-questions@FreeBSD.ORG Wed Aug 18 18:09:42 2010 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 18C901065673 for ; Wed, 18 Aug 2010 18:09:42 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr13.xs4all.nl (smtp-vbr13.xs4all.nl [194.109.24.33]) by mx1.freebsd.org (Postfix) with ESMTP id A4A548FC21 for ; Wed, 18 Aug 2010 18:09:41 +0000 (UTC) Received: from slackbox.erewhon.net (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr13.xs4all.nl (8.13.8/8.13.8) with ESMTP id o7II9dJo032477; Wed, 18 Aug 2010 20:09:39 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.erewhon.net (Postfix, from userid 1001) id B5635BAAA; Wed, 18 Aug 2010 20:09:38 +0200 (CEST) Date: Wed, 18 Aug 2010 20:09:38 +0200 From: Roland Smith To: Antonio Vieiro Message-ID: <20100818180938.GA35935@slackbox.erewhon.net> References: <4C6C174B.5000900@antonioshome.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ReaqsoxgOBHFXBhH" Content-Disposition: inline In-Reply-To: <4C6C174B.5000900@antonioshome.net> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: FreeBSD Questions Subject: Re: Can't control laptop's lid... how to debug? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Aug 2010 18:09:42 -0000 --ReaqsoxgOBHFXBhH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 18, 2010 at 07:24:27PM +0200, Antonio Vieiro wrote: > Hi all, >=20 > I am unable to control my laptop's lid. Whenever I close the lid the=20 > system enters a weird state and I have to reboot. Are you sure you need to? My laptop automatically switches of the screen wh= en the lid is closed. > I've already added >=20 > #Lid switch > notify 0 { > match "system" "ACPI"; > match "subsystem" "Lid"; > match "notify" "0x00"; > action "xset dpms force off"; > }; >=20 > notify 0 { > match "system" "ACPI"; > match "subsystem" "Lid"; > match "notify" "0x01"; > action "xset dpms force on"; > }; >=20 >=20 > to my /etc/devd.conf >=20 > This seemed to work the very first time, but then the system entered a=20 > weird state and I couldn't recover it, so I had to reboot. >=20 > Is there any way to debug acpi events so that I can see what's going on= =20 > without having to reboot? Set the 'debug.acpi.resume_beep' sysctl(8) to 1 to make the speaker beep on resume. That can help you debug problems. Setting 'hw.acpi.verbose' might a= lso help.=20 Some systems need the sysctl 'hw.acpi.reset_video' set to 1 to get it to resume properly. See acpi(4). Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --ReaqsoxgOBHFXBhH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAkxsIeIACgkQEnfvsMMhpyWQfACgkwK8nSH4kN7s3sB/i5Dvo2+h luoAn3/pJPV4T8gNEXOp6nl3hsd8X23l =MSRX -----END PGP SIGNATURE----- --ReaqsoxgOBHFXBhH--