[gnome-desktop] bgo#670459 [GnomeRR] - Consider Embedded Display Port outputs as the laptop's built-in display
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop] bgo#670459 [GnomeRR] - Consider Embedded Display Port outputs as the laptop's built-in display
- Date: Thu, 23 Feb 2012 20:08:29 +0000 (UTC)
commit 11997d32313cd67f24cb26e18c562fa4b75ea36f
Author: Seth Forshee <seth forshee canonical com>
Date: Thu Feb 23 14:07:38 2012 -0600
bgo#670459 [GnomeRR] - Consider Embedded Display Port outputs as the laptop's built-in display
xorg still hasn't fixed https://bugs.freedesktop.org/show_bug.cgi?id=26736 which is
about drivers properly exposing the ConnectorType property. This would let us
unambiguously identify a laptop's built-in display without playing heuristics
on the RANDR output names. For now, we'll use 'eDP' as the name given to
Embedded Display Port outputs.
libgnome-desktop/gnome-rr.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libgnome-desktop/gnome-rr.c b/libgnome-desktop/gnome-rr.c
index c7afd8e..b319b26 100644
--- a/libgnome-desktop/gnome-rr.c
+++ b/libgnome-desktop/gnome-rr.c
@@ -1905,7 +1905,8 @@ gnome_rr_output_is_laptop (GnomeRROutput *output)
&& (strstr (output->name, "lvds") || /* Most drivers use an "LVDS" prefix... */
strstr (output->name, "LVDS") ||
strstr (output->name, "Lvds") ||
- strstr (output->name, "LCD"))) /* ... but fglrx uses "LCD" in some versions. Shoot me now, kthxbye. */
+ strstr (output->name, "LCD") || /* ... but fglrx uses "LCD" in some versions. Shoot me now, kthxbye. */
+ strstr (output->name, "eDP"))) /* eDP is for internal laptop panel connections */
return TRUE;
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]