From: Takashi Iwai <tiwai@suse.de>
To: Sven Joachim <svenjoac@gmx.de>
Cc: dri-devel@lists.freedesktop.org, Adam Jackson <ajax@redhat.com>,
Rodrigo Vivi <rodrigo.vivi@intel.com>,
Dave Airlie <airlied@redhat.com>,
linux-kernel@vger.kernel.org
Subject: Re: Bogus video resolution in Linux 3.5-rc4
Date: Mon, 25 Jun 2012 21:24:01 +0200 [thread overview]
Message-ID: <s5ha9zr2o1a.wl%tiwai@suse.de> (raw)
In-Reply-To: <87obo7jnmn.fsf@turtle.gmx.de>
At Mon, 25 Jun 2012 19:40:48 +0200,
Sven Joachim wrote:
>
> Am 25.06.2012 um 17:53 schrieb Takashi Iwai:
>
> > Looking at the EDID data, the problem is likely that your monitor
> > doesn't give the proper preferred mode.
> > What does xrandr output show?
>
> ,----
> | Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 8192 x 8192
> | DVI-I-1 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 376mm x 301mm
> | 1280x1024 75.0* 60.0
> | 1024x768 75.1 75.0 70.1 60.0
> | 832x624 74.6
> | 800x600 72.2 75.0 60.3 56.2
> | 640x480 72.8 75.0 66.7 60.0 59.9
> | VGA-1 disconnected (normal left inverted right x axis y axis)
> `----
>
> I should note that the monitor is actually connected via VGA, not DVI.
> This seems to be similar to https://bugs.freedesktop.org/50830, but
> since it never caused any real problems for me, I didn't bother.
>
> > And, does the patch below help?
>
> Somewhat: at least I get 1280x1024 again, but at 60 rather than 75 Hz.
I guess it worked casually because 1280x1024@75 was the highest
resolution / rate, so it was picked up as the preferred mode...
> The xrandr command shows various bogus modes.
Can't these values be displayed on your monitor at all?
If they can be displayed, they are valid modes, not really bogus.
After all, they are values that EDID of your montor advertises as
available ranges.
Takashi
> ,----
> | Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 8192 x 8192
> | DVI-I-1 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 376mm x 301mm
> | 1280x1024 60.0*+ 75.0
> | 1680x945 60.0
> | 1400x1050 60.0
> | 1600x900 60.0
> | 1440x900 75.0 59.9
> | 1280x960 60.0
> | 1366x768 60.0
> | 1360x768 60.0
> | 1280x800 74.9 59.8
> | 1152x864 75.0
> | 1280x768 74.9 59.9
> | 1024x768 75.1 75.0 70.1 60.0
> | 1024x576 60.0
> | 832x624 74.6
> | 800x600 72.2 75.0 60.3 56.2
> | 848x480 60.0
> | 640x480 75.0 72.8 72.8 66.7 60.0 59.9
> | VGA-1 disconnected (normal left inverted right x axis y axis)
> `----
>
> Cheers,
> Sven
>
>
> > ---
> > diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
> > index 5873e48..dab8580 100644
> > --- a/drivers/gpu/drm/drm_edid.c
> > +++ b/drivers/gpu/drm/drm_edid.c
> > @@ -116,6 +116,7 @@ static struct edid_quirk {
> >
> > /* Proview AY765C */
> > { "PTS", 765, EDID_QUIRK_FIRST_DETAILED_PREFERRED },
> > + { "PTS", 793, EDID_QUIRK_FIRST_DETAILED_PREFERRED },
> >
> > /* Samsung SyncMaster 205BW. Note: irony */
> > { "SAM", 541, EDID_QUIRK_DETAILED_SYNC_PP },
> > @@ -1404,7 +1405,9 @@ do_detailed_mode(struct detailed_timing *timing, void *c)
> > if (!newmode)
> > return;
> >
> > - if (closure->preferred)
> > + if (closure->preferred ||
> > + ((closure->quirks & EDID_QUIRK_FIRST_DETAILED_PREFERRED) &&
> > + !closure->modes))
> > newmode->type |= DRM_MODE_TYPE_PREFERRED;
> >
> > drm_mode_probed_add(closure->connector, newmode);
>
next prev parent reply other threads:[~2012-06-25 19:24 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-25 14:03 Sven Joachim
2012-06-25 15:53 ` Takashi Iwai
2012-06-25 15:57 ` Takashi Iwai
2012-06-25 17:40 ` Sven Joachim
2012-06-25 19:22 ` Adam Jackson
2012-06-25 19:24 ` Takashi Iwai [this message]
2012-06-25 19:38 ` Sven Joachim
2012-06-26 7:21 ` Takashi Iwai
2012-06-30 18:46 ` Calvin Owens
2012-06-30 19:24 ` Takashi Iwai
2012-06-30 21:14 ` Sven Joachim
2012-07-02 19:46 ` Adam Jackson
2012-07-03 9:20 ` Takashi Iwai
2012-06-25 20:25 ` Andy Furniss
2012-06-25 21:03 ` Andy Furniss
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5ha9zr2o1a.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=airlied@redhat.com \
--cc=ajax@redhat.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rodrigo.vivi@intel.com \
--cc=svenjoac@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®