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

Bug#437066: xserver-xorg-video-intel: refuses 1366x768 because detects 1024x768 panel size



Hello Brice,

After debian/unstable bumped xorg version, I was not able to use the
old v1.7.2 driver any longer.

I have had to engineer a brute hack, but it seems to be in the spirit
of driver (there is one already).

The patch that gives me 1366x768 back is attached.

Cheers,
--
Sergey
diff --git a/src/i830_lvds.c b/src/i830_lvds.c
index 18e5c2b..54a4838 100644
--- a/src/i830_lvds.c
+++ b/src/i830_lvds.c
@@ -563,6 +563,17 @@ i830_lvds_init(ScrnInfoPtr pScrn)
     bios_mode = i830_bios_get_panel_mode(pScrn, &dev_priv->panel_wants_dither);
     if (bios_mode != NULL) {
 	if (dev_priv->panel_fixed_mode != NULL) {
+	    /* Fixup for a 1366x768 panel with the horizontal trimmed
+	     * down to 1024 for text mode.
+	     */
+	    if (!xf86ModesEqual(dev_priv->panel_fixed_mode, bios_mode) &&
+		bios_mode->HDisplay == 1366)
+	    {
+		xfree(dev_priv->panel_fixed_mode->name);
+		xfree(dev_priv->panel_fixed_mode);
+		dev_priv->panel_fixed_mode = xf86DuplicateMode(bios_mode);
+	    }
+
 	    /* Fixup for a 1280x768 panel with the horizontal trimmed
 	     * down to 1024 for text mode.
 	     */

Reply to: