All of lore.kernel.org
 help / color / mirror / Atom feed
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: Sun, 19 Sep 2010 14:18:34 +0300	[thread overview]
Message-ID: <20100919111834.GU2804@reaktio.net> (raw)
In-Reply-To: <20100727084112.GN17817@reaktio.net>

On Tue, Jul 27, 2010 at 11:41:12AM +0300, Pasi Kärkkäinen wrote:
> > >>
> > >
> > > 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?
> > 
> > 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 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.
> > 
> > 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 from 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

  reply	other threads:[~2010-09-19 11:52 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
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 [this message]
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=20100919111834.GU2804@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.