Bug 10111 - xrandr reports "TV disconnected" while TV shows output with composite port
Summary: xrandr reports "TV disconnected" while TV shows output with composite port
Status: VERIFIED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: 7.2 (2007.02)
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Wang Zhenyu
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-27 04:18 UTC by Gordon Jin
Modified: 2009-04-02 01:59 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
xorg.conf (3.05 KB, text/plain)
2007-02-27 04:19 UTC, Gordon Jin
no flags Details
Xorg.0.log (74.24 KB, text/plain)
2007-02-27 04:20 UTC, Gordon Jin
no flags Details
xrandr output (605 bytes, text/plain)
2007-02-27 04:21 UTC, Gordon Jin
no flags Details
Xorg.0.log after "xrandr --output TV --auto" (108.33 KB, text/plain)
2007-02-27 04:27 UTC, Gordon Jin
no flags Details
xrandr output after "xrandr --output TV --auto" (1.19 KB, text/plain)
2007-02-27 04:28 UTC, Gordon Jin
no flags Details
TV connector option (2.83 KB, patch)
2009-02-19 01:08 UTC, Wang Zhenyu
no flags Details | Splinter Review
xorg.0.log with TV_connector option (145.34 KB, text/plain)
2009-02-22 19:42 UTC, liuhaien
no flags Details
xorg.0.log without TV_connector option (145.34 KB, text/plain)
2009-02-22 19:42 UTC, liuhaien
no flags Details
xorg.0.log with commit aa9da5e (57.20 KB, text/plain)
2009-03-04 23:36 UTC, liuhaien
no flags Details
xorg conf file with option "TV_connector" "S-Video" (3.59 KB, text/plain)
2009-03-04 23:37 UTC, liuhaien
no flags Details

Description Gordon Jin 2007-02-27 04:18:34 UTC
Machine: IBM R52 laptop(915GM). 

xf86-video-intel: modesetting tip
xserver: server-1.3-branch tip
Xorg: 7.2 release
kernel: 2.6.20 release
OS: FC5

The video cable connects between S-video port on laptop and composite port on TV.
After startx with normal xorg.conf, both LVDS and TV display well in clone mode. But xrandr reports "TV disconnected".

If using S-video port instead of composite port on TV, no this problem.
Comment 1 Gordon Jin 2007-02-27 04:19:54 UTC
Created attachment 8876 [details]
xorg.conf

normal config file
Comment 2 Gordon Jin 2007-02-27 04:20:25 UTC
Created attachment 8877 [details]
Xorg.0.log
Comment 3 Gordon Jin 2007-02-27 04:21:46 UTC
Created attachment 8878 [details]
xrandr output

command "xrandr" says "TV disconnected". But in fact TV is connected and shows well.
Comment 4 Gordon Jin 2007-02-27 04:26:04 UTC
Then I run "xrandr --output TV --auto", but things get worse: the TV loses signal and TV display goes away.
Comment 5 Gordon Jin 2007-02-27 04:27:21 UTC
Created attachment 8879 [details]
Xorg.0.log after "xrandr --output TV --auto"

the log after I run "xrandr --output TV --auto"
Comment 6 Gordon Jin 2007-02-27 04:28:13 UTC
Created attachment 8880 [details]
xrandr output after "xrandr --output TV --auto"

xrandr finds TV modes, but no active mode.
Comment 7 Gordon Jin 2007-04-10 20:15:25 UTC
I retest with the latest driver. The change is xrandr reports mode 1024x768 this time (but without active flag). But only this one mode. And the TV does show 1024x768 screen.
And "xrandr --output TV --auto" will still lose TV signal.

TV disconnected 1024x768+0+0 (normal left inverted right) 0mm x 0mm
  1024x768 (0x71)   26.9MHz
        h: width  1024 start 1025 end 1088 total 1120 skew    0 clock   24.0KHz
        v: height  768 start  769 end  800 total  801           clock   30.0Hz
Comment 8 Gordon Jin 2007-04-10 20:21:24 UTC
and setting mode doesn't effect:

[root@x-915gm ~]# xrandr --output TV --mode 1024x768
xrandr: cannot find mode 1024x768
Comment 9 Michael Fu 2007-08-23 18:35:21 UTC
re-assigned to nanhai.
Comment 10 Gordon Jin 2007-08-27 02:20:29 UTC
The bug still exists in the latest driver. 
Comment 11 Zou Nan hai 2007-09-27 23:28:01 UTC
TV was deteced to s-video when it is composite..., 
it is even not possible to write a quirk.
It should be a hardware issue.
Comment 12 Gordon Jin 2009-02-18 18:48:50 UTC
Reopen and assign to Zhenyu to see if his new work can help this.
Comment 13 Wang Zhenyu 2009-02-19 01:08:54 UTC
Created attachment 23109 [details] [review]
TV connector option

So instead of failure detection, this patch adds TV_Connector option that can be set to force connector type. Please try this to see if anything helps.
Comment 14 liuhaien 2009-02-19 18:38:06 UTC
(In reply to comment #13)
> Created an attachment (id=23109) [details]
> TV connector option
> 
> So instead of failure detection, this patch adds TV_Connector option that can
> be set to force connector type. Please try this to see if anything helps.
> 

hi,zhenyu
the patch dosn't work, "TV disconnected" still shows in the output of "xrandr -q" as below:
[root@x-915gm opt]# xrandr -q
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 2048 x 2048
VGA disconnected (normal left inverted right x axis y axis)
LVDS connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768       60.0*+   85.0     75.0     70.1     60.0
   832x624        74.6
   800x600        85.1     72.2     75.0     60.3     56.2
   640x480        85.0     72.8     75.0     59.9
   720x400        85.0
   640x400        85.1
   640x350        85.1
TV disconnected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
  1024x768 (0x50)   26.9MHz
        h: width  1024 start 1025 end 1088 total 1120 skew    0 clock   24.0KHz
        v: height  768 start  769 end  800 total  801           clock   30.0Hz
Comment 15 Wang Zhenyu 2009-02-19 18:49:12 UTC
Have you add TV_Connector option in xorg.conf?
Comment 16 liuhaien 2009-02-19 21:28:22 UTC
(In reply to comment #15)
> Have you add TV_Connector option in xorg.conf?
> 

no,I havn't.how to add it?
Comment 17 Wang Zhenyu 2009-02-19 22:12:40 UTC
Just like how you add TV_Format option.

Section "Device"
    Identifier "intel driver"
    Device "intel"
    Option "monitor-TV" "TV"
   ...
EndSection

Section "Monitor"
    Identifiter "TV"
   Option "TV_Connector" "Composite"
EndSection

see updated intel.4 manpage.
Comment 18 liuhaien 2009-02-20 00:11:22 UTC
(In reply to comment #17)
> Just like how you add TV_Format option.
> 
> Section "Device"
>     Identifier "intel driver"
>     Device "intel"
>     Option "monitor-TV" "TV"
>    ...
> EndSection
> 
> Section "Monitor"
>     Identifiter "TV"
>    Option "TV_Connector" "Composite"
> EndSection
> 
> see updated intel.4 manpage.
> 

thanks ,it shows "TV connected",but we get a blank screen on TV when adding the option. without the option, X display normally on TV.
Comment 19 Wang Zhenyu 2009-02-22 17:28:59 UTC
Could you try more times to see if TV can be lighten up? Please paste the log with and without TV_Connector option in failure case.
Comment 20 liuhaien 2009-02-22 19:27:21 UTC
(In reply to comment #19)
> Could you try more times to see if TV can be lighten up? Please paste the log
> with and without TV_Connector option in failure case.
> 

sorry,I've tried more than 10 times but it still cannot be lighten up.Xorg.0.log are attached.
Comment 21 liuhaien 2009-02-22 19:42:03 UTC
Created attachment 23189 [details]
xorg.0.log with TV_connector option
Comment 22 liuhaien 2009-02-22 19:42:35 UTC
Created attachment 23190 [details]
xorg.0.log without TV_connector option
Comment 23 Wang Zhenyu 2009-03-02 22:12:02 UTC
TV_Connector option patch is pushed.
commit aa9da5e393c804019720503fe58bdd247fe1eabd
Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
Date:   Tue Mar 3 20:26:19 2009 +0800

    TV: add option to set TV connector type
    
    This can let user override non-stable driver TV load detect,
    and set connector type manually, e.g for s-video to component
    converter, this patch seems must needed to use HD modes.

For this machine that has 4-bin S-video, we can't detect composite link, and
do bypass TV disconnect annoy, now you can use TV_Connector option to set
it as "S-Video". Please verify that works. Close now.
Comment 24 liuhaien 2009-03-04 23:35:53 UTC
(In reply to comment #23)
> TV_Connector option patch is pushed.
> commit aa9da5e393c804019720503fe58bdd247fe1eabd
> Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
> Date:   Tue Mar 3 20:26:19 2009 +0800
> 
>     TV: add option to set TV connector type
> 
>     This can let user override non-stable driver TV load detect,
>     and set connector type manually, e.g for s-video to component
>     converter, this patch seems must needed to use HD modes.
> 
> For this machine that has 4-bin S-video, we can't detect composite link, and
> do bypass TV disconnect annoy, now you can use TV_Connector option to set
> it as "S-Video". Please verify that works. Close now.
> 

hi,zhenyu
this commit doesn't work for me.I've set the Option "TV_connector" "S-video" in the xorg.conf ,but it still shows TV disconnected. new xorg.0.log and xorg.conf are attached.
Comment 25 liuhaien 2009-03-04 23:36:41 UTC
Created attachment 23544 [details]
xorg.0.log with commit aa9da5e
Comment 26 liuhaien 2009-03-04 23:37:34 UTC
Created attachment 23545 [details]
xorg conf file with option "TV_connector" "S-Video"
Comment 27 liuhaien 2009-03-04 23:41:24 UTC
still exists with below commits,so reopen it.
Libdrm:		(master)a6dd0afa87558a670f970e61b023f45a396539eb
Mesa:		(mesa_7_4_branch)b65bfde84d2f0d83a432602cda425a63560e4034	
Xserver:	(server-1.6-branch)60c161545af80eb78eb790a05bde79409dfdf16e
Xf86_video_intel:	(master)0d20bbbc2005a51f427a9ae6b6a66dbbb101dbab
GEM_kernel:       (for-airlied)edde72a59461d766997b469f6d20afdf5fe9b5b4
Comment 28 Wang Zhenyu 2009-03-16 00:27:34 UTC
With 
commit 4e95327323e3d081b565147f7738eb49c28542bc
Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
Date:   Mon Mar 16 09:30:22 2009 +0800

    TV: force TV as connected with TV_Connector option
    
    In order to bypass failure in TV load detect, TV_Connector option
    will always force TV as connected with user specified connector type.

set TV_Connector option to "S-video" will work around this problem for you. Close.
Comment 29 Gordon Jin 2009-04-01 01:49:18 UTC
Haien, please verify. (try master if this patch is not in 2.7 branch)
Comment 30 liuhaien 2009-04-02 01:59:36 UTC
(In reply to comment #29)
> Haien, please verify. (try master if this patch is not in 2.7 branch)
> 

verified in master:
commit fad714c40078d22fff82dc0692a344f66ddf9680
Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
Date:   Wed Apr 1 10:11:35 2009 +0800

    SDVO: fix output flag dumping for unknown type

    Found by Hugo Jacques <hugo.jacques@verint.com>



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.