Bug 117290

Summary: sax configures Dell 2001fp with invalid mode
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Jeff Mahoney <jeffm>
Component: YaST2Assignee: Marcus Schaefer <ms>
Status: RESOLVED FIXED QA Contact: Klaus Kämpf <kkaempf>
Severity: Normal    
Priority: P5 - None    
Version: RC 4   
Target Milestone: ---   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: y2logs
Working xorg.conf
Broken xorg.conf

Description Jeff Mahoney 2005-09-15 18:02:20 UTC
I just installed 10.0rc4 on my every day workstation, and ran across a pretty
serous problem. The installation proceeded normally in every respect until it
tried to start up KDM to login. My Dell 2001fp responded with a "Cannot display
this mode" error, using a completely stock configuration.

The Dell 2001fp is a fairly common display, and the modelines for 1600x1200,
1280x1024, and 1024x768 didn't work. I didn't try anything below that. "sax2
-rx" resulted in a working configuration after a bit of tweaking, after
selecting "LCD -> 1600x1200@60Hz." Selecting the Dell 2001fp always resulted in
an invalid configuration.

I'm using a Matrox G400DH to drive the display. I'll attach the logs and
xorg.conf's.
Comment 1 Jeff Mahoney 2005-09-15 18:05:30 UTC
Created attachment 50059 [details]
y2logs
Comment 2 Jeff Mahoney 2005-09-15 18:06:02 UTC
Created attachment 50060 [details]
Working xorg.conf
Comment 3 Jeff Mahoney 2005-09-15 18:06:23 UTC
Created attachment 50061 [details]
Broken xorg.conf
Comment 4 Marcus Schaefer 2005-09-16 11:38:27 UTC
I assume the data in the CDB is wrong. If you don't mind send me a  
specification of your monitor. I'm interested in the hsync/vsync ranges 
mostly 
 
Thanks 
Comment 5 Jeff Mahoney 2005-09-16 13:53:05 UTC
The specs in the CDB match the published specs for the display.

Also, here's the hwinfo --monitor output:
31: None 00.0: 10000 Monitor
  [Created at monitor.87]
  Unique ID: rdCR.+37mxeac05A
  Hardware Class: monitor
  Model: "DELL 2001FP"
  Vendor: DEL "DELL"
  Device: eisa 0xa007 "DELL 2001FP"
  Serial ID: "C064648L1J5L"
  Size: 41x31 cm
  Resolution: 720x400@70Hz
  Resolution: 640x480@60Hz
  Resolution: 640x480@75Hz
  Resolution: 800x600@60Hz
  Resolution: 800x600@75Hz
  Resolution: 1024x768@60Hz
  Resolution: 1024x768@75Hz
  Resolution: 1280x1024@75Hz
  Resolution: 1280x1024@60Hz
  Resolution: 1600x1200@60Hz
  Resolution: 1152x864@75Hz
  Driver Info #0:
    Max. Resolution: 1600x1200
    Vert. Sync Range: 56-76 Hz
    Hor. Sync Range: 31-80 kHz
  Config Status: cfg=new, avail=yes, need=no, active=unknown

Xorg.0.log contains the following lines with respect to 1600x1200:
(**) MGA(0): *Mode "1600x1200": 161.0 MHz, 74.5 kHz, 60.0 Hz
(II) MGA(0): Modeline "1600x1200"  160.96  1600 1704 1880 2160  1200 1201 1204 1242

Xorg.99.log.old contains:
(**) MGA(0): *Mode "1600x1200": 173.4 MHz, 79.7 kHz, 64.0 Hz
(II) MGA(0): Modeline "1600x1200"  173.38  1600 1712 1888 2176  1200 1201 1204 1245

Using a 64 Hz refresh rate on this display will result in an unusable mode.
Comment 6 Marcus Schaefer 2005-09-16 13:55:45 UTC
but 64 Hz is within the spec this display reported. this is correct 
what is wrong ?? 
Comment 7 Jeff Mahoney 2005-09-16 14:04:51 UTC
I think it's that the max rate it can support 1600x1200 at is 60 Hz.
Comment 8 Marcus Schaefer 2005-09-16 14:15:57 UTC
what a piece of crappy hardware :) I would like to ask you if you  
can do a test for me because I'm not aware of the hardware. There is   
a file called:  
  
  /usr/share/sax/api/data/cdb/Monitors  
  
please open the file for writing (root user) and search for the string  
  
  2001FP  
  
if you have found the model please change the vsync value from  
  
  Vsync=56-76  
  
to  
  
  Vsync=56-60  
  
save the file and restart sax with the following command:  
  
  sax2 -r  
  
does it fix the problem ?  
Thanks 
Comment 9 Jeff Mahoney 2005-09-16 14:35:53 UTC
Yes, it fixes the problem. I'm curious, though, why the display was detected ok
with 9.3 and not 10.0.
Comment 10 Marcus Schaefer 2005-09-17 11:22:04 UTC
Thanks for testing and yes it is curious ;) 
I checked in the following patch: 
 
Index: Monitors 
=================================================================== 
--- Monitors    (revision 860) 
+++ Monitors    (working copy) 
@@ -1,7 +1,7 @@ 
 # /.../ 
 # Copyright (c) 2001 SuSE GmbH Nuernberg, Germany.  All rights reserved. 
 # 
-# Author: Marcus Schaefer <sax@suse.de>, Tue Sep 13 08:45:10 2005 
+# Author: Marcus Schaefer <sax@suse.de>, Sat Sep 17 13:21:00 2005 
 # 
 # Template for monitor data 
 # -------------------------- 
@@ -9317,7 +9317,7 @@ 
  Option=DPMS 
  Hsync=31-80 
  Resolution=1600x1200 
- Vsync=56-76 
+ Vsync=56-60 
 }