Bug 29494

Summary: TV out was broken by KMS
Product: xorg Reporter: Sergej Pupykin <ps>
Component: Driver/RadeonAssignee: xf86-video-ati maintainers <xorg-driver-ati>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: tobias.pal
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
kernel output
none
xorg output
none
UMS Xorg.log
none
connected TV when it rarely works none

Description Sergej Pupykin 2010-08-10 15:26:09 UTC
Created attachment 37776 [details]
kernel output

Can not get TV-out in KMS mode, however it works in UMS.

xrandr always reports disconnected.

DIN disconnected (normal left inverted right x axis y axis)
         tv standard:    pal
                 supported: ntsc         pal          pal-m        pal-60
                            ntsc-j       scart-pal    pal-cn       secam
         load detection: 1 (0x00000001)  range:  (0,1)

ML reference:
http://lists.x.org/archives/xorg-driver-ati/2010-August/016681.html

Hardware:
01:00.0 VGA compatible controller: ATI Technologies Inc RV620 LE [Radeon HD 3450]

Distro: ArchLinux.org

related packages:
ati-dri 7.8.2-1
dri2proto 2.3-1
kernel26 2.6.35-2
libxxf86dga 1.1.1-1
libxxf86misc 1.0.2-1
libxxf86vm 1.1.0-1
xf86-input-evdev 2.4.0-1
xf86-input-keyboard 1.4.0-2
xf86-input-mouse 1.5.0-2
xf86-video-ati 6.13.1-1
xf86bigfontproto 1.2.0-1
xf86dgaproto 2.1-1
xf86driproto 2.1.0-1
xf86miscproto 0.9.3-1
xf86vidmodeproto 2.3-1
xorg-apps 7.5-3
xorg-font-utils 7.5-2
xorg-fonts-100dpi 1.0.1-3
xorg-fonts-75dpi 1.0.1-3
xorg-fonts-alias 1.0.2-1
xorg-fonts-cyrillic 1.0.1-1
xorg-fonts-encodings 1.0.3-1
xorg-fonts-misc 1.0.1-1
xorg-fonts-type1 7.4-1
xorg-res-utils 1.0.3-3
xorg-server 1.8.1.902-1
xorg-server-utils 7.5-4
xorg-twm 1.0.4-3
xorg-util-macros 1.10.0-1
xorg-utils 7.6-2
xorg-xauth 1.0.4-1
xorg-xdm 1.1.10-1
xorg-xinit 1.2.1-1
xorg-xkb-utils 7.5-2
Comment 1 Sergej Pupykin 2010-08-10 15:26:55 UTC
Created attachment 37777 [details]
xorg output
Comment 2 Alex Deucher 2010-08-12 07:52:52 UTC
Ok, so it looks like VGA and DIN share DAC2; this is usually wired the other way around for most oems.  So you do need the DVI to VGA adapter to use TV and VGA.  Can you attach your xorg log with ums?  No need to compress attachments.

Aug 11 01:20:52 home kernel: [drm] Connector 0:
Aug 11 01:20:52 home kernel: [drm]   DIN
Aug 11 01:20:52 home kernel: [drm]   Encoders:
Aug 11 01:20:52 home kernel: [drm]     TV1: INTERNAL_KLDSCP_DAC2
Aug 11 01:20:52 home kernel: [drm] Connector 1:
Aug 11 01:20:52 home kernel: [drm]   VGA
Aug 11 01:20:52 home kernel: [drm]   DDC: 0x7e50 0x7e50 0x7e54 0x7e54 0x7e58 0x7e58 0x7e5c 0x7e5c
Aug 11 01:20:52 home kernel: [drm]   Encoders:
Aug 11 01:20:52 home kernel: [drm]     CRT2: INTERNAL_KLDSCP_DAC2
Aug 11 01:20:52 home kernel: [drm] Connector 2:
Aug 11 01:20:52 home kernel: [drm]   DVI-I
Aug 11 01:20:52 home kernel: [drm]   HPD1
Aug 11 01:20:52 home kernel: [drm]   DDC: 0x7e40 0x7e40 0x7e44 0x7e44 0x7e48 0x7e48 0x7e4c 0x7e4c
Aug 11 01:20:52 home kernel: [drm]   Encoders:
Aug 11 01:20:52 home kernel: [drm]     CRT1: INTERNAL_KLDSCP_DAC1
Aug 11 01:20:52 home kernel: [drm]     DFP1: INTERNAL_KLDSCP_LVTMA
Comment 3 Sergej Pupykin 2010-08-12 13:20:01 UTC
Created attachment 37824 [details] [review]
UMS Xorg.log
Comment 4 Alex Deucher 2010-09-25 11:20:13 UTC
Does it work again with the latest 2.6.36?  This might be a dupe of bug 29985.  Make sure your kernel has this patch:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=54bfe496cec7586f76f713a277435dd3ac6fd4c4
Comment 5 Sergej Pupykin 2010-09-28 12:12:41 UTC
I checked 2.6.36-rc5 (it contains this patch as I understand). Have no improvements yet.
Comment 6 Sergej Pupykin 2010-09-28 12:54:07 UTC
Created attachment 39028 [details]
connected TV when it rarely works
Comment 7 Sergej Pupykin 2010-09-28 13:00:15 UTC
I attach xrandr output when TV works with KMS (it happens rarely).

If I do --off TV then it reports disconnected.

Then I do:
$ xrandr --newmode tv 133.5 1024 1100 1212 1400 768 768 770 794
$ xrandr --addmode DIN tv
$ xrandr --output DIN --mode tv
$ xrandr --output DIN --set 'load detection' 0
but output does not work after that.
Comment 8 Sergej Pupykin 2010-12-21 09:08:32 UTC
works for me now.
Comment 9 Sergej Pupykin 2010-12-21 09:10:14 UTC
was fixed by kernel parameters:

radeon.modeset=1 video=DVI-I-1:1280x1024-24@60e video=DIN-1:1024x768-24@60e

or

radeon.modeset=1 # video=DVI-I-1:1280x1024-24@60e "video=9-pin DIN-1:1024x768-24@60e"

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.