How can I exclude the X default mode in RandR ?
alexdeucher at gmail.com
Tue Mar 24 06:47:20 PDT 2009
On 3/24/09, GordonYuan at viatech.com.cn <GordonYuan at viatech.com.cn> wrote:
> Because HDMI doesn't support GTF timing, the X default modes are all excluded on XServer 1.6.
> I still have no idea how to filter them on XServer 1.5.x. I can filter certain mode, but I can't filter all the X default modes.
In your mode_valid() function, compare the mode passed in to the modes
in the edid. if it doesn't match, return MODE_BAD.
> Best wishes,
> -----Original Message-----
> From: Alex Deucher [mailto:alexdeucher at gmail.com]
> Sent: 2009年3月23日 21:54
> To: Gordon Yuan
> Cc: xorg at freedesktop.org
> Subject: Re: How can I exclude the X default mode in RandR ?
> On 3/23/09, GordonYuan at viatech.com.cn <GordonYuan at viatech.com.cn> wrote:
> > Dear all,
> > In RandR, X will include the default mode (xf86DefaultModes) in the mode
> > list. But it’s not useful for some devices (e.g. TV or HDMI). How can I
> > delete these modes from the mode list? I don’t want to output these modes if
> > I press the command “xrandr -q”.
> > It’s X behavior. It seems that driver can’t change the logic.
> > Thanks!
> xserver 1.6 and newer only add the default modes if the edid has the
> continuous frequency bit set. If you don't want to add certain modes,
> you can filter what gets added in your driver's mode_valid() function.
More information about the xorg