Bug 39866 - Incorrectly detects Analog outputs as TV out on Apple Cards
Summary: Incorrectly detects Analog outputs as TV out on Apple Cards
Status: RESOLVED INVALID
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/nouveau (show other bugs)
Version: git
Hardware: PowerPC All
: medium normal
Assignee: Nouveau Project
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-05 14:13 UTC by Jon Sturm
Modified: 2013-08-18 18:10 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Dmesg from working boot with video=TV-1:d (32.05 KB, text/plain)
2011-08-05 14:13 UTC, Jon Sturm
no flags Details
Dmesg from a non-working boot without video=TV-1:d (31.83 KB, text/plain)
2011-08-05 14:23 UTC, Jon Sturm
no flags Details
Power PC GeForce FX 5200 Ultra 64MB vbios (2.35 KB, application/octet-stream)
2011-08-06 08:34 UTC, Jon Sturm
no flags Details
dmesg drmdebug unpluging and repluging adapter (49.59 KB, text/plain)
2011-08-15 22:34 UTC, Jon Sturm
no flags Details
dmesg after plug and unplug, no drmdebug (32.87 KB, text/plain)
2011-08-15 23:08 UTC, Jon Sturm
no flags Details

Description Jon Sturm 2011-08-05 14:13:40 UTC
Created attachment 49974 [details]
Dmesg from working boot with video=TV-1:d 

When KMS is enabled the Nouveau kernel driver detects any DVI to VGA adapters as TV outputs even though the card lacks any native TV connectors. If I append video=TV-1:d to the kernel cmdline it properly detects the VGA adapter and output on the monitor works correctly. According to the radeon devs the DVI to TV adapter Apple sells provides its own EDID that can be used to detect it. (bug 19491 has this output and relates to properly detecting it.)

My system is a PowerMac 7,2 Dual 2Ghz G5 and the video card is nVidia Corporation NV34 [GeForce FX 5200 Ultra] (rev a1)

I will attach the dmesg from a working boot and I can get a non working boot in a second.

I have also seen reports of the TV out being mis detected on an Apple g4 machine with a geforce mx 400 and it's an integrated iLamp panel and I can get working and non working dmesg's from that user as well if you think it is related.
Comment 1 Jon Sturm 2011-08-05 14:23:14 UTC
Created attachment 49975 [details]
Dmesg from a non-working boot without video=TV-1:d
Comment 2 Jon Sturm 2011-08-05 14:36:33 UTC
Xrandr output from non working setup.
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 4096 x 4096
DVI-I-1 disconnected (normal left inverted right x axis y axis)
DVI-I-2 connected (normal left inverted right x axis y axis)
   1024x768       60.0 +   75.1     70.1
   832x624        74.6
   800x600        72.2     75.0     60.3
   640x480        72.8     75.0     60.0
   720x400        70.1
TV-1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   720x576        50.0 +
   1024x768       50.0*
   800x600        50.0
   720x480        50.0
   640x480        50.0
   400x300       100.0
   320x240       100.0
   320x200       100.0

To me it looks like the VGA monitor's EDID is being mistaken for a DVI one and the TV-1 modes are generated internally by the driver. The real apple adapter includes its own EDID that can be used for detection and its modes should be used if I understand correctly.
Comment 3 Jon Sturm 2011-08-06 08:34:07 UTC
Created attachment 49996 [details]
Power PC GeForce FX 5200 Ultra 64MB vbios
Comment 4 Emil Velikov 2011-08-07 13:33:05 UTC
Hi Jon

Can you please provide a bit more information about the system
* Number and type of connectors
* Logs if you try and insert the DVI to VGA adapter (+ monitor that is) into "DVI-1" (if it exists)
* The same logs with additional verbose level - append "drm.debug=0x04" to your kernel command line

From what I can see the issue is not a case of "TV miss detection" as in those cases the monitor does produce output (about a 1/4 of the full resolution)

Cheers
Emil
Comment 5 Jon Sturm 2011-08-14 20:43:40 UTC
There are two connectors on the card, one ADC(Apple Display Connector, which I believe is basically DVI with USB) and one DVI, yaboot is having issues with the machine but as soon as I get it back up I will get you those logs.
Comment 6 Jon Sturm 2011-08-15 22:34:42 UTC
Created attachment 50256 [details]
dmesg drmdebug unpluging and repluging adapter

Attached is the dmesg with the drm debug line after I removed and repluged the adapter+monitor into the DVI port. I will do it without the drmdebug line shortly.
Comment 7 Jon Sturm 2011-08-15 23:08:05 UTC
Created attachment 50257 [details]
dmesg after plug and unplug, no drmdebug

This is the dmesg from booting without drmdebug and I removed the adpater before nouveau was loaded. I tried to just boot without it but it seemed to force booting Mac OS X when no output was attached, I'm not sure why that was.  

I also started X without a display attached but xrandr claimed DVI-I-2 was connected. Unpluging and replugging the display with X running caused xrandr to say TV-1 disconnected but DVI-I-2 and DVI-I-1 never changed. I can run the tests again with TV detection disabled if needed, assuming yaboot plays nicely.
Comment 8 Jon Sturm 2011-08-15 23:11:54 UTC
I can also give a dev ssh access if needed as the box is mainly used as a build box for Arch Linux PPC packages as well as for a few friends to test if their code is big endian safe.
Comment 9 Jon Sturm 2011-08-22 18:39:03 UTC
Ok so I overpaid for the official DVI to TV adapter from Apple and the good news is that it works. The bad news is nouveau/xrandr still thinks both DVI-I-2 and TV-1 are connected. Dmesg mentions nothing about the DVI-I-2 connector which makes me wonder why it is saying it is connected.
 
[14:38 jon@ArchG5 ~]$ DISPLAY=:0 xrandr
Screen 0: minimum 320 x 200, current 640 x 480, maximum 4096 x 4096
DVI-I-1 disconnected (normal left inverted right x axis y axis)
DVI-I-2 connected (normal left inverted right x axis y axis)
   1024x768       60.0
   800x600        60.3     56.2
   848x480        60.0
   640x480        59.9
TV-1 connected 640x480+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   720x576        50.0 +
   1024x768       50.0
   800x600        50.0
   720x480        50.0
   640x480        50.0*
   400x300       100.0
   320x240       100.0
   320x200       100.0
Comment 10 Ilia Mirkin 2013-08-18 18:10:04 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.