Page 1 of 4 123 ... LastLast
Results 1 to 10 of 110

Thread: HOWTO: TV-out for legacy ATI cards using GATOS

Hybrid View

  1. #1
    Join Date
    Jul 2006
    Beans
    4

    Lightbulb HOWTO: TV-out for legacy ATI cards using GATOS

    Purpose:

    Enable simple TV-out functionality for legacy ATI Radeon cards with Rage Theater 100 (RT 100) or Embedded Rage Theater (ERT).


    Scope:

    The driver used has successfully enabled TV-out for the following cards (other legacy cards may also work):

    * Radeon 7200 / European model
    * Radeon 9000
    * Radeon 9100
    * Radeon 9200SE
    * Radeon 7000
    * Radeon QD
    * Radeon Mobility M7

    I used a PowerColor Radeon 7000 based card with Ubuntu 6.06 Dapper Drake to produce this tutorial.


    Means:

    We will compile and install a GATOS patched ATI driver for X.org, the X Window System used by Ubuntu.


    Skill Level:

    To complete this tutorial you should be comfortable using the command line.


    Conventions Used:

    Commands meant to be run from Terminal or Konsole will be shown inside of boxes labeled "Code". When the command is preceded by "sudo" you may be required to enter your administrator password.

    This HOWTO also contains some sections marked "STUB" where I request help in fleshing out the solution.


    Prep Work:

    First, install some basic compilation tools, as well as various required X libraries.

    Code:
    sudo apt-get install build-essential
    sudo apt-get install xserver-xorg-dev
    sudo apt-get install x11proto-xinerama-dev
    sudo apt-get install x11proto-xf86misc-dev
    sudo apt-get install x11proto-gl-dev
    sudo apt-get install mesa-common-dev

    Fetch Driver and Patch:

    You may want to create a directory in which to store the temporary files we'll be using.

    Code:
    cd ~
    mkdir atidrivers
    cd atidrivers
    You can now download driver and the patch.

    Code:
    wget http://xorg.freedesktop.org/releases/individual/driver/xf86-video-ati-6.5.8.0.tar.bz2
    wget http://megahurts.dk/rune/stuff/xorg7-6.5.8.0-tv_output.patch.gz
    The latest patches can be found here.


    Decompress the Driver Source and Apply the Patch:

    Code:
    tar xjvf xf86-video-ati-6.5.8.0.tar.bz2
    gunzip -c xorg7-6.5.8.0-tv_output.patch.gz | patch -p1 -d xf86-video-ati-6.5.8.0

    Configure and Compile the Driver:

    Code:
    cd xf86-video-ati-6.5.8.0
    export XORG_PREFIX="/usr"
    export XORGCONFIG="--prefix=$XORGPREFIX --sysconfdir=/etc --localstatedir=/var"
    ./configure $XORG_CONFIG --with-xorg-module-dir=/usr/lib/xorg/modules
    make
    Back-up Current X.org Driver

    STUB: The user should probably backup their current X.org driver. How is this done?


    Install the new Driver:

    Code:
    sudo make install
    If you reboot, X.Org will now use the new video drivers. However, TV-out will only be enabled when your screen resolution is set to 800x600.

    For some reason, when I rebooted I was unable to change my resolution using the Screen Resolution tool found under the System->Preferences menu. Also, my ATI card defaults to PAL output, but my TV requires NTSC. Further tweaking was therefore required.


    Tweaking the X.Org Configurations


    The X.Org configurations are stored in /etc/X11/xorg.conf which can be edited with your favourite text-editor. We'll backup the file, and edit with gedit.

    Code:
    sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.old
    sudo gedit /etc/X11/xorg.conf
    The relevant sections of my xorg.conf:

    Code:
    Section "Device"
        Identifier  	"ATI Technologies, Inc. Radeon RV100 QY [Radeon 7000/VE]"
        Driver      	"ati"
        BusID		"PCI:1:0:0"
        Option		"TVOutput" "NTSC"
    EndSection
    TVOutput can be set to one of the follow: NTSC, NTSC-J, PAL, PAL-CN, PAL-M, PAL-N, PAL-60

    Code:
    Section "Monitor"
        Identifier		"SyncMaster"
        HorizSync		30 - 50
        VertRefresh		60 - 60
        Option		"DPMS"
    EndSection
    I set the Horizontal and Vertical refresh rates to match that of a CRT TV. This probably wasn't necessary, but since I don't have an actual monitor attached to this computer it doesn't hurt.

    Code:
    Section "Screen"
        Identifier    "Default Screen"
        Device        "ATI Technologies, Inc. Radeon RV100 QY [Radeon 7000/VE]"
        Monitor        "SyncMaster"
        DefaultDepth    24
        SubSection "Display"
            Depth        24
            Modes        "800x600"
        EndSubSection
    EndSection
    Again, since I don't have a monitor attached to this computer I'm restricting the output to 800x600. That way, TV-Out will always be enabled. Note the 'Depth' must match the 'DefaultDepth'.


    End Notes

    After a reboot (or an Xorg restart) your TV-Out should be enabled.

    On my first try the TV output was only in black/white. A new S-Video to Composition cable solved this problem.

    If you have both a monitor and TV-Out you may run into overlay issues. For example, when playing a DVD, the video may only show on your monitor, with a black box showing on the TV-Out.

    This is solved by adding the following to the "Device" section of xorg.conf, setting the TV-Out as the primary monitor:

    Code:
    Option "MonitorLayout"        "STV, CRT"
    On the patch site, the following "MonitorLayout" option is suggested, but this didn't work for me:

    Code:
    Option "MonitorLayout"        "AUTO, NONE"
    Suggestions for improvements to this HOWTO are welcome.

  2. #2
    Join Date
    Jul 2006
    Beans
    Hidden!

    Re: HOWTO: TV-out for legacy ATI cards using GATOS

    I followed all of these instructions. Thank you so very much for posting this up! Unfortuately I'm too noob to get it working well. When I start up my computer the loading screen and the shut down screen are both displayed on my television, but it's the wrong refresh rate so it's very unclear. When I'm actually using Ubuntu the desktop isn't cloned and I don't know how to switch it over. Any suggestions?

  3. #3
    Join Date
    Jul 2006
    Beans
    4

    Re: HOWTO: TV-out for legacy ATI cards using GATOS

    Quote Originally Posted by m085 View Post
    I followed all of these instructions. Thank you so very much for posting this up! Unfortuately I'm too noob to get it working well. When I start up my computer the loading screen and the shut down screen are both displayed on my television, but it's the wrong refresh rate so it's very unclear. When I'm actually using Ubuntu the desktop isn't cloned and I don't know how to switch it over. Any suggestions?
    During the loading and shutdown screens your video card is probably displaying in the wrong mode. For example: PAL instead of NTSC.

    This is okay, as we set the correct mode in the xorg.conf file, and this will "kick-in" once you log in.

    The real problem here is that your Xorg isn't displaying at 800x600, which is required for TV-out to be enabled. Looks like damagedspline and oBuntu are having this same problem.

    Please note that in the my tutorial I set the horizontal sync, vertical refresh, and resolution specifically for a CRT TV.

    If you have a monitor attached, you would be better off setting the HorizSync & VertRefresh to those listed in your monitor manual. With those values set correctly you should be able to switch to 800x600 using the Screen Resolution tool found under the System->Preferences menu.

    If that doesn't help, you might find this HowTo useful: How to change resolution/refresh rate in Xorg

  4. #4
    Join Date
    Jul 2006
    Location
    Ecuador
    Beans
    32
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: TV-out for legacy ATI cards using GATOS

    Hi I run Gutsy 2.6.20-16-generic with a Rage Mobility P/M AGP 2x (rev 64) [1002:4c4d] , X Window System Version 7.2.0 , downloaded the suggested xf86-video-ati-6.5.8.0.tar.bz2 and get to compile, but after a while it stops with:

    [...]
    gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/xorg -I/usr/include/drm -I/usr/include/X11/dri -g -O2 -MT r128_accel.lo -MD -MP -MF .deps/r128_accel.Tpo -c r128_accel.c -fPIC -DPIC -o .libs/r128_accel.o
    r128_accel.c: In function 'R128CCEWaitForIdle':
    r128_accel.c:247: error: 'errno' undeclared (first use in this function)
    r128_accel.c:247: error: (Each undeclared identifier is reported only once
    r128_accel.c:247: error: for each function it appears in.)
    r128_accel.c:247: error: 'EBUSY' undeclared (first use in this function)
    r128_accel.c: In function 'R128CCEStop':
    r128_accel.c:286: error: 'errno' undeclared (first use in this function)
    r128_accel.c:286: error: 'EBUSY' undeclared (first use in this function)
    r128_accel.c: In function 'R128CCEGetBuffer':
    r128_accel.c:1573: error: 'EAGAIN' undeclared (first use in this function)
    make[2]: *** [r128_accel.lo] Error 1
    make[2]: Leaving directory `/home/arno/atidrivers/xf86-video-ati-6.5.8.0/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/arno/atidrivers/xf86-video-ati-6.5.8.0'
    make: *** [all] Error 2

    any suggestions?
    best
    Arno

  5. #5
    Join Date
    Apr 2006
    Beans
    50
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOWTO: TV-out for legacy ATI cards using GATOS

    you should try this howto: http://wiki.cchtml.com/index.php/Tvout

    this way you will have a more recent driver (6.6.3)

  6. #6
    Join Date
    Dec 2007
    Beans
    24
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO: TV-out for legacy ATI cards using GATOS

    Hi, I'm running Gutsy 7.10 with the ATI graphic card Radeon X300, with the S-video connection to the TV. I followed the instructions mentioned above and everything work out nicely. I saw the picture on the TV, but it is not very clear (maybe because of the refresh rates... I still have to find out). What's bothers me more is that the picture on the TV is black and white. I read on the start of the thread that this is because of the S-video cabel...but throughout the thread I figured out that some of them are using S-video cabel, but no one had reported that the picture is b&w.

    Does anyone experienced that? Do someone of you have an idea how to solve this?
    I'd be really happy for your advice

    Cheers, Angels
    Last edited by angels; January 14th, 2008 at 10:46 PM.

  7. #7
    Join Date
    Jul 2006
    Location
    Ecuador
    Beans
    32
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: TV-out for legacy ATI cards using GATOS

    Hi Thanks, now the driver compiles. However, I get the message "option TVout not used" or something as a (WW) in Xorg.log... Suggestions?

  8. #8
    Join Date
    Apr 2005
    Location
    Canada
    Beans
    245
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: HOWTO: TV-out for legacy ATI cards using GATOS

    When I compile the driver with the instruction make I have an error ... and I do not understand why. Any idea ?
    Code:
    ~/atidrivers/xf86-video-ati-6.5.8.0$ make
    make  all-recursive
    make[1]: entrant dans le répertoire « /home/cassini/atidrivers/xf86-video-ati-6.5.8.0 »
    Making all in src
    make[2]: entrant dans le répertoire « /home/cassini/atidrivers/xf86-video-ati-6.5.8.0/src »
    if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..    -DXFree86Server -DIN_MODULE -DXFree86Module -DXFree86LOADER -I/usr/include/xorg   -I/usr/include/drm -I/usr/include/X11/dri   -g -O2 -MT ati.lo -MD -MP -MF ".deps/ati.Tpo" \
              -c -o ati.lo `test -f 'ati.c' || echo './'`ati.c; \
            then mv -f ".deps/ati.Tpo" ".deps/ati.Plo"; \
            else rm -f ".deps/ati.Tpo"; exit 1; \
            fi
    mkdir .libs
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -DXFree86Server -DIN_MODULE -DXFree86Module -DXFree86LOADER -I/usr/include/xorg -I/usr/include/drm -I/usr/include/X11/dri -g -O2 -MT ati.lo -MD -MP -MF .deps/ati.Tpo -c ati.c  -fPIC -DPIC -o .libs/ati.o
    if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..    -DXFree86Server -DIN_MODULE -DXFree86Module -DXFree86LOADER -I/usr/include/xorg   -I/usr/include/drm -I/usr/include/X11/dri   -g -O2 -MT atiadapter.lo -MD -MP -MF ".deps/atiadapter.Tpo" \
              -c -o atiadapter.lo `test -f 'atiadapter.c' || echo './'`atiadapter.c; \
            then mv -f ".deps/atiadapter.Tpo" ".deps/atiadapter.Plo"; \
            else rm -f ".deps/atiadapter.Tpo"; exit 1; \
            fi
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -DXFree86Server -DIN_MODULE -DXFree86Module -DXFree86LOADER -I/usr/include/xorg -I/usr/include/drm -I/usr/include/X11/dri -g -O2 -MT atiadapter.lo -MD -MP -MF .deps/atiadapter.Tpo -c atiadapter.c  -fPIC -DPIC -o .libs/atiadapter.o
    if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..    -DXFree86Server -DIN_MODULE -DXFree86Module -DXFree86LOADER -I/usr/include/xorg   -I/usr/include/drm -I/usr/include/X11/dri   -g -O2 -MT atibus.lo -MD -MP -MF ".deps/atibus.Tpo" \
              -c -o atibus.lo `test -f 'atibus.c' || echo './'`atibus.c; \
            then mv -f ".deps/atibus.Tpo" ".deps/atibus.Plo"; \
            else rm -f ".deps/atibus.Tpo"; exit 1; \
            fi
     gcc -DHAVE_CONFIG_H -I. -I. -I.. -DXFree86Server -DIN_MODULE -DXFree86Module -DXFree86LOADER -I/usr/include/xorg -I/usr/include/drm -I/usr/include/X11/dri -g -O2 -MT atibus.lo -MD -MP -MF .deps/atibus.Tpo -c atibus.c  -fPIC -DPIC -o .libs/atibus.o
    In file included from atidripriv.h:40,
                     from atistruct.h:41,
                     from atibus.c:33:
    /usr/include/GL/glxint.h:28:19: error: GL/gl.h: No such file or directory
    In file included from atidripriv.h:40,
                     from atistruct.h:41,
                     from atibus.c:33:
    /usr/include/GL/glxint.h:95: error: syntax error before 'GLboolean'
    /usr/include/GL/glxint.h:97: error: syntax error before 'doubleBufferMode'
    /usr/include/GL/glxint.h:98: error: syntax error before 'stereoMode'
    /usr/include/GL/glxint.h:99: error: syntax error before 'haveAccumBuffer'
    /usr/include/GL/glxint.h:100: error: syntax error before 'haveDepthBuffer'
    /usr/include/GL/glxint.h:101: error: syntax error before 'haveStencilBuffer'
    /usr/include/GL/glxint.h:104: error: syntax error before 'accumRedBits'
    /usr/include/GL/glxint.h:105: error: syntax error before 'depthBits'
    /usr/include/GL/glxint.h:106: error: syntax error before 'stencilBits'
    /usr/include/GL/glxint.h:107: error: syntax error before 'indexBits'
    /usr/include/GL/glxint.h:108: error: syntax error before 'redBits'
    /usr/include/GL/glxint.h:109: error: syntax error before 'redMask'
    /usr/include/GL/glxint.h:111: error: syntax error before 'multiSampleSize'
    /usr/include/GL/glxint.h:113: error: syntax error before 'nMultiSampleBuffers'
    /usr/include/GL/glxint.h:114: error: syntax error before 'maxAuxBuffers'
    /usr/include/GL/glxint.h:117: error: syntax error before 'level'
    /usr/include/GL/glxint.h:120: error: syntax error before 'extendedRange'
    /usr/include/GL/glxint.h:121: error: syntax error before 'minRed'
    /usr/include/GL/glxint.h:122: error: syntax error before 'minGreen'
    /usr/include/GL/glxint.h:123: error: syntax error before 'minBlue'
    /usr/include/GL/glxint.h:124: error: syntax error before 'minAlpha'
    /usr/include/GL/glxint.h:125: error: syntax error before '}' token
    make[2]: *** [atibus.lo] Erreur 1
    make[2]: quittant le répertoire « /home/cassini/atidrivers/xf86-video-ati-6.5.8.0/src »
    make[1]: *** [all-recursive] Erreur 1
    make[1]: quittant le répertoire « /home/cassini/atidrivers/xf86-video-ati-6.5.8.0 »
    make: *** [all] Erreur 2

  9. #9
    Join Date
    Jun 2006
    Beans
    61

    Re: HOWTO: TV-out for legacy ATI cards using GATOS

    wrong forum
    Last edited by lokimon; July 29th, 2006 at 08:25 AM. Reason: wrong forum

  10. #10
    Join Date
    Jun 2006
    Beans
    61

    Re: HOWTO: TV-out for legacy ATI cards using GATOS

    wrong forum
    Last edited by lokimon; July 29th, 2006 at 08:25 AM. Reason: wrong forum

Page 1 of 4 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •