From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: Radeon 3650HD laptop LVDS lid open/closed detection problem Date: Sun, 19 Sep 2010 14:18:34 +0300 Message-ID: <20100919111834.GU2804@reaktio.net> References: <20100621125159.GE2350@barney.localdomain> <87y6e8zbb0.fsf@riseup.net> <20100712115301.GP17817@reaktio.net> <20100712165956.GR17817@reaktio.net> <20100726194242.GI17817@reaktio.net> <20100727084112.GN17817@reaktio.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from vulpes-int.media.sonera.net (smtp.tele.fi [192.89.123.25]) by gabe.freedesktop.org (Postfix) with ESMTP id 2C14B9E74B for ; Sun, 19 Sep 2010 04:52:35 -0700 (PDT) Received: from smtp.tele.fi (smtp.tele.fi [192.89.123.25]) by vulpes-int.media.sonera.net (Postfix) with ESMTP id 6266E1FE5 for ; Sun, 19 Sep 2010 14:18:49 +0300 (EEST) Content-Disposition: inline In-Reply-To: <20100727084112.GN17817@reaktio.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Alex Deucher Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Tue, Jul 27, 2010 at 11:41:12AM +0300, Pasi K=E4rkk=E4inen wrote: > > >> > > > > > > Yes, the lid acpi stuff seems to work: > > > > > > lid closed: > > > $ cat /proc/acpi/button/lid/LID/state > > > state: =A0 =A0 =A0closed > > > > > > lid open: > > > $ cat /proc/acpi/button/lid/LID/state > > > state: =A0 =A0 =A0open > > > > > > I also verified that the initial lid state is "closed" when > > > the lid has been closed all the time during system startup > > > and only external DVI display is in use. > > > > > > (I modified /etc/rc5.d/S01sysstat to sleep+print+sleep > > > so I can check it during system startup before X starts). > > > > > > When the lid is closed xrandr says "LVDS connected", is that correct? > > = > > Yes. The LVDS is connected, even if you don't necessarily want to use = it. > > = > = > That's what I was thinking of. But good to get confirmation :) > = > > > > > > I think LVDS actually is ON when lid is closed, since I can immediate= ly > > > see everything when I open the lid.. correct colors etc. > > > > > > So what's the component I should start looking at.. gnome-power-manag= er? > > > or something else? > > > > > > Actually.. I just noticed that already in GDM prompt the internal LVDS > > > gets enabled/turned on, even when the lid is closed.. I think. > > = > > Yes, it's up to to gdm, gnome-power-manager, etc. to decide the > > display policy based on the lid state. > > = > = > Ok. Is there a way to monitor the status of drm from /proc or /sys or fro= m somewhere? = > = Back to this.. so "/proc/acpi/button/lid/LID/state" seems to work properly on my laptop, but is there a way to monitor the state of the drm/kms outputs from /proc, = /sys or from somewhere? = I'd like to see the state before X is started, and verify what happens when= GDM is started etc.. = (ie. if outputs are enabled/active or not). -- Pasi