[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    Re: How can I exclude the X default mode in RandR ?
From:       Alex Deucher <alexdeucher () gmail ! com>
Date:       2009-03-25 4:28:57
Message-ID: a728f9f90903242128u5b62a1d9y59602c7b4e4f88e7 () mail ! gmail ! com
[Download RAW message or body]

On 3/24/09, GordonYuan@viatech.com.cn <GordonYuan@viatech.com.cn> wrote:
> Alex,
> Thanks for your kind help.
> But it won't support the user-define mode lines, because they are also excluded.
> For example,
> Section "Monitor"
> ....
> Modeline "1024x768_60.00"   .......
> EndSection
> The mode "1024x768_60.00" will be filtered. It may be a limitation. We can't have a \
> method to make the best of both worlds. 

I think user defined modes should have the M_T_USERDEF flag set.

Alex


> Best wishes,
> Gordon
> 
> -----Original Message-----
> From: xorg-bounces@lists.freedesktop.org \
>                 [mailto:xorg-bounces@lists.freedesktop.org] On Behalf Of Alex \
>                 Deucher
> Sent: 2009Äê3Ô 24ÈÕ 21:47
> To: Gordon Yuan
> Cc: xorg@freedesktop.org
> Subject: Re: How can I exclude the X default mode in RandR ?
> 
> On 3/24/09, GordonYuan@viatech.com.cn <GordonYuan@viatech.com.cn> wrote:
> > Alex,
> > Thanks!
> > 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.
> 
> Alex
> 
> > Best wishes,
> > Gordon
> > 
> > 
> > -----Original Message-----
> > From: Alex Deucher [mailto:alexdeucher@gmail.com]
> > Sent: 2009Äê3Ô 23ÈÕ 21:54
> > To: Gordon Yuan
> > Cc: xorg@freedesktop.org
> > Subject: Re: How can I exclude the X default mode in RandR ?
> > 
> > On 3/23/09, GordonYuan@viatech.com.cn <GordonYuan@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.
> > 
> > Alex
> > 
> > 
> _______________________________________________
> xorg mailing list
> xorg@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xorg
> 
_______________________________________________
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic