Bug 17731

Summary: [965 SDVO]driver report VGA ,TMDS and TV connected,but actually only VGA connected
Product: xorg Reporter: liuhaien <haien.liu>
Component: Driver/intelAssignee: Wang Zhenyu <zhenyu.z.wang>
Status: VERIFIED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
xorg.0.log
none
xorg conf file
none
zhengyu's updated patch none

Description liuhaien 2008-09-23 01:03:05 UTC
Created attachment 19119 [details]
xorg.0.log

System Environment:
--------------------------

--Platform:q965

--Architecture:32-bit

--2D driver: master 071937ae577db67a9b5760bd4c2c4b61a8194822

--3D driver:Mesa_7_2_branch 35fe0e56e6f6b45ceea0c3d43be7596c1ea44e00

--libdrm: master 8ca06eb492f861dbf049a2e104e4e2a5ba814c13
--Xserver:1.5release
--Kernel: 2.6.27-rc5

Bug detailed description:
--------------------------
SDVO card is plugged in 965 motherboard,but no connecting any monitor.we use VGA port (shipped with 965 motherboard) to connect a monitor,then start X,driver will report VGA ,TMDS-1 and TV-2 connected.following is the output of "xrandr -q":
***********************************
xrandr -q
Screen 0: minimum 320 x 200, current 800 x 600, maximum 2000 x 2000
VGA connected 800x600+0+0 (normal left inverted right x axis y axis) 518mm x 324
mm
   800x600        72.2*+   75.0     60.3     56.2
   1920x1200      60.0 +
   1600x1200      60.0     60.0
   1400x1050      74.8     60.0
   1280x1024      75.0     60.0     60.0
   1280x960       60.0
   1152x864       75.0     75.0
   1024x768       75.1     75.0     70.1     60.0
   832x624        74.6
   640x480        75.0     72.8     75.0     60.0     59.9
   720x400        70.1
TMDS-1 connected 800x600+0+0 (normal left inverted right x axis y axis) 0mm x 0m
m
   800x600        60.3*+
   1024x768       60.0
   640x480        59.9
TV-2 connected 800x600+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   800x600        60.3*+
   1280x1024      60.0
   1280x1024@60.00   60.0
   1280x960       60.0
   1024x768       60.0
   1024x768@60.00   60.0
   920x766@60.00   60.0
   832x624@60.00   60.0
   800x600@60.00   60.0
   720x576@60.00   60.0
   704x576@60.00   60.0
   720x540@60.00   60.0
   720x480@60.00   60.0
   640x480        59.9
*******************************************
and we build 2d driver with zhengyu's updated patch (see bug 16631),witout this patch,driver cannot detect TV port.below is the output of "xrandr -q" without patch:
****************************************
Screen 0: minimum 320 x 200, current 800 x 600, maximum 2000 x 2000
VGA connected 800x600+0+0 (normal left inverted right x axis y axis) 518mm x 324mm
   800x600        72.2*+   75.0     60.3     56.2
   1920x1200      60.0 +
   1600x1200      60.0
   1400x1050      74.8     60.0
   1280x1024      75.0     60.0
   1280x960       60.0
   1152x864       75.0
   1024x768       75.0     70.1     60.0
   832x624        74.6
   640x480        75.0     72.8     75.0     59.9
   720x400        70.1
TMDS-1 connected 800x600+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   800x600        60.3*+
   1024x768       60.0
   640x480        59.9
************************************* 
Reproduce steps:
----------------
1.use SDVO card ,but do not connect to monitor
2.xinit&
3.xrandr -q
Comment 1 liuhaien 2008-09-23 01:04:11 UTC
Created attachment 19120 [details]
xorg conf file
Comment 2 liuhaien 2008-09-23 01:06:13 UTC
Created attachment 19121 [details]
zhengyu's updated patch
Comment 3 Wang Zhenyu 2008-09-27 22:31:39 UTC
No, don't try this patch, try current git master instead.
Comment 4 Wang Zhenyu 2008-10-07 22:55:51 UTC
Looks we have a macmini hack in sdvo get_modes, that we'll try to steal edid from VGA if that's disconnected, but shouldn't affect here as we have VGA connected, right? Please test with current master.
Comment 5 liuhaien 2008-10-08 01:38:26 UTC
(In reply to comment #4)
> Looks we have a macmini hack in sdvo get_modes, that we'll try to steal edid
> from VGA if that's disconnected, but shouldn't affect here as we have VGA
> connected, right? Please test with current master.
> 

this issue works well with master.below is the output of "xrandr -q":

Screen 0: minimum 320 x 200, current 800 x 600, maximum 2000 x 2000
VGA connected 800x600+0+0 (normal left inverted right x axis y axis) 518mm x 324mm
   800x600        72.2*+   75.0     60.3     56.2
   1920x1200      60.0 +
   1600x1200      60.0     60.0
   1400x1050      74.8     60.0
   1280x1024      75.0     60.0     60.0
   1280x960       60.0
   1152x864       75.0     75.0
   1024x768       75.1     75.0     70.1     60.0
   832x624        74.6
   640x480        75.0     72.8     75.0     60.0     59.9
   720x400        70.1
TMDS-1 disconnected 800x600+0+0 (normal left inverted right x axis y axis) 518mm x 324mm
Comment 6 Wang Zhenyu 2008-10-08 02:26:34 UTC
Thanks for testing! Close this.
Comment 7 liuhaien 2008-10-09 20:19:56 UTC
verified.it also works well with 2.5branch.

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.