From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Jackson Subject: Re: Intel 965 and Custom Resolutions Date: Tue, 31 Aug 2010 11:28:40 -0400 Message-ID: <1283268520.7791.7018.camel@atropine> References: <000001cb4853$19b1cfc0$4d156f40$@dmglobal.net> <134503733.55272.1283186689422.JavaMail.root@sz0115a.westchester.pa.mail.comcast.net> <20100830171421.GH2241@yuggoth.org> <1283192363.7791.5609.camel@atropine> <20100830184722.GI2241@yuggoth.org> <1283194586.7791.5649.camel@atropine> <20100831011204.GJ2241@yuggoth.org> <1283262593.7791.6797.camel@atropine> <20100831141931.GK2241@yuggoth.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0334650061==" Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by gabe.freedesktop.org (Postfix) with ESMTP id 824629E776 for ; Tue, 31 Aug 2010 08:28:42 -0700 (PDT) In-Reply-To: <20100831141931.GK2241@yuggoth.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: The Fungi Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org --===============0334650061== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-5w/DKj76ss6VLUU0Bvys" --=-5w/DKj76ss6VLUU0Bvys Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2010-08-31 at 14:19 +0000, The Fungi wrote: > On Tue, Aug 31, 2010 at 09:49:53AM -0400, Adam Jackson wrote: > > It's possible but improbable. What kernel are you running anyway? >=20 > That system had 2.6.35-rc5 i686 with PAE at the last boot (needed > some patches for Wacom BT/HID support which got integrated in rc4 or > rc5). I'll most likely replace that with a 2.6.35 release version > next time I get around to rebooting, unless 2.6.36 is out by then. Sigh, okay. You should be able to get the complete EDID block out of /sys/class/drm/card0/*/edid, at least if you have in your kernel: commit 7466f4cc508878a8328dff1c328a2b4108888d2e Author: Adam Jackson Date: Mon Mar 29 21:43:23 2010 +0000 drm/edid: Remove arbitrary EDID extension limit =20 Signed-off-by: Adam Jackson Signed-off-by: Dave Airlie which should already be present in 2.6.35. But the X driver looks like it never sets MONITOR_EDID_COMPLETE_RAWDATA, which means the X core doesn't know that any sections beyond the first are present, so it won't ever hand back more than 128 bytes to clients. Boo. This should help: --- diff --git a/src/drmmode_display.c b/src/drmmode_display.c index 6f7e5f1..886c58f 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -731,6 +731,7 @@ drmmode_output_get_modes(xf86OutputPtr output) drmModePropertyPtr props; struct fixed_panel_lvds *p_lvds; drmModeModeInfo *mode_ptr; + xf86MonPtr mon =3D NULL; =20 /* look for an EDID property */ for (i =3D 0; i < koutput->count_props; i++) { @@ -751,14 +752,13 @@ drmmode_output_get_modes(xf86OutputPtr output) drmModeFreeProperty(props); } =20 - if (drmmode_output->edid_blob) - xf86OutputSetEDID(output, - xf86InterpretEDID(output->scrn->scrnIndex, - drmmode_output->edid_blob->data)); - else - xf86OutputSetEDID(output, - xf86InterpretEDID(output->scrn->scrnIndex, - NULL)); + if (drmmode_output->edid_blob) { + mon =3D xf86InterpretEDID(output->scrn->scrnIndex, + drmmode_output->edid_blob->data); + if (drmmode->edid_blob->length > 128) + mon->flags |=3D MONITOR_EDID_COMPLETE_RAWDATA; + } + xf86OutputSetEDID(output, mon); =20 /* modes should already be available */ for (i =3D 0; i < koutput->count_modes; i++) { --- - ajax --=-5w/DKj76ss6VLUU0Bvys Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEABECAAYFAkx9H6gACgkQW4otUKDs0NO9pACfQ5L9317EolHKjyXQMcBivLdE FxkAoIL/f95ox2Q4c6Yr74PqbQ3xEcAa =THEc -----END PGP SIGNATURE----- --=-5w/DKj76ss6VLUU0Bvys-- --===============0334650061== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx --===============0334650061==--