All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adam Jackson <ajax@redhat.com>
To: Alan Amaral <alan.amaral@virtualcomputer.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: Is there a way to determine which display is the laptop display?
Date: Mon, 06 Feb 2012 16:44:16 -0500	[thread overview]
Message-ID: <4F3049B0.20403@redhat.com> (raw)
In-Reply-To: <C481BAE374A10B4F934DF3899B8E4011103E0A@BE23.exg4.exghost.com>

On 2/2/12 4:28 PM, Alan Amaral wrote:
> With earlier hardware it was pretty easy to determine which display was the laptop display
> as it was usually (always?) "LVDS".  With new hardware it's sometimes an embedded display
> port (eDP) display, and I've seen at least one laptop which has the laptop monitor listed as simply
> Display Port (DP), although that may not have been an Intel machine.  In the DP case the laptop
> monitor can't be distinguished from a normal display port monitor.

If the driver isn't reporting an eDP display as eDP, the driver is broken.

> The current code I have uses some heuristics to figure out what outputs are available on the system,
> i.e. checks for LVDS, then eDP, then DP, and makes a guess as to which one is the laptop monitor,
> but in some cases, like the DisplayPort case I described above, it's impossible to know for sure, and
> if a future release changes the names it will fail.

The names won't change.  There might be some new embedded display 
connectivity in the future with a new name, but that's something you'd 
have to handle then anyway.

Ideally we'd come up with a way to proxy laptop lid state into DRM 
connector state directly, but a) there's a lot of broken hardware in the 
world and b) the kernel tends to stridently resist getting anything 
right in kernelspace when it's easier to let people get it wrong in 
userspace instead.  Yes I'm bitter.

- ajax

  reply	other threads:[~2012-02-06 21:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-02 21:28 Is there a way to determine which display is the laptop display? Alan Amaral
2012-02-06 21:44 ` Adam Jackson [this message]
2012-02-07 20:42   ` Alan Amaral

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=4F3049B0.20403@redhat.com \
    --to=ajax@redhat.com \
    --cc=alan.amaral@virtualcomputer.com \
    --cc=intel-gfx@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.