From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: Radeon 3650HD laptop LVDS lid open/closed detection problem Date: Mon, 12 Jul 2010 19:59:56 +0300 Message-ID: <20100712165956.GR17817@reaktio.net> References: <20100621123119.GJ17817@reaktio.net> <20100621125159.GE2350@barney.localdomain> <87y6e8zbb0.fsf@riseup.net> <20100712115301.GP17817@reaktio.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from ydin.reaktio.net (reaktio.net [194.89.68.22]) by gabe.freedesktop.org (Postfix) with ESMTP id 9CCA49E7F8 for ; Mon, 12 Jul 2010 09:59:55 -0700 (PDT) Content-Disposition: inline In-Reply-To: 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 Mon, Jul 12, 2010 at 10:48:08AM -0400, Alex Deucher wrote: > On Mon, Jul 12, 2010 at 7:53 AM, Pasi K=E4rkk=E4inen wrote: > > On Mon, Jun 21, 2010 at 11:12:51AM -0400, Alex Deucher wrote: > >> On Mon, Jun 21, 2010 at 10:53 AM, Francisco Jerez wrote: > >> > Jerome Glisse writes: > >> > > >> >> On Mon, Jun 21, 2010 at 03:31:19PM +0300, Pasi K=E4rkk=E4inen wrote: > >> >>> Hello, > >> >>> > >> >>> After fixing the dvi/hdmi detection problem I now have another pro= blem > >> >>> with the HP EliteBook 8530p, which has Radeon 3650HD adapter. > >> >>> > >> >>> Here's a summary of the environment: > >> >>> > >> >>> =A0 =A0 =A0- laptop connected to a docking station. > >> >>> =A0 =A0 =A0- external display in use, connected with DVI to the do= ck. > >> >>> =A0 =A0 =A0- laptop lid closed, so internal LVDS display is not us= ed. > >> >>> > >> >>> Now, when I start the laptop, I can see the BIOS and grub on the e= xternal DVI display. > >> >>> All fine so far. I select the Fedora 13 kernel, and Linux starts. = I see the Fedora > >> >>> graphical boot on the external DVI display, just like it should be= . GDM login prompt > >> >>> appears on the external DVI display, still everything fine. > >> >>> > >> >>> And then it goes wrong. After I login to X, the external display o= nly shows the background > >> >>> picture.. it turns out the desktop stuff has been started to the i= nternal LVDS display, > >> >>> which shouldn't be used at all since the laptop lid is closed!! > >> >>> > >> >>> When the laptop lid is closed, and external display is connected, = I want to use only the external display.. > >> >>> > >> >>> Any ideas how to troubleshoot this one? > >> > >> Does it work ok if you boot up without the external display connected > >> and then connect and enable the secondary display after you've logged > >> in? > >> > > > > I just tried this. > > > > I boot up the laptop with lid open, so ONLY the internal LVDS is active > > (DVI cable disconnected), and I get the GDM login prompt on the interna= l LVDS. > > > > Then I plug in the external DVI display, and the external display > > gets automatically active when X starts. Gnome panel etc are on the int= ernal LVDS, > > external DVI display only has the background image and nothing else. > > > > So that works as expected. No problems there. > > > >> =A0I have a similar issue here; =A0I think it's an issue with rhgb and > >> starting X. =A0If I boot with an external display, the entire plymouth > >> load sequence works fine, but then when X starts the external display > >> goes blank and the internal display hangs on the plymouth screen. =A0On > >> a related note, if I close the lid and turn off the LVDS output, gpm > >> never blanks the external monitor. =A0I have to manually force dpms wi= th > >> xset. > >> > > > > The other patch (0001-drm-radeon-kms-fix-shared-ddc-handling.patch) app= lied > > my system mostly works now, but here's a summary about the problem I st= ill have > > with the lid detection: > > > > - I boot up the laptop with lid closed (LVDS inactive) so there's only = external > > DVI display connected. Kernel boot messages show up on the external DVI= display, > > and GDM login prompt appears on the external DVI display. All fine so f= ar. > > > > - The actual problem: when X starts gnome panel etc show up on the inte= rnal LVDS > > display, which I can't see at all since the lid is closed! So those sho= uld go to the > > external DVI display only.. LVDS should be disconnected or inactive or = something.. > > > > Any pointers appreciated where to look at in the source.. I can do some= debugging. > = > Your desktop session manager should check the lid status when it loads > and attempt to do the right thing if there is an external monitor > detected. > = Ok. So you think it's not a bug in the lid detection? = -- Pasi