Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 127642 - [patch] enable tv-out/tvoutput for modular xorg >7.x (x11-drivers/xf86-video-ati)
Summary: [patch] enable tv-out/tvoutput for modular xorg >7.x (x11-drivers/xf86-video-...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL: http://www.ece.auckland.ac.nz/~wsun01...
Whiteboard: waiting for the upstream
Keywords: Goal
: 71452 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-03-26 08:43 UTC by Anton Bolshakov
Modified: 2007-09-05 08:05 UTC (History)
11 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for xorg 7 modular v 6.5.7.3 to enable tvoutput in ATI driver (xf86-video-ati-6.5.7.3-tv_output.patch,152.22 KB, patch)
2006-03-26 08:49 UTC, Anton Bolshakov
Details | Diff
patch for xorg 7 modular v 6.6.0 to enable tvoutput in ATI driver (xf86-video-ati-6.6.0-tv_output.patch,133.65 KB, patch)
2006-04-18 04:53 UTC, Anton Bolshakov
Details | Diff
patch for xorg 7 modular v 6.6.1 to enable tvoutput in ATI driver (xf86-video-ati-6.6.1-tvout.patch,133.61 KB, patch)
2006-06-24 02:16 UTC, Anton Bolshakov
Details | Diff
patch for xorg 7 modular v 6.6.1 to enable tvoutput in ATI driver (xf86-video-ati-6.6.1-tvout.patch,133.61 KB, patch)
2006-06-24 02:16 UTC, Anton Bolshakov
Details | Diff
patch for xorg 7 modular v 6.5.8.0 to enable tvoutput in ATI driver (xf86-video-ati-6.5.8.0-tv_output.patch,149.19 KB, patch)
2006-09-03 16:19 UTC, Mounir Lamouri (volkmar) (RETIRED)
Details | Diff
Fixed xf86-video-ati-6.6.2 patch for archive. (xf86-video-ati-6.6.2-tv_output.patch,133.38 KB, patch)
2006-09-05 15:40 UTC, Olliver Schinagl
Details | Diff
TV Out patch against xf86-video-ati 6.6.2 (xf86-video-ati-6.6.2-tv_output.patch,132.59 KB, patch)
2006-09-05 15:40 UTC, Olliver Schinagl
Details | Diff
Radeon TV-Out patch against 6.6.2 (xf86-video-ati-6.6.2-tv_output.patch,132.81 KB, patch)
2006-09-05 15:57 UTC, Olliver Schinagl
Details | Diff
radeon tv-out patch against 6.6.2 (updated Makefile.in) (xf86-video-ati-6.6.2-tv_output.patch,144.85 KB, patch)
2006-09-08 03:46 UTC, Steven Leung
Details | Diff
this is the 6.6.2 patch from Steven Leung. (xf86-video-ati-6.6.3-tvout.patch,144.85 KB, patch)
2007-04-03 14:41 UTC, Anton Bolshakov
Details | Diff
radeon tv-out patch against 6.6.3 by Steven Leung (xf86-video-ati-6.6.3-tvout.patch,144.85 KB, patch)
2007-04-03 14:46 UTC, Anton Bolshakov
Details | Diff
radeon tv-out patch against rc 6.6.191 based on 6.6.3 (xf86-video-ati-6.6.191-tvout.patch,150.65 KB, patch)
2007-04-05 16:09 UTC, Anton Bolshakov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Bolshakov 2006-03-26 08:43:56 UTC
the patch based on 
http://megahurts.dk/rune/tv_output.html
http://shell.world-net.co.nz/~knightw/tvout/

I just hacked it quite a bit to compile under gentoo's xf86-video-ati-6.5.7.3

Be wormed that it might be some legality to use it since the patch and xorg have different licences.
Comment 1 Anton Bolshakov 2006-03-26 08:49:13 UTC
Created attachment 83174 [details, diff]
patch for xorg 7 modular  v 6.5.7.3 to enable tvoutput in ATI driver

copy it to your local portage
/usr/local/portage/x11-drivers/xf86-video-ati/files
modify a line in ebuild xf86-video-ati-6.5.7.3-r1.ebuild:
PATCHES="${FILESDIR}/${P}-hangup-ppc.patch ${FILESDIR}/${P}-tv_output.patch"
and recompile
Comment 2 Joshua Baergen (RETIRED) gentoo-dev 2006-03-26 09:32:30 UTC
We won't include this in our own patchsets until the X team includes this upstream.  Thanks for the patch though; we'll of course leave this here for those  who are interested.

Make sure you post this to the forums and possibly gentoo-wiki.com for those who are interested, since I don't think a tonne of people will find it here.

I'll mark this as upstream since the responsibility lies with the patch author and X team to get this into official X.
Comment 3 Anton Bolshakov 2006-03-27 03:32:04 UTC
Thanks, all true, I just wanted to post it here for whom, who really need tvoutput now.
The link
http://gentoo-wiki.com/HOWTO_DRI_with_ATi_Open-Source_Drivers
has been modified as well.

btw, there is an uncompiled binary in the patch in ../src/tvo_set/
http://sourceforge.net/mailarchive/forum.php?thread_id=9760999&forum_id=5014
Here is interesting part:

Things havent been done:
Imakefile -> Makefile for tvo_set.c
however, you can compile it with a single command line:
gcc tvo_set.c -I/where_your_xorg_is_installed/include/ -L/where_your_xorg_is_installed/lib/ -lXv -o tvo_set

Waiting for the upstream.
Comment 4 Anton Bolshakov 2006-04-18 04:53:56 UTC
Created attachment 84891 [details, diff]
patch for xorg 7 modular v 6.6.0 to enable tvoutput in ATI driver

This patch is for new version xf86-video-ati-6.6.0.
It's just assembled files from http://shell.world-net.co.nz/~knightw/tvout/
Copy the original ebuild to your local portage and add the line: PATCHES="${FILESDIR}/${P}-tv_output.patch" into it.
Comment 5 Joshua Baergen (RETIRED) gentoo-dev 2006-05-06 13:04:57 UTC
*** Bug 71452 has been marked as a duplicate of this bug. ***
Comment 6 Anton Bolshakov 2006-06-24 02:16:20 UTC
Created attachment 89986 [details, diff]
patch for xorg 7 modular v 6.6.1 to enable tvoutput in ATI driver

Vertion bump
Comment 7 Anton Bolshakov 2006-06-24 02:16:49 UTC
Created attachment 89987 [details, diff]
patch for xorg 7 modular v 6.6.1 to enable tvoutput in ATI driver

Version bump
Comment 8 Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2006-09-03 16:19:41 UTC
Created attachment 95893 [details, diff]
patch for xorg 7 modular v 6.5.8.0 to enable tvoutput in ATI driver
Comment 9 Olliver Schinagl 2006-09-05 09:18:33 UTC
I think we need a nother version bump to x11-drivers/xf86-video-ati-6.6.2?

Also a weebit more detailed instruction for us n00bs would be handy here. What's the plan? copy the x11-drivers/xf86-video-ati-6.6.1 dir to our local overlay and apply the patch?
Comment 10 Olliver Schinagl 2006-09-05 10:26:57 UTC
Ok just added the PATCH line (as i seem to have over-read it) and the 6.6.1 patch doesn't patch against 6.6.2. I'll fix it later tonight I hope, otherwise i'll post my patch.out file for others to take a peek at :)
Comment 11 Olliver Schinagl 2006-09-05 15:40:02 UTC
Created attachment 96124 [details, diff]
Fixed xf86-video-ati-6.6.2 patch for archive.
Comment 12 Olliver Schinagl 2006-09-05 15:40:41 UTC
Created attachment 96125 [details, diff]
TV Out patch against xf86-video-ati 6.6.2
Comment 13 Olliver Schinagl 2006-09-05 15:54:20 UTC
Comment on attachment 96124 [details, diff]
Fixed xf86-video-ati-6.6.2 patch for archive.

(Ignore this patch. I messed up here)
Comment 14 Olliver Schinagl 2006-09-05 15:54:58 UTC
Comment on attachment 96125 [details, diff]
TV Out patch against xf86-video-ati 6.6.2

Also this one is messed up so I have to resubmit.
Comment 15 Olliver Schinagl 2006-09-05 15:57:28 UTC
Created attachment 96126 [details, diff]
Radeon TV-Out patch against 6.6.2

Ok, second attempt. Patch patches and compiles fine on my system. However I have a radeon 9500Pro (testing it for someone elses 9200SE) so I doubt I could even get it to work at all. AFAIK the r300 uses r200 drivers for 2d stuff, and the Rage Theater chip is the nearly the same build in Rage Theater 200 from the other radeons? Oh well atleast now I got a patched ati driver to start experimenting with.
Comment 16 Steven Leung 2006-09-08 03:46:02 UTC
Created attachment 96376 [details, diff]
radeon tv-out patch against 6.6.2 (updated Makefile.in)

The patch is the same as the most recent 6.6.2 patch from node but with added lines to Makefile.in so that theater_out_drv.so is built
Comment 17 Raboo Treed 2006-09-25 15:53:42 UTC
You guys should create a own portage overlay and create a page in the gentoo-wiki like radeon_and_tv-out
Comment 18 Olliver Schinagl 2006-10-09 08:02:40 UTC
patch still works with 6.6.3, If I get bored I'll check if it still applies cleanly and if not re-apply one.

For me, I had to actually disconnect my VGA port for TV-Out to work. Things went pretty bad when I didn't.

Also, the driver still only works in 16bpp? I'll see if 24bpp is even possible cause, it might not have been very visible back in 95, but on my freevo background it shows really badl allready.
Comment 19 Olliver Schinagl 2006-10-09 15:25:18 UTC
Can confirm that 24bpp works just fine, My xorg.conf wasn't all it should have been.

Oh well, i think i might try vga->scart and see how I like that anyhow.
Comment 20 Raboo Treed 2006-10-14 08:21:04 UTC
shouldn't you make the patch so it also compiles the tvo_set utility?
Comment 21 Cyrill Helg 2006-10-16 03:54:03 UTC
Is that patch in cvs of xf86-video-ati?
Comment 22 Anton Bolshakov 2007-04-03 14:41:29 UTC
Created attachment 115364 [details, diff]
this is the 6.6.2 patch from Steven Leung. 

I'm re-uploading it to obsolete my old v.6.6.1 and update the bug to have the proper numbering (6.6.3).
Comment 23 Anton Bolshakov 2007-04-03 14:46:36 UTC
Created attachment 115366 [details, diff]
radeon tv-out patch against 6.6.3 by Steven Leung

Sorry for the spam.
Comment 24 Anton Bolshakov 2007-04-05 16:09:21 UTC
Created attachment 115513 [details, diff]
radeon tv-out patch against rc 6.6.191 based on 6.6.3

Ok, it's getting tricky now.
Some pieces of the patch are in the git already and some variables has changed.
Give it a try. Let me know if any problem with the patch.
Comment 25 Matthias Muthmann 2007-04-06 10:29:47 UTC
> Ok, it's getting tricky now.
But it works perfect for me! Thanks!!!


Comment 26 Anton Bolshakov 2007-04-06 12:25:11 UTC
> But it works perfect for me! Thanks!!!
Thanks for the good news. I couldn't check myself because I have r300 and it's never worked for me :)

3 new versions rc2-rc4 have hit the portage today in one shot. The last one called:
xf86-video-i810-1.9.94 (06 Apr 2007)

The patch might still work. 
Let's wait for the final version and see how it goes.
Comment 27 cazzantonio 2007-07-16 19:16:19 UTC
With xf86-video-ati-6.6.3 this patch makes my linux box to randomly freeze.
This only happens only when the s-video cable is plugged in and never if attached to a normal vga (or dvi) monitor.

I cannot post any error since this freeze leaves no trace at all into system logs.
My card is an ati 9200 PCI.
This is my device section of xorg.conf:

Section "Device"
    Identifier                          "ATI"
    Driver                              "radeon"
    BusID                               "PCI:0:20:0"
    Option      "DynamicClocks"         "on"
#####################################################
# TV-Output options for opensource driver with patch
    Option "TVOutput" "PAL"
    Option  "IgnoreEDID" "true"
#####################################################
EndSection


This is my emerge --info

Portage 2.1.2.9 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.21-gentoo-r4 i686)
=================================================================
System uname: 2.6.21-gentoo-r4 i686 VIA Esther processor 1200MHz
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 16 Jul 2007 06:50:01 +0000
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -mmmx -msse -msse2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -mmmx -msse -msse2 -fomit-frame-pointer -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://trumpetti.atm.tut.fi/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/"
LANG="it_IT@euro"
LC_ALL="it_IT@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="it"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/portage_tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac alsa bash-completion berkdb bitmap-fonts bzip2 caps cli cracklib crypt dga dri fam fbcon fortran gdbm gif gmp gnutls gpm iconv idn ipv6 isdnlog jpeg libg++ mad midi mmx mp3 mudflap ncurses nls nptl nptlonly offensive opengl openmp pam pcre perl png pppd python quicktime readline reflection samba sdl session speex spell spl sse sse2 ssl tcpd theora tiff truetype truetype-fonts type1-fonts unicode vorbis win32codecs x264 x86 xml xorg xv xvid zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="radeon via vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 28 Steven Parker 2007-07-25 02:53:09 UTC
Is there any support for the IGP graphics in laptops?

I'm trying to use it with my Compaq which has an IGP320 graphics. I can't seem to get X to output anything to my svideo port. Could be something wrong in the xorg.conf maybe? I tried following the instructions on some of the sites, but nothing seems to be working at the moment.
Comment 29 Anton Bolshakov 2007-09-05 01:06:00 UTC
It's a bit old news, but just to put a final dot here:
after all contributers agreed (including myself) to release the code under xorg license, the patch has been merged into the official xorg ATI driver and it is anticipated to work on most R200 and R300-based cards.
See the following links for details:
http://www.hboeck.de/archives/522-TV-Out-for-radeon-r200r300-cards.html
http://gitweb.freedesktop.org/?p=xorg/driver/xf86-video-ati.git;a=shortlog;h=randr-1.2

Use http://dev.gentoo.org/~hanno/xf86-video-ati-9999.ebuild and submit bug reports to Hanno Boeck directly ;-)
Good job, Hanno!
Comment 30 Donnie Berkholz (RETIRED) gentoo-dev 2007-09-05 08:05:23 UTC
I should be getting a 6.7 release candidate into the main tree shortly...