radeon PAL tv-out fixed

As I suspected, it was something small and stupid: a bad mask and shift in the tv pll register.  Enjoy!

11 Responses to “radeon PAL tv-out fixed”

  1. Eric Says:

    Is it fixed on all radeon chipset ?
    I’ve got a radeon 7500 (rv200/M7)

  2. Torgeir Says:

    Now we just need some field parity support in Xv.. ;)

  3. olo Says:

    Did organization of GIT change?

    On Ubuntu Gutsy, I’ve checked out the sources using the following sequence:

    git-clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati
    cd xf86-video-ati
    git checkout origin/randr-1.2 (I have git 1.5)

    Then built as advised on the Thinkpad mailing list:
    ./autogen.sh –prefix=/usr && make && sudo make install

    It has build and installed successfully:


    /usr/bin/install -c .libs/ati_drv.so /usr/lib/xorg/modules/drivers/ati_drv.so
    /usr/bin/install -c .libs/ati_drv.lai /usr/lib/xorg/modules/drivers/ati_drv.la

    /usr/bin/install -c .libs/radeon_drv.so /usr/lib/xorg/modules/drivers/radeon_drv.so
    /usr/bin/install -c .libs/radeon_drv.lai /usr/lib/xorg/modules/drivers/radeon_drv.la

    Still TV out doesn’t work and it reports an old driver version on Xorg.0.log (the pathname of the module matches the one in install log):

    (II) Loading /usr/lib/xorg/modules/drivers//ati_drv.so
    (II) Module ati: vendor=”X.Org Foundation”
    compiled for 1.3.0, module version = 6.6.192
    Module class: X.Org Video Driver
    ABI class: X.Org Video Driver, version 1.2

    (II) Loading /usr/lib/xorg/modules/drivers//radeon_drv.so
    (II) Module radeon: vendor=”X.Org Foundation”
    compiled for 1.3.0, module version = 4.3.0
    Module class: X.Org Video Driver
    ABI class: X.Org Video Driver, version 1.2

  4. olo Says:

    To be more precise, here’s the version that I can see in the config.h header from GIT:

    /* Define to the version of this package. */
    #define PACKAGE_VERSION “6.6.192″

    /* Major version of this package */
    #define PACKAGE_VERSION_MAJOR 6

    /* Minor version of this package */
    #define PACKAGE_VERSION_MINOR 6

    /* Patch version of this package */
    #define PACKAGE_VERSION_PATCHLEVEL 192

    Am I on the wrong branch or something?

  5. olo Says:

    OK, sorry for spam.

    I’ve noticed one of the earlier posts that recommends testing of GIT master. I’ve omitted checking out the randr-1.2 branch and I have driver version 6.7.197 now.

    PAL TV Out works fine now :))

    But there’s a problem with Xv. The overlay displays only on the main screen, the CRT monitor. The TV set displays a dark blue rectangle instead.

    Previously Xv overlay has worked simultaneously on both displays, on Ubuntu Feisty, where I were using Federico Ulivi’s patched version of the xf86-video-ati driver (http://wiki.cchtml.com/index.php/Tvout).

    Is it possible to make it work the same way using this new driver?

    Or as a substitute, is it possible to direct Xv overlay to the TV display instead of the main one?

  6. olo Says:

    BTW, I’ve written an article with build instructions for xf86-video-ati from GIT on the X.org Wiki:

    http://wiki.x.org/wiki/RadeonTVbuildHowto

    I think it would be a good idea if you linked to it from your blog’s “about” page, which currently has some default after-WordPress-installation placeholder text.

  7. agd5f Says:

    Don’t use the randr-1.2 branch. That branch was long ago merged to master. Right now everything you need is in ati git master. The 6.6.19x series is also way out of date. You want the 6.7.19x series or ati git master (only git master has the PAL fix right now).

    Regarding the overlay, it can only be sourced to one crtc at a time. For dualhead modes the overlay will follow the video window, for clone modes you have to select which crtc the overlay is sourced to. Use an application like xvattr to select the crtc:
    xvattr -a XV_CRTC -v 1
    Possible values for XV_CRTC are -1 (auto), 0 (crtc 0), and 1 (crtc 1).
    The old gatos code worked on both outputs because it used crtc 0 for both VGA and tv-out. There are a lot of limitations in doing that and it only works for certain ouputs, so it’s not currently supported at the moment.

  8. Erik Andrén Says:

    I verified this today using a radeon 7500 mobility and it works indeed, I’ve never such a splendid picture from this machine. Many thanks!

  9. olo Says:

    Yes, it works now with 6.7.197. The xvattr trick did the job, too.

    Big thanks and kudos to you! At last I can use my TV output without restarting the X server and using a custom xorg.conf and a manually patched driver!

    Regarding the Xv on both displays, since it is known to work in some configurations, maybe it would be possible to enable it using a whitelist?
    It certainly has worked on my hardware, which is a Radeon 9000 Pro.

    In case you find it useful, here you can find my dmesg, Xorg.0.log and verbose output from lspci:

    http://olo.org.pl/files/xf86-video-ati/

    How about linking to http://wiki.x.org/wiki/RadeonTVbuildHowto from http://www.botchco.com/agd5f/?page_id=2 ?
    There’s nothing on your blog that would provide a step-by-step build HOWTO, and people might need info that this howto provides.

    You’re quite a famous person now so lots of people may come here to this blog first (as a first thought after upgrading to Ubuntu Gutsy I’ve searched for “Alex Deucher ATI TV out” as a first thought after upgrading to Ubuntu Gutsy)… A simple link to build HOWTO would help a lot, I think.

  10. olo Says:

    Hi Alex, and Happy New Year!

    There’s a mistake in the “about” page:

    ./autogen.sh –prefix=/usr

    It should read:

    ./autogen.sh –prefix=/usr

  11. radeon ati drivers Says:

    radeon ati drivers…