Set property in RandR

Dave Airlie airlied at gmail.com
Thu Mar 12 03:29:32 PDT 2009


On Thu, Mar 12, 2009 at 7:37 PM,  <GordonYuan at viatech.com.cn> wrote:
> Dear Dave,
>    I know what you said. But I have another question now.
>    If the property depends on other factor, for example, the TV output standard is related to mode size, if mode is 640x480, the supported values of certain property are NTSC, PAL, 720P and 1080I etc; but if mode is 720x480, the supported are NTSC, 720P and 1080I etc. PAL can't be supported any more.
>    How can supported property value change dynamically according to mode? I think using RRConfigureOutputProperty() is a little difficult.

At least on hw I've worked on we have a TV scaler so the mode is the
prescalar size, and the NTSC/PAL options decides the final output
mode.

If you can only expose certain modes you might have to limit the modes
based on the current option somehow.

Dave.

>    Please give me some advices, thanks!
> Best wishes,
> Gordon
>
> -----Original Message-----
> From: xorg-bounces at lists.freedesktop.org [mailto:xorg-bounces at lists.freedesktop.org] On Behalf Of Dave Airlie
> Sent: 2009年3月12日 17:09
> To: Gordon Yuan
> Cc: xorg at lists.freedesktop.org
> Subject: Re: Set property in RandR
>
> 2009/3/12  <GordonYuan at viatech.com.cn>:
>> Dear Matthias:
>>    You mean that the driver should set the output mode if necessary when the property changes. Maybe we can call the output.mode_set() in the function output.set_property().
>>    Thanks for your kind help!
>> Best wishes,
>> Gordon
>
> Its driver specific, so if say a TMDS coherent option is changed then
> the mode needs to be reset,
>
> Or if you have TV or LVDS scaling options you might also, need to change it.
>
> However you might have some values that don't require it, like backlight control
>
> Dave
> _______________________________________________
> xorg mailing list
> xorg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xorg
>
>



More information about the xorg mailing list