[gnome-desktop/gnome-3-6] gnome-rr: Fall back to XFree86_DDC_EDID1_RAWDATA if the other EDID keys are not set



commit 09f2c5e91d1768deaf75eb171cd449876263edf5
Author: Richard Hughes <richard hughsie com>
Date:   Fri Nov 9 17:38:26 2012 +0000

    gnome-rr: Fall back to XFree86_DDC_EDID1_RAWDATA if the other EDID keys are not set
    
    This is what the KDE module does too...

 libgnome-desktop/gnome-rr.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/libgnome-desktop/gnome-rr.c b/libgnome-desktop/gnome-rr.c
index 8ac08ee..73490d0 100644
--- a/libgnome-desktop/gnome-rr.c
+++ b/libgnome-desktop/gnome-rr.c
@@ -1463,6 +1463,13 @@ read_edid_data (GnomeRROutput *output, gsize *len)
 			       output->id, edid_atom, len);
     }
 
+    if (!result)
+    {
+	edid_atom = XInternAtom (DISPLAY (output), "XFree86_DDC_EDID1_RAWDATA", FALSE);
+	result = get_property (DISPLAY (output),
+			       output->id, edid_atom, len);
+    }
+
     if (result)
     {
 	if (*len % 128 == 0)



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