Bug 19491

Summary: S-video & composite output
Product: xorg Reporter: monnier
Component: Driver/nouveauAssignee: Nouveau Project <nouveau>
Status: RESOLVED INVALID QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: brian, freedesktop.org
Version: 7.4 (2008.09)   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description monnier 2009-01-09 18:43:46 UTC
I finally got nouveau (from git) working on my PowerBook G4 12" (running Debian testing with unstable's X server).
Now, my next step is to get it to drive my TV.  I have it connected via
Apple's "mini-DVI to Video Adapter", which comes with both an S-video
and a composite output.

When I start X, `xrandr' tells me:

   % xrandr                                 
   Screen 0: minimum 320 x 200, current 1024 x 768, maximum 1360 x 1360
   LVDS-0 connected 1024x768+0+0 (normal left inverted right x axis y axis) 245mm x 184mm
      1024x768       60.0*+
      800x600        60.3  
      640x480        59.9  
   DVI-I-0 connected 1024x768+0+0 (normal left inverted right x axis y axis) 1mm x 257mm
      1360x768       59.8  
      1152x864       60.0  
      1024x768       60.0* 
      800x600        60.3  
      640x480        59.9  
      680x384       119.6    119.9  
      576x432       120.1  
      512x384       120.0  
      400x300       120.6  
      320x240       120.1  
   % 

so it appears that this video adapter is detected as a sort of DVI
screen.  And indeed, my TV (which is connected via the `composite'
output if it matters) does show something ;-), but not something
meaningful :-(.  If I try to switch to some other mode e.g. with

   xrandr --output DVI-I-0 --mode 640x480

the meaningless output changes, but stays mostly meaningless (sometimes
I can recognize some shapes, which indicate clearly that the "garbage" is
actually representing the screen, just probably not with the right
frequency/polarity/godknowswhat/...).

Does anybody have some idea if I can get it to work with the current
code, if so how, and if not, how I can help make it work?


        Stefan
Comment 1 Pekka Paalanen 2009-01-10 02:01:23 UTC
The first question is, what exactly is a "mini-DVI to Video Adapter"? Does it really convert DVI-A RGBVH-signal to S-video/composite, or does your graphics card have special hardware to explicitly generate S-video/composite signal (which would be normal case with PC hardware)?

In the latter case there is only one thing to do: reverse-engineer and implement it. Nouveau still lacks any kind of real analog tv-out support. If it is the former case, then the bug summary should be changed, and the problem is just with setting the right display mode.

Have you tried crafting a modeline that exactly matches your tv-standard and used that?
Comment 2 Younes Manton 2009-01-10 08:50:19 UTC
Mini-DVI carries DVI, VGA, and S-Vid/composite signals and all an adaptor does is expose the right signals, so I think it's the usual no TV-out support issue.
Comment 3 monnier 2009-01-10 12:13:25 UTC
> The first question is, what exactly is a "mini-DVI to Video Adapter"?

Of course, but I have no idea.  It's a black (well, white) box to me.
To tell you the truth, I always assumed it was a dummy thingy that exposes the S-video signal from mini-DVI.
http://store.apple.com/ca/product/M9319G/A?fnode=MTY1NDA5OQ&mco=MjE0NTg3OQ
Its size seems to indicate that it has a bit more than just wires, so maybe it does some conversion, but I expect the only conversion it does is from S-video to composite.

Still, I'm not sure of that, because as shown in my `xrandr' output, the nouveau driver seems to detect this adapter as a "DVI-I-0".

> Have you tried crafting a modeline that exactly matches your tv-standard and
> used that?

You mean using "xrandr --newmode"?  I'll try that, thanks.

> Mini-DVI carries DVI, VGA, and S-Vid/composite signals and all an adaptor does
> is expose the right signals, so I think it's the usual no TV-out support issue.

Is there something I can do to help get TV-out support?
Comment 4 Younes Manton 2009-01-11 11:03:32 UTC
(In reply to comment #3)
> 
> Is there something I can do to help get TV-out support?
> 

Unless you want to try reverse engineering it yourself you just have to wait until someone has the time and motivation to do it. If someone does do that then feel free to volunteer to test it. :)
Comment 5 Ilia Mirkin 2013-08-18 18:10:28 UTC
It appears that this bug report has laid dormant for quite a while. Sorry we haven't gotten to it. Since we fix bugs all the time, chances are pretty good that your issue has been fixed with the latest software. Please give it a shot. (Linux kernel 3.10.7, xf86-video-nouveau 1.0.9, mesa 9.1.6, or their git versions.) If upgrading to the latest isn't an option for you, your distro's bugzilla is probably the right destination for your bug report.

In an effort to clean up our bug list, we're pre-emptively closing all bugs that haven't seen updates since 2011. If the original issue remains, please make sure to provide fresh info, see http://nouveau.freedesktop.org/wiki/Bugs/ for what we need to see, and re-open this one.

Thanks,

The Nouveau Team

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.