Bug 10759 - [965] DVI: wrong default resolution picked
Summary: [965] DVI: wrong default resolution picked
Status: RESOLVED WONTFIX
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: 7.2 (2007.02)
Hardware: Other All
: medium normal
Assignee: Hong Liu
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks: 13027 13493 15000
  Show dependency treegraph
 
Reported: 2007-04-25 08:20 UTC by Timo Aaltonen
Modified: 2008-05-24 19:30 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
the log (40.38 KB, text/x-log)
2007-04-25 08:23 UTC, Timo Aaltonen
no flags Details
conf (2.88 KB, text/plain)
2007-04-25 08:24 UTC, Timo Aaltonen
no flags Details
log with 2.1.99 (32.85 KB, text/x-log)
2007-11-16 06:33 UTC, Timo Aaltonen
no flags Details
log wit modedebug (69.01 KB, text/x-log)
2007-11-21 01:08 UTC, Timo Aaltonen
no flags Details
ddcprobe (1.20 KB, text/plain)
2007-12-04 00:51 UTC, Timo Aaltonen
no flags Details
Sam 243T & intel driver log (8.68 KB, text/plain)
2008-01-03 18:29 UTC, Jerone Young
no flags Details
Sam 243T & nv driver log (6.96 KB, text/plain)
2008-01-03 18:32 UTC, Jerone Young
no flags Details
correct setting dvi target input (1.30 KB, patch)
2008-01-13 23:10 UTC, Hong Liu
no flags Details | Splinter Review
logfile with modedebug (41.58 KB, text/plain)
2008-01-14 01:54 UTC, Timo Aaltonen
no flags Details
i2c bit output fix (834 bytes, patch)
2008-01-23 00:54 UTC, Hong Liu
no flags Details | Splinter Review
logfile with the latest patch (72.04 KB, text/x-log)
2008-01-29 03:50 UTC, Timo Aaltonen
no flags Details
fix sdvo ddc bus selection (2.92 KB, patch)
2008-03-02 23:13 UTC, Hong Liu
no flags Details | Splinter Review
new logfile (75.11 KB, text/plain)
2008-03-03 05:42 UTC, Timo Aaltonen
no flags Details

Description Timo Aaltonen 2007-04-25 08:20:42 UTC
I can't get native resolution from DVI with Lenovo M55 workstation and T221 monitor (1680x1050). It has a 965Q chip, and the DVI output comes from a daughter card. I'll attach the conf and the log.
Comment 1 Timo Aaltonen 2007-04-25 08:23:40 UTC
Created attachment 9738 [details]
the log
Comment 2 Timo Aaltonen 2007-04-25 08:24:41 UTC
Created attachment 9739 [details]
conf
Comment 3 Timo Aaltonen 2007-04-25 08:27:18 UTC
It always defaults to 1280x768. I can get the native resolution from VGA output, but that has other issues; it could hang after a server restart, or start with a wrong resolution...

I was able to change the resolution via xrandr with a previous version of this driver (can't remember which one), but now it crashes the server (1.2.0).
Comment 4 Timo Aaltonen 2007-04-25 08:30:20 UTC
Oh, forgot to mention that this test was on Ubuntu 7.04 with intel-2.0.0
Comment 5 Jesse Barnes 2007-10-31 13:43:44 UTC
Weird.  Can you try a more recent driver version?  I've been using large resolutions on my 965 with an add-in DVI card for awhile now, no problems.
Comment 6 Timo Aaltonen 2007-11-16 06:33:05 UTC
Still the same with xserver 1.4.1pre and intel 2.1.99. Now the log doesn't even show any probed values.
Comment 7 Timo Aaltonen 2007-11-16 06:33:59 UTC
Created attachment 12598 [details]
log with 2.1.99
Comment 8 Hong Liu 2007-11-20 17:53:42 UTC
(In reply to comment #7)
> Created an attachment (id=12598) [details]
> log with 2.1.99
> 

Would you please turn on the modedebug option in the device section of your xorg.conf and repost the log?

Thanks,
Hong
Comment 9 Timo Aaltonen 2007-11-21 01:08:01 UTC
Created attachment 12665 [details]
log wit modedebug

Sure, here you go.
Comment 10 Hong Liu 2007-11-21 18:05:46 UTC
(In reply to comment #9)
> Created an attachment (id=12665) [details]
> log wit modedebug
> 
> Sure, here you go.
> 

It's weird I can't see any EDID data from your log file.

(II) intel(0): Not using default mode "1680x1050" (hsync out of range)
It seems your "1680x1050" is filtered out, but I can't find any hsync range info from your log.

Please try to use the latest driver and
1. move Option "monitor-TMDS-1" "Generic Monitor" to the Device section if you want to use the manually set sync range.
2. add Option "PreferredMode" "1680x1050" to your monitor section.

Thanks,
Hong


Comment 11 Timo Aaltonen 2007-11-27 23:47:45 UTC
Just adding the PreferredMode and monitor-TMDS-1 is not enough, I have to add the modeline to the Monitor-section. Then it works.
Comment 12 Stefan Dirsch 2007-11-28 00:42:17 UTC
Duplicate of Bug #10625 ?
Comment 13 Timo Aaltonen 2007-11-28 00:46:54 UTC
Could be, I'll build a new server and test.
Comment 14 Timo Aaltonen 2007-11-28 01:03:06 UTC
Actually no, since that patch is already in the Debian/Ubuntu xorg-server package.
Comment 15 Hong Liu 2007-11-28 01:21:43 UTC
Seaching in google, it seems the IBM T221 monitor is a very special one.
Only certain kinds of cards can work with this monitor (and IBM provides drivers for these cards).

It may explain that we can't probe the EDID data from this monitor.
Comment 16 Hong Liu 2007-11-28 01:23:49 UTC
Since you can workaround it with some xorg.conf hack, I am closing it now :)

Thanks,
Hong
Comment 17 Timo Aaltonen 2007-11-28 01:52:51 UTC
Oops, sorry.. this is a D221, not the über-expensive T221! :)
Comment 18 Timo Aaltonen 2007-11-28 02:07:02 UTC
Also, the monitor provides valid EDID over the d-sub cable, so why does the DVI addon-card fail to do so?
Comment 19 Timo Aaltonen 2007-11-28 14:43:05 UTC
I'll reopen this because the original information was not accurate. If you still think that the driver can't ever configure this monitor automatically, please close it again.

Tried 'xresprobe' on ubuntu, and somehow it manages to read the edid:

 # xresprobe intel
id: LEN D221 Wid
res: 1680x1680 1680x1050 1280x1024 1152x864 1024x768 832x624 800x600 720x400 640x480
freq: 30-83 50-76
disptype:
Comment 20 Hong Liu 2007-11-28 17:44:47 UTC
(In reply to comment #19)
> I'll reopen this because the original information was not accurate. If you
> still think that the driver can't ever configure this monitor automatically,
> please close it again.
> 
> Tried 'xresprobe' on ubuntu, and somehow it manages to read the edid:
> 
>  # xresprobe intel
> id: LEN D221 Wid
> res: 1680x1680 1680x1050 1280x1024 1152x864 1024x768 832x624 800x600 720x400
> 640x480
> freq: 30-83 50-76
> disptype:
> 

It seems xresprobe calls ddcprobe for probe, and ddcprobe uses video bios service to get edid data. Would you please attach the ddcprobe output?

I am not sure now why we can't get it from DVI add-on card :(
Comment 21 Michael Fu 2007-12-02 18:53:13 UTC
Timo, would you please attach ddcprobe output?
Comment 22 Timo Aaltonen 2007-12-04 00:51:57 UTC
Created attachment 12925 [details]
ddcprobe

Sorry, I was away for a couple of days. Here you go.
Comment 23 Jerone Young 2008-01-03 18:29:48 UTC
Created attachment 13502 [details]
Sam 243T & intel driver log
Comment 24 Jerone Young 2008-01-03 18:31:31 UTC
I am seeing this same problem when attaching my Samsung 243T (1920x1200) monitor to my Think pad T61 (with 965GM). It is stuck at max of 1280x1024 @ 75. It appears for some crazy reason it cannot read the EDID based on the xlogs. This only happens with the intel driver. Using the same monitor with the "nv" driver I have no problems.

I will attach my two logs, perhaps this can help in this issue.

xrandr_intel_samsung243T_BAD.txt <-- intel driver log
xrandr_nv_samsung_243T_WORKS.txt <-- nv driver log
Comment 25 Jerone Young 2008-01-03 18:32:01 UTC
Created attachment 13503 [details]
Sam 243T & nv driver log
Comment 26 Hong Liu 2008-01-06 18:30:48 UTC
(In reply to comment #23)
> Created an attachment (id=13502) [details]
> Sam 243T & intel driver log
> 

Would you please turn on the Modedebug option in Device section of your xorg.conf file and attach Xorg log and xorg.conf ?

Thanks,
Hong
Comment 27 Hong Liu 2008-01-13 23:10:29 UTC
Created attachment 13703 [details] [review]
correct setting dvi target input

Hi, Timo
Sorry for the long latency.

Would you please try this patch, and attach the xorg log with modedebug turned on?

Thanks,
Hong
Comment 28 Timo Aaltonen 2008-01-14 01:54:45 UTC
Created attachment 13706 [details]
logfile with modedebug

I added the patch on top of 2.2.0, but it still fails. See the log. I added HorizSync and VertRefresh values for the monitor, but they didn't help.
Comment 29 Hong Liu 2008-01-14 18:54:22 UTC
Thanks for trying the test patch.

Several questions:
1. Would you please try with other monitors to see if our driver can get edid data from these monitors. If can, at least our driver can work correctly with your addin SDVO card. It may be some specific timing issue with your IBM D221 monitor.

2. what is your daughter card? or where can I find the info for this card?

3. From the xorg log, 
(II) intel(0): I2C device "SDVOB DDC Bus:ddc2" registered at address 0xA0.
(II) intel(0): SDVO: W: 7A 02 (SDVO_CMD_SET_CONTROL_BUS_SWITCH)
(II) intel(0): SDVO: W: 7A 02 (SDVO_CMD_SET_CONTROL_BUS_SWITCH)
(II) intel(0): SDVO: W: 7A 02 (SDVO_CMD_SET_CONTROL_BUS_SWITCH)
(II) intel(0): SDVO: W: 7A 02 (SDVO_CMD_SET_CONTROL_BUS_SWITCH)
(II) intel(0): I2C device "SDVOB DDC Bus:ddc2" removed.

This is when our driver is trying to retrive the EDID data block for your monitor, but it fails for 4 times, and then driver gives up.
You can do some test to see if adding retry times can help?
(The code is in xserver/hw/xfree86/ddc/xf86DDC.c function: DDCRead_DDC2, you can modify the macro RETRIES in this file).

Thanks,
Hong
Comment 30 Timo Aaltonen 2008-01-15 01:37:27 UTC
(In reply to comment #29)
> Thanks for trying the test patch.
> 
> Several questions:
> 1. Would you please try with other monitors to see if our driver can get edid
> data from these monitors. If can, at least our driver can work correctly with
> your addin SDVO card. It may be some specific timing issue with your IBM D221
> monitor.

I've tried with Sun L194RH, and I do get a picture with it, but it's the same 1280x768 which is wrong, since it's a 4/3 monitor with 1280x1024 native resolution.

> 2. what is your daughter card? or where can I find the info for this card?

Seems to be Lenovo 73P2516 with a Conexant CX25904-12Z chip.

> 3. From the xorg log, 
> (II) intel(0): I2C device "SDVOB DDC Bus:ddc2" registered at address 0xA0.
> (II) intel(0): SDVO: W: 7A 02 (SDVO_CMD_SET_CONTROL_BUS_SWITCH)
> (II) intel(0): SDVO: W: 7A 02 (SDVO_CMD_SET_CONTROL_BUS_SWITCH)
> (II) intel(0): SDVO: W: 7A 02 (SDVO_CMD_SET_CONTROL_BUS_SWITCH)
> (II) intel(0): SDVO: W: 7A 02 (SDVO_CMD_SET_CONTROL_BUS_SWITCH)
> (II) intel(0): I2C device "SDVOB DDC Bus:ddc2" removed.
> 
> This is when our driver is trying to retrive the EDID data block for your
> monitor, but it fails for 4 times, and then driver gives up.
> You can do some test to see if adding retry times can help?
> (The code is in xserver/hw/xfree86/ddc/xf86DDC.c function: DDCRead_DDC2, you
> can modify the macro RETRIES in this file).

Ok, I'll try this later.
Comment 31 Hong Liu 2008-01-23 00:54:55 UTC
Created attachment 13875 [details] [review]
i2c bit output fix

Another test patch, would you please have a try?
Comment 32 Timo Aaltonen 2008-01-29 03:50:03 UTC
Created attachment 14008 [details]
logfile with the latest patch

finally got the machine up and running again, but it's still the same. Log attached..
Comment 33 Hong Liu 2008-01-31 22:12:46 UTC
(In reply to comment #32)
> Created an attachment (id=14008) [details]
> logfile with the latest patch
> 
> finally got the machine up and running again, but it's still the same. Log
> attached..
> 

Still got no luck :(

So what's the result of increasing the retry times I suggested in comment #29?

Thanks,
Hong
Comment 34 Timo Aaltonen 2008-02-04 07:53:33 UTC
I changed RETRIES to 10, but it didn't do any good :/
Comment 35 Hong Liu 2008-03-02 23:13:25 UTC
Created attachment 14779 [details] [review]
fix sdvo ddc bus selection

Hi, Timo

Would you please try this patch? Thanks for the help.

Hong
Comment 36 Timo Aaltonen 2008-03-02 23:42:09 UTC
thanks, tried it but still the same as before..
Comment 37 Hong Liu 2008-03-02 23:50:05 UTC
Would you please attach the xorg log with modedebug turned on?

Thanks,
Hong
Comment 38 Timo Aaltonen 2008-03-03 05:42:57 UTC
Created attachment 14785 [details]
new logfile
Comment 39 Michael Fu 2008-04-30 17:08:02 UTC
Timo, are you able to test the monitor on another machine? It sounds like an issue on the Lenovo 73P2516...
Comment 40 Michael Fu 2008-04-30 17:10:09 UTC
(In reply to comment #39)
> Timo, are you able to test the monitor on another machine? It sounds like an
> issue on the Lenovo 73P2516...
> 
sorry, what I mean is to test on a machine with intel graphic ( thus use intel graphic driver ).. it's better to be using the DVI interface as well.
Comment 41 Timo Aaltonen 2008-05-04 01:10:29 UTC
I'll try next week. There should be some Fujitsu-Siemens box that I'm able to test with. The monitors they have are working fine.
Comment 42 Timo Aaltonen 2008-05-13 03:40:08 UTC
Ok, the monitor works fine on a Fujitsu Esprimo E5915, which has a 965 chip in it, and some DVI addon card. Since the Sun monitor fails to work with the Lenovo addon card, I'd say the card is buggy. The mode can be forced via xorg.conf, so maybe just close this bug as invalid?

thanks for your efforts!
Comment 43 Michael Fu 2008-05-24 19:30:25 UTC
ok. thanks, Timo. I also got some confirm from HW vendor. 

Mark this bug as wont fix, as it's HW addon bug issue.


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.