Bug 17395

Summary: [965GM] detects unexisting VGA output as connected
Product: xorg Reporter: Brice Goglin <brice.goglin>
Component: Driver/intelAssignee: Wang Zhenyu <zhenyu.z.wang>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: charles-debian-nospam, michael.fu
Version: gitKeywords: NEEDINFO
Hardware: Other   
OS: All   
URL: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=496169
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Xorg log
none
Log with Xorg 1.5.0 / Intel driver 2.4.2
none
Log with Xorg 1.5.0 / Intel driver 2.5.1
none
vbios rom from Sony VGC-LT71DB
none
Use CRT present bit from VBT
none
quirk crt none

Description Brice Goglin 2008-09-01 10:14:46 UTC
Charles Plessy has a Sony VGC-LT71DB. It's a kind of iMac clone that looks like the offspring of a television and an aquarium. He cannot find any VGA output on the machine. But the intel keeps saying that there's a VGA output connected, caused wrong resolutions to be chosen for the LVDS.

The corresponding log is available at
http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=57;filename=bug-xserver-xorg-video-intel-script.txt;att=1;bug=496169

lspci and the xrandr output is available at
http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=25;bug=496169

Fortunately, adding a dummy VGA section with Ignore true in xorg.conf disables the VGA output and works around the problem.

Can we add some sort of quirk to hide this VGA output, or at least make it appear as disconnected?

Brice
Comment 1 Wang Zhenyu 2008-09-08 18:25:58 UTC
We can add a quirk for this hardware easily, but I'd like to know why VGA detection fails here. Could you turn on Device ModeDebug option and send the log?
Comment 2 Charles Plessy 2008-09-14 19:40:48 UTC
Created attachment 18871 [details]
Xorg log

With Option "ModeDebug" "yes"
Comment 3 Wang Zhenyu 2008-09-16 00:24:44 UTC
I think this problem might be gone with recent driver (2.4 branch or master), when we change back CRT detect to original one via hotplug detection. You can verify this by trying latest driver, or run "intel_hotplug" tool from src/reg_dumper/ after system boot but before entering X and paste output here. So we can see if CRT got detect or not now.
Comment 4 Michael Fu 2008-09-25 00:12:03 UTC
ping for response, Brice. Are you able to test a newer driver to see if this is fixed?
Comment 5 Brice Goglin 2008-09-25 00:24:02 UTC
I just forwarded your ping to Charles Plessy (downstream reporter).
Comment 6 Charles Plessy 2008-09-28 07:01:12 UTC
Created attachment 19272 [details]
Log with Xorg 1.5.0 / Intel driver 2.4.2

Hi,

when testing with higher versions, a lower resolution is picked, 1152x864.

Have a nice day,

-- Charles
Comment 7 Michael Fu 2008-11-26 01:32:29 UTC
965GM should now be able to detect CRT via hotplug now. Your CRT won't be shown as connected anymore. Would you please do a test again?
Comment 8 Michael Fu 2008-12-02 21:58:14 UTC
ping bug reporter...
Comment 9 Charles Plessy 2008-12-02 22:11:46 UTC
(In reply to comment #8)
> ping bug reporter...
> 
I did not find time yet to try Debian's experimental package. I hope I can try soon.

-- 
Charles
Comment 10 Charles Plessy 2008-12-03 05:20:34 UTC
Created attachment 20761 [details]
Log with Xorg 1.5.0 / Intel driver 2.5.1

(In reply to comment #7)
> 965GM should now be able to detect CRT via hotplug now. Your CRT won't be shown
> as connected anymore. Would you please do a test again?
> 

With the Debian packages xserver-xorg-video-intel 2:2.5.1-1 and xserver-xorg 1:7.4~4, the server still starts at GDM wrong resolution, and then gives a black screen after login (log attached).

-- Charles
Comment 11 Michael Fu 2008-12-03 16:40:30 UTC
Thanks for the testing!

would you please attach your vbios rom as following method?

# cd /sys/devices/pci0000\:00/0000\:00\:02.0/
# echo 1 > rom
# cat rom > /tmp/rom.bin
# echo 0 > rom

then submit the rom.bin to this bug report...thanks!
Comment 12 Charles Plessy 2008-12-03 17:00:04 UTC
Created attachment 20774 [details]
vbios rom from Sony VGC-LT71DB
Comment 13 Charles Plessy 2008-12-03 17:02:35 UTC
(In reply to comment #12)
> Created an attachment (id=20774) [details]
> vbios rom from Sony VGC-LT71DB 

I extracted when running a X session with the following workaround:

Section "Monitor"
  Identifier "VGA"
  Option "Ignore" "true"
EndSection

Since it is a ROM, I suppose that it does not make a difference.
Comment 14 Michael Fu 2008-12-09 00:50:35 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > Created an attachment (id=20774) [details] [details]
> > vbios rom from Sony VGC-LT71DB 
> 
> I extracted when running a X session with the following workaround:
> 
> Section "Monitor"
>   Identifier "VGA"
>   Option "Ignore" "true"
> EndSection
> 
> Since it is a ROM, I suppose that it does not make a difference.
> 

thanks, Charles. you may need to stay with the work-around for now. The vbios rom has a bit to tell us wether the platform has integrated VGA support or not. We need to improve our driver for that... thanks.
Comment 15 Wang Zhenyu 2008-12-09 00:59:32 UTC
Created attachment 20940 [details] [review]
Use CRT present bit from VBT

This one trys to use VBIOS's crt present flag for CRT initialization. It's against current git master. Could you help to try it?
Comment 16 Wang Zhenyu 2008-12-09 18:43:32 UTC
Comment on attachment 20940 [details] [review]
Use CRT present bit from VBT

Using crt present flag from VBT is broken on my 915G. So it looks not trust to driver. I'll make a quirk patch for this instead.
Comment 17 Wang Zhenyu 2008-12-09 18:45:00 UTC
Created attachment 20971 [details] [review]
quirk crt
Comment 18 Wang Zhenyu 2008-12-10 17:05:57 UTC
Pushed patch to git master.

commit f5f67e1b54e67b4bfc3db3482b2693211be81d63
Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
Date:   Wed Dec 10 10:36:07 2008 +0800

    bug #17395: Quirk CRT for Sony VGC-LT71DB

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.