Date: Wed, 18 Aug 2010 20:09:38 +0200 From: Roland Smith <rsmith@xs4all.nl> To: Antonio Vieiro <antonio@antonioshome.net> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Can't control laptop's lid... how to debug? Message-ID: <20100818180938.GA35935@slackbox.erewhon.net> In-Reply-To: <4C6C174B.5000900@antonioshome.net> References: <4C6C174B.5000900@antonioshome.net>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Wed, Aug 18, 2010 at 07:24:27PM +0200, Antonio Vieiro wrote:
> Hi all,
>
> I am unable to control my laptop's lid. Whenever I close the lid the
> system enters a weird state and I have to reboot.
Are you sure you need to? My laptop automatically switches of the screen when
the lid is closed.
> I've already added
>
> #Lid switch
> notify 0 {
> match "system" "ACPI";
> match "subsystem" "Lid";
> match "notify" "0x00";
> action "xset dpms force off";
> };
>
> notify 0 {
> match "system" "ACPI";
> match "subsystem" "Lid";
> match "notify" "0x01";
> action "xset dpms force on";
> };
>
>
> to my /etc/devd.conf
>
> This seemed to work the very first time, but then the system entered a
> weird state and I couldn't recover it, so I had to reboot.
>
> Is there any way to debug acpi events so that I can see what's going on
> 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 also
help.
Some systems need the sysctl 'hw.acpi.reset_video' set to 1 to get it to
resume properly.
See acpi(4).
Roland
--
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)
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (FreeBSD)
iEYEARECAAYFAkxsIeIACgkQEnfvsMMhpyWQfACgkwK8nSH4kN7s3sB/i5Dvo2+h
luoAn3/pJPV4T8gNEXOp6nl3hsd8X23l
=MSRX
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100818180938.GA35935>
