Bug 450613

Summary: RANDR 1.2: Screen Resolution can not be set
Product: [openSUSE] openSUSE 11.1 Reporter: Jason steele <orodreth.finarfin>
Component: X.OrgAssignee: Matthias Hopf <mhopf>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <xorg-maintainer-bugs>
Severity: Major    
Priority: P3 - Medium CC: sndirsch
Version: RC 1   
Target Milestone: ---   
Hardware: x86-64   
OS: SUSE Other   
Whiteboard:
Found By: Community User Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: xorg.conf and Xorg.0.log
Xrandr -q before and xrandr -q after adding monitor-vga2
Sax.0.log after monitor-VGA2 to xorg.conf

Description Jason steele 2008-12-01 20:34:01 UTC
Created attachment 257062 [details]
xorg.conf and Xorg.0.log 

I'm using Sax2 (gui and cli versions) to specify the correct monitor resolution desired (1680x1050@60) but Sax2 test only displays test for 1280x1024@60 and the desktop resolution is only 1024x780.  

Sax2 correctly writes a valid xorg.conf but no matter what it describes the
desktop is still a maximum of 1024x768.  This occurs with and without DPMS enabled.

My nVidia card and monitor combination did require some work to get to the
correct settings under 10.3 but those settings xorg settings are not working
under 11.1 RC1.  The LCD is connected via analog connection but the settings
are correctly adjusted and set for Opensuse 11.0 (ATI card) and were correctly set  for Opensuse 10.3 (nVidia Gf8600 car).  

Also could not compile the nVidia proprietary driver.

From /var/log/sax.log with 1680x1050 modelines:
30-Nov 18:52:07 <I> [ Sysp: XStuff detection data
        Card0     =>  DDC        : <undefined>
        Card0     =>  Name       : Monitor
        Card0     =>  Vendor     : Generic
        Card0     =>  Primary    : 02-00-0
        Card0     =>  Chipset    : <undefined>
        Card0     =>  Vsync      : 61
        Card0     =>  Hsync      : 48
        Card0     =>  Vesa       : 1024 768 47 60
        Card0     =>  FbTiming   : "1024x768" 62.35 1024 1056 1184 1312 768 772
776 792 -HSync -VSync 
        Card0     =>  Dacspeed   : 220
        Card0     =>  Modeline   : <undefined>
        Card0     =>  Memory     : 4096
        Card0     =>  RandR      : <undefined>
        Card0     =>  Current    : 02-00-0
        Card0     =>  RawDef     : None
        Card0     =>  Option     : None
        Card0     =>  Extension  : None
        Card0     =>  Module     : nv
        Card0     =>  Display    : CRT
        Card0     =>  VesaBios   : 3.0
        Card0     =>  FBBoot     : 800 600 8 771
        Card0     =>  FBBoot     : 800 600 16 788
        Card0     =>  FBBoot     : 800 600 24 789
        Card0     =>  FBBoot     : 1024 768 8 773
        Card0     =>  FBBoot     : 1024 768 16 791
        Card0     =>  FBBoot     : 1024 768 24 792
        Card0     =>  FBBoot     : 1280 1024 8 775
        Card0     =>  FBBoot     : 1280 1024 16 794
        Card0     =>  FBBoot     : 1280 1024 24 795
        Card0     =>  FBBoot     : 1280 800 8 864
        Card0     =>  FBBoot     : 1280 800 24 865
        Card0     =>  FBBoot     : 1400 1050 24 841
        Card0     =>  FBBoot     : 1400 1050 8 839
        Card0     =>  FBBoot     : 1400 1050 16 840
        Card0     =>  FBBoot     : 1440 900 8 868
        Card0     =>  FBBoot     : 1440 900 24 869
        Card0     =>  FBBoot     : 1600 1200 8 837
        Card0     =>  FBBoot     : 1600 1200 24 842
        Card0     =>  FBBoot     : 1600 1200 16 838
        Card0     =>  FBBoot     : 1680 1050 8 872
Comment 1 Matthias Hopf 2008-12-03 16:08:46 UTC
Please post the output of 'xrandr -q'.

Also, please describe the outputs of your card exactly. Apparently the driver cannot detect the DDC information of the monitor correctly. Please verify that the VGA cable has *all* pins connected, and not some pins missing.

As a workaround, you can add

  Option "monitor-VGA2" "Monitor[0]"

to the "Device" section of the xorg.conf. That's the output your monitor is connected to according to your log file. You might need to remove the
  Monitor      "Monitor[0]"
in the "Screen" section as well.
Comment 2 Jason steele 2008-12-03 17:57:59 UTC
Created attachment 257787 [details]
Xrandr -q before and xrandr -q after adding monitor-vga2
Comment 3 Matthias Hopf 2008-12-05 16:36:13 UTC
Please attach the logfile after adding monitor-vga2.

You could also try adding

# 1680x1050 59.95 Hz (CVT 1.76MA) hsync: 65.29 kHz; pclk: 146.25 MHz
Modeline "1680x1050"  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync

to the "Modes" section. Though I doubt that this actually helps, 1680x1050 should be in the default pool.
Comment 4 Jason steele 2008-12-05 20:17:23 UTC
Created attachment 258389 [details]
Sax.0.log after monitor-VGA2 to xorg.conf

This is the last Sax.0.log after adding Option "monitor[0]" "Monitor-VGA2" to xorg.conf.   Resolution was boosted to 1600x1200@60 after adding that option.  

The driver recognizes the LCD monitor and correctly sets the 1650x1050@60 resolution when the monitor is attached via the DVI connector.  When the monitor connection is changed to use the D15 connector the driver resets from the correct resolution to a 1024x768@50 resolution.  When that change occurs no changes to Sax2 or xorg.conf changes the resolution, except the recent addition of the option "monitor-VGA2" changed the resolution to a tolerable 1600x1200@60 but not to the desired resolutions.   The nVidia proprietary driver I used in 10.3 allowed and kept the correct screen resolution changes made in xorg.conf. 

The Modeline in Modes section doesn't work at all, even after removing v/hsync.
Comment 5 Matthias Hopf 2008-12-08 15:28:53 UTC
Ok, randr is apparently really messing up modes. The issue is we weren't able to reproduce here so far. The more setups that fail we get notice of the higher the chance we're at some point of time able to reproduce.
Comment 6 Stefan Dirsch 2008-12-15 14:05:18 UTC
So this is not a SaX2 issue.
Comment 7 Stefan Dirsch 2008-12-28 04:15:57 UTC

*** This bug has been marked as a duplicate of bug 448377 ***