From: "Pasi Kärkkäinen" <pasik@iki.fi>
To: Alex Deucher <alexdeucher@gmail.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: Radeon 3650HD laptop LVDS lid open/closed detection problem
Date: Mon, 26 Jul 2010 22:42:42 +0300 [thread overview]
Message-ID: <20100726194242.GI17817@reaktio.net> (raw)
In-Reply-To: <AANLkTinQnMNoa347QNiUg91B5a85HwqSpZRYaAO-lFbg@mail.gmail.com>
On Mon, Jul 12, 2010 at 01:37:28PM -0400, Alex Deucher wrote:
> >> >>
> >> >
> >> > The other patch (0001-drm-radeon-kms-fix-shared-ddc-handling.patch) applied
> >> > my system mostly works now, but here's a summary about the problem I still 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 far.
> >> >
> >> > - The actual problem: when X starts gnome panel etc show up on the internal LVDS
> >> > display, which I can't see at all since the lid is closed! So those should 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?
>
> Not sure. That's handled by apci, not the video driver. You can
> check it the lid is producing proper events by running:
> cat /proc/acpi/button/lid/LID/state
> with the lid open and closed. The desktop manager decides what the
> policy is for the lid (blank display, suspend, turn off the connector,
> etc.). It should also take into account other connected outputs, but
> I don't think it handles that too well at the moment.
>
Yes, the lid acpi stuff seems to work:
lid closed:
$ cat /proc/acpi/button/lid/LID/state
state: closed
lid open:
$ cat /proc/acpi/button/lid/LID/state
state: open
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?
I think LVDS actually is ON when lid is closed, since I can immediately
see everything when I open the lid.. correct colors etc.
So what's the component I should start looking at.. gnome-power-manager?
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.
-- Pasi
next prev parent reply other threads:[~2010-07-26 19:42 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-21 12:31 Radeon 3650HD laptop LVDS lid open/closed detection problem Pasi Kärkkäinen
2010-06-21 12:51 ` Jerome Glisse
2010-06-21 14:53 ` Francisco Jerez
2010-06-21 15:12 ` Alex Deucher
2010-06-21 15:52 ` Francisco Jerez
2010-07-12 11:53 ` Pasi Kärkkäinen
2010-07-12 14:48 ` Alex Deucher
2010-07-12 16:59 ` Pasi Kärkkäinen
2010-07-12 17:37 ` Alex Deucher
2010-07-26 19:42 ` Pasi Kärkkäinen [this message]
2010-07-26 21:13 ` Alex Deucher
2010-07-27 8:41 ` Pasi Kärkkäinen
2010-09-19 11:18 ` Pasi Kärkkäinen
2010-09-19 11:34 ` Pasi Kärkkäinen
2010-09-19 12:25 ` Pasi Kärkkäinen
2010-09-19 14:56 ` Pasi Kärkkäinen
2010-09-20 3:56 ` Alex Deucher
2010-09-20 5:53 ` Pasi Kärkkäinen
2010-09-21 5:09 ` Alex Deucher
2010-09-21 8:35 ` Pasi Kärkkäinen
2010-06-21 18:05 ` Pasi Kärkkäinen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100726194242.GI17817@reaktio.net \
--to=pasik@iki.fi \
--cc=alexdeucher@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.