[Openchrome-devel] [PATCH] Hardcode panel size for the XO

Xavier Bachelot xavier at bachelot.org
Mon Feb 18 13:49:14 PST 2013


---
 src/via_lvds.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/via_lvds.c b/src/via_lvds.c
index d7d8225..e4e5cdf 100644
--- a/src/via_lvds.c
+++ b/src/via_lvds.c
@@ -1301,6 +1301,14 @@ via_lvds_detect(xf86OutputPtr output)
     VIAPtr pVia = VIAPTR(pScrn);
     vgaHWPtr hwp = VGAHWPTR(pScrn);
+    /* Hardcode panel size for the XO */
+    if (pVia->Id->String == "OLPC XO 1.5") {
+        panel->NativeWidth = 1200;
+        panel->NativeHeight = 900;
+        status = XF86OutputStatusConnected;
+        return status;
+    }
+
     if (!pVia->UseLegacyModeSwitch) {
         /* First try to get the mode from EDID. */
         if (!panel->NativeWidth || !panel->NativeHeight) {
-- 
1.8.1.2



More information about the Openchrome-devel mailing list