TV Out on radeon 7500

nikosapi nikosapi at gmail.com
Sat Oct 13 19:35:11 PDT 2007


On October 13, 2007 19:51:14 you wrote:
> On 10/13/07, nikosapi <nikosapi at gmail.com> wrote:
> > On October 13, 2007 18:53:45 you wrote:
> > > On 10/13/07, nikosapi <nikosapi at gmail.com> wrote:
> > > > Hello,
> > > >
> > > > I just got an old pci radeon 7500 card for its TV output capabilities
> > > > (I'm using two of the outputs on my nvidia card already).
> > > >
> > > > I've upgraded to Ubuntu Gutsy and I've also gotten the latest radeon
> > > > drivers and xrandr from git. I got information on how to do this
> > > > from:
> > > > http://mailman.linux-thinkpad.org/pipermail/linux-thinkpad/2007-Augus
> > > >t/03 9878.html
> > > >
> > > > Using xrandr I am able to issue the following commands which makes
> > > > the blue screen on my tv very jittery (I assume it's because the card
> > > > is feeding the TV a bad signal):
> > > >
> > > > xrandr --addmode S-video 800x600
> > > > xrandr --output S-video --mode 800x600
> > > >
> > > > Then if I try to set the output to ntsc (xrandr --output S-video
> > > > --set tv_standard ntsc) I get the following error:
> > > >
> > > > X Error of failed request:  BadValue (integer parameter out of range
> > > > for operation)
> > > >   Major opcode of failed request:  159 (RANDR)
> > > >   Minor opcode of failed request:  13 ()
> > > >   Value in failed request:  0x1b9
> > > >   Serial number of failed request:  20
> > > >   Current serial number in output stream:  21
> > > >
> > > > Although if I do: xrandr --output S-video --set tv_standard pal I get
> > > > no error message. Does this mean that it doesn't support ntsc? The
> > > > only other 'tv_standard' that I found that doesn't give me an error
> > > > is 'default' which produces an even more violent jitter on the
> > > > screen.
> > >
> > > According to your bios, you chip only supports PAL:
> > > (II) RADEON(1): Default TV standard: PAL
> > > (II) RADEON(1): TV standards supported by chip: PAL
> > >
> > > Right now I only add the standards that the bios lists.  It's trivial
> > > to add them all though.  they should all work in theory, but YMMV.
> > >
> > > Alex
> >
> > Hello Alex,
> >
> > Is this a problem with the card itself? (Should the bios support ntsc if
> > the box says it should?)
>
> It'll probably work fine.
>
> > If it isn't, is there a way to force the card into ntsc mode?
>
> You can edit the code to add any standards you want (radeon_output.c).
>  I should probably just ignore the bios and add all the tv standards
> (or at least PAL and NTSC).  Maybe this week at some point.
>
> Alex

It worked! I found the code that checks to see if the ntsc mode is supported 
in the card's bios and I commented some of it out. I attached a patch just in 
case someone else needs it. 

Another thing I noticed was that without another monitor connected, I couldn't 
just activate the tv output with xrandr. The fix for this was to simply 
enable the CRT-0 output (before or after the tv output).
I have a little script which takes care of all of this for me:

#!/bin/bash -x

DISPLAY=:0.1

xrandr --addmode VGA-0 800x600
xrandr --output VGA-0 --mode 800x600

xrandr --addmode S-video 800x600
xrandr --output S-video --mode 800x600
xrandr --output S-video --set tv_standard ntsc
xrandr --output S-video --off
xrandr --output S-video --mode 800x600


Thank you very much for your help,

nick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: radeon_output.c-ntsc-hack.patch
Type: text/x-diff
Size: 722 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20071013/a86ec7ac/attachment.patch>


More information about the xorg mailing list