[mutter] monitor-manager-kms: Use the same connector type names as the X server



commit 7ba803934cc2e89384321b590f9436f83374772b
Author: Rui Matos <tiagomatos gmail com>
Date:   Wed Aug 24 14:38:30 2016 +0200

    monitor-manager-kms: Use the same connector type names as the X server
    
    Switch to the connector type names used by the X server's modesetting
    driver which, in particular, fixes DVI-A being labeled DVID.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=770338

 src/backends/native/meta-monitor-manager-kms.c |   20 +++++++++++++++++---
 1 files changed, 17 insertions(+), 3 deletions(-)
---
diff --git a/src/backends/native/meta-monitor-manager-kms.c b/src/backends/native/meta-monitor-manager-kms.c
index 2c98d31..e0bd366 100644
--- a/src/backends/native/meta-monitor-manager-kms.c
+++ b/src/backends/native/meta-monitor-manager-kms.c
@@ -137,9 +137,23 @@ static char *
 make_output_name (drmModeConnector *connector)
 {
   static const char * const connector_type_names[] = {
-    "unknown", "VGA", "DVII", "DVID", "DVID", "Composite",
-    "SVIDEO", "LVDS", "Component", "9PinDIN", "DisplayPort",
-    "HDMIA", "HDMIB", "TV", "eDP", "Virtual", "DSI"
+    "None",
+    "VGA",
+    "DVI-I",
+    "DVI-D",
+    "DVI-A",
+    "Composite",
+    "SVIDEO",
+    "LVDS",
+    "Component",
+    "DIN",
+    "DP",
+    "HDMI",
+    "HDMI-B",
+    "TV",
+    "eDP",
+    "Virtual",
+    "DSI",
   };
   const char *connector_type_name;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]