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

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

  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
    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

  4. #4
    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

  5. #5
    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

  6. #6
    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:26 AM. Reason: wrong forum

  7. #7
    Join Date
    Apr 2006
    Location
    Israel
    Beans
    71
    Distro
    Kubuntu 14.10 Utopic Unicorn

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

    didn't work for me on radeon IGP340M (~radeon 7000):
    followed the how-to exactly.
    the lcd is working at 640x480 and tv out is not working.

    reverted back to original foss ati driver

  8. #8
    Join Date
    Aug 2006
    Beans
    Hidden!

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

    Hi,

    To backup the xorg driver, I believe something like

    PHP Code:
    sudo cp /usr/lib/xorg/modules/drivers/ati_drv.so /usr/lib/xorg/modules/drivers/ati_drv.so.bku 
    could be used? Have I got the right file?

    -s

  9. #9
    Join Date
    Aug 2006
    Beans
    1

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

    I have a Radeon Mobility M7 and when I do it my monitor gets stuck at 640x480 and TV out doesn't work. Any suggestions?
    Last edited by oBuntu; August 2nd, 2006 at 09:30 PM.

  10. #10
    Join Date
    Jul 2006
    Beans
    4

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

    Quote Originally Posted by Turtle.net View Post
    When I compile the driver with the instruction make I have an error ... and I do not understand why. Any idea ?
    Code:
    /usr/include/GL/glxint.h:28:19: error: GL/gl.h: No such file or directory
    Looks like you are missing the gl.h header file. Did you apt-get all the libraries in the "prep work" section?

    More specifically, to install gl.h:

    Code:
    sudo apt-get install mesa-common-dev

Page 1 of 11 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
  •