[SuSE 11.4 -- 64bits] Resolution is decreased at boot

Greetings !!
It is four years now that I did gtf to optain the “modelines” and put them in the /etc/X11/xorg.conf file.
But now my monitor died (power issue) and I replaced by a Samsung 1920x1080 24’’ monitor.
The problem is that: each time I boot to Linux the resolution is decreased to the previous 1680x1050 resolution. I can change to 1920x1080 using the “Size & orientation system settings” but each time I reboot (or kill the startkde process) this resolution is lost !!

I tried to use the good’o technique using gtf (it said cvt is better in the man and /etc/X11/xorg.conf.d/50-monitor.conf) but I have strange issues with awfull displays and still not the right resolution.

cvt 1920 1080 returned:


# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

xrandr -q returned:

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
VGA-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 521mm x 293mm
   1920x1080      60.0*+
   1680x1050      60.0  
   1600x900       60.0  
   1280x1024      75.0     60.0  
   1440x900       59.9  
   1280x800       59.8  
   1152x864       75.0  
   1280x720       60.0  
   1024x768       75.1     70.1     60.0  
   832x624        74.6  
   800x600        72.2     75.0     60.3     56.2  
   640x480        72.8     75.0     66.7     60.0  
   720x400        70.1  
HDMI-0 disconnected (normal left inverted right x axis y axis)

…and the /var/log/Xorg.0.log gave me:

  1158.925] (II) RADEON(0): EDID vendor "SAM", prod id 2227
  1158.925] (II) RADEON(0): Using hsync ranges from config file
  1158.925] (II) RADEON(0): Using vrefresh ranges from config file
  1158.925] (II) RADEON(0): Printing DDC gathered Modelines:
  1158.925] (II) RADEON(0): Modeline "1920x1080"x0.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz)
  1158.925] (II) RADEON(0): Modeline "800x600"x0.0   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz)
  1158.925] (II) RADEON(0): Modeline "800x600"x0.0   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz)
  1158.925] (II) RADEON(0): Modeline "640x480"x0.0   31.50  640 656 720 840  480 481 484 500 -hsync -vsync (37.5 kHz)
  1158.925] (II) RADEON(0): Modeline "640x480"x0.0   31.50  640 664 704 832  480 489 492 520 -hsync -vsync (37.9 kHz)
  1158.925] (II) RADEON(0): Modeline "640x480"x0.0   30.24  640 704 768 864  480 483 486 525 -hsync -vsync (35.0 kHz)
  1158.925] (II) RADEON(0): Modeline "640x480"x0.0   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz)
  1158.925] (II) RADEON(0): Modeline "720x400"x0.0   28.32  720 738 846 900  400 412 414 449 -hsync +vsync (31.5 kHz)
  1158.925] (II) RADEON(0): Modeline "1280x1024"x0.0  135.00  1280 1296 1440 1688  1024 1025 1028 1066 +hsync +vsync (80.0 kHz)
  1158.925] (II) RADEON(0): Modeline "1024x768"x0.0   78.75  1024 1040 1136 1312  768 769 772 800 +hsync +vsync (60.0 kHz)
  1158.926] (II) RADEON(0): Modeline "1024x768"x0.0   75.00  1024 1048 1184 1328  768 771 777 806 -hsync -vsync (56.5 kHz)
  1158.926] (II) RADEON(0): Modeline "1024x768"x0.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz)
  1158.926] (II) RADEON(0): Modeline "832x624"x0.0   57.28  832 864 928 1152  624 625 628 667 -hsync -vsync (49.7 kHz)
  1158.926] (II) RADEON(0): Modeline "800x600"x0.0   49.50  800 816 896 1056  600 601 604 625 +hsync +vsync (46.9 kHz)
  1158.926] (II) RADEON(0): Modeline "800x600"x0.0   50.00  800 856 976 1040  600 637 643 666 +hsync +vsync (48.1 kHz)
  1158.926] (II) RADEON(0): Modeline "1152x864"x0.0  108.00  1152 1216 1344 1600  864 865 868 900 +hsync +vsync (67.5 kHz)
  1158.926] (II) RADEON(0): Modeline "1280x720"x60.0   74.48  1280 1336 1472 1664  720 721 724 746 -hsync +vsync (44.8 kHz)
  1158.926] (II) RADEON(0): Modeline "1280x800"x0.0   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync (49.7 kHz)
  1158.926] (II) RADEON(0): Modeline "1280x1024"x0.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz)
  1158.926] (II) RADEON(0): Modeline "1440x900"x0.0  106.50  1440 1520 1672 1904  900 903 909 934 -hsync +vsync (55.9 kHz)
  1158.926] (II) RADEON(0): Modeline "1600x900"x60.0  119.00  1600 1696 1864 2128  900 901 904 932 -hsync +vsync (55.9 kHz)
  1158.926] (II) RADEON(0): Modeline "1680x1050"x0.0  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync (65.3 kHz)

I tried to update the /etc/X11/Xorg.conf.d/50-monitor.conf based on the old example I had from the last monitor change:


   Section "Monitor"
   DisplaySize  479 299
   HorizSync    37-83
   Identifier   "Monitor[0]"
   ModelName    "MEDION MD30422PV"
   VendorName   "MEDION"
   VertRefresh  53-76
   UseModes     "Modes[0]"
 EndSection

 

 

 Section "Modes"

   Identifier   "Modes[0]"

  Modeline      "1680x1050" 147.14 1680 1784 1968 2256 1050 1051 1054 1087

   Modeline      "1600x1200" 178.95 1600 1712 1888 2176 1200 1201 1204 1246

   Modeline      "1280x1024" 141.82 1280 1376 1512 1744 1024 1025 1028 1070

   Modeline      "1280x1024" 130.17 1280 1368 1504 1728 1024 1025 1028 1066

   Modeline      "1280x1024" 120.01 1280 1368 1504 1728 1024 1025 1028 1063

   Modeline      "1280x1024" 108.88 1280 1360 1496 1712 1024 1025 1028 1060

 EndSection


…but I failed somewhere…

Here is the actual 50-monitor.conf file:

Section "Monitor"
  Identifier "Monitor[0]"
  # tried VGA-0
  
  
  ## If your monitor doesn't support DDC you may override the
  ## defaults here  
  #HorizSync 30-81  
  #VertRefresh 56-75

  # Tried with the data given in the Yast System Information (there were three stricly identical entries for this Monitor)

  #Option "Preferred Mode" "1920x1080"
  # Tried UseModes "Modes[0]"

  # Tried Section "Modes"
  # Identifier "Modes[0]"

  ## Add your mode lines here, use e.g the cvt (gtf) tool
  # 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
  Modeline "1920x1080"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
  # Tried EndSection

EndSection

How can I do to make the kde take the good “mode” (1920x1080) at each boot ?
I’m still diggin’ but it is about three hours now that I’m reading forum pages and I’m a little tired ^^

Thank you in advance !!

http://forums.opensuse.org/english/get-technical-help-here/hardware/470907-loss-resolution-intel-dg41rq-onboard-video-upgrade-opensuse-11-4-a-2.html#post2428138

This thread may solve the issue that is very similar…
I have to wait for a slooooow download to complete before killing xserver and try the suggestions.

nope… it hasn’t fixed anything…
still working on it and it is starting to get boring…

Hi soundlord

Since xrandr reports that 1920x1080 is available, (which is also confirmed by your Xorg.0.log), maybe it is as simple as editing /etc/X11/xorg.conf.d/50-screen.conf so that it looks like this

Section "Screen"
  Identifier "Default Screen"

  Device "Default Device"

  ## Doesn't help for radeon/radeonhd drivers; use magic in
  ## 50-device.conf instead
  Monitor "Default Monitor"
  SubSection "Display"
      Depth        24
      Modes        "1920x1080"
  EndSubSection

EndSection

BTW, Don’t forget to remove (or comment out) your previous changes.

The only thing that worked is a script pushed into ~/.kde4/Autostart with the command xrandr --output VGA-0 --mode 1920x1080…
But it is not really what I expected…
I put those directives in the 50-device.conf file:

Option     "UseEdid" "false"
Option         "ModeValidation" "NoEdidModes,NoVirtualSizeCheck"

But I’m still in 1680x1050… the old settings…
I have an headache and now I’ll go to bed, it’s hollyday time but I’m not a nolife ^^

The only thing that worked is a script pushed into ~/.kde4/Autostart with the command xrandr --output VGA-0 --mode 1920x1080…

That is the other common approach, but it kicks in later…

The other directives that you quoted can be checked within /var/log/Xorg.0.log for errors etc

Extracts from Xorg.0.log:

    13.158] (EE) Failed to load module "fglrx" (module does not exist, 0)
    13.158] (II) LoadModule: "radeonhd"
    13.159] (II) Loading /usr/lib64/xorg/modules/drivers/radeonhd_drv.so
    13.177] (II) Module radeonhd: vendor="AMD GPG"
    13.177]    compiled for 1.9.3, module version = 1.3.0
    13.177]    Module class: X.Org Video Driver
    13.177]    ABI class: X.Org Video Driver, version 8.0
    13.177] (II) LoadModule: "ati"
    13.178] (II) Loading /usr/lib64/xorg/modules/drivers/ati_drv.so
    13.187] (II) Module ati: vendor="X.Org Foundation"   
    13.187]    compiled for 1.9.3, module version = 6.14.0  
    13.187]    Module class: X.Org Video Driver
    13.187]    ABI class: X.Org Video Driver, version 8.0
    13.187] (II) LoadModule: "radeon"
    13.189] (II) Loading /usr/lib64/xorg/modules/drivers/radeon_drv.so
    13.216] (II) Module radeon: vendor="X.Org Foundation"
    13.216]    compiled for 1.9.3, module version = 6.14.0
    13.216]    Module class: X.Org Video Driver
    13.216]    ABI class: X.Org Video Driver, version 8.0

    13.269] (EE) FATAL: RadeonHD presently does not work with kernel modesetting (KMS).
Please disable KMS in your kernel.

(done by setting “yes” at the System → Kernel → no_kms_in_initrd (/etc/sysconfig) but I already did that a while ago it changed nothing)

I’m trying to gather informations to understand how the Xorg.conf.d directory is used… I’m not fully satisfied concerning the ~/.kde4/Autostart workaround… that sucks…

Is there a way to prevent the DDC information gathering ?
Where the XServer has stored the “old resolution” ?
How can the XServer decide to “fallback” in the old resolution (1680x1050) ?
The keys are located in the** 50-screen.conf** and 50-monitor.conf files… but there is no detailed informations concerning the directives and the usage of them.


    12.894] (==) Using config directory: "/etc/X11/xorg.conf.d"   
    13.002] (==) No Layout section.  Using the first Screen section.
    13.002] (**) |-->Screen "Default Screen" (0)
    13.002] (**) |   |-->Monitor "<default monitor>"
    13.003] (**) |   |-->Device "Default Device"
    13.003] (==) No monitor specified for screen "Default Screen".
        Using a default monitor configuration.

digging digging

You should either install fglrx properly (for example with atiupgrade) or remove the line

Driver fglrx

form your xorg.conf (or wherever you put it in the xorg.conf.d directory).

It’s very simple:

From my /var/log/Xorg.0.log:


   503.238] (==) Using config file: "/etc/X11/xorg.conf"
   503.238] (==) Using config directory: "/etc/X11/xorg.conf.d"
   503.238] (==) Using system config directory "/usr/share/X11/xorg.conf.d"

There used to be an option NoDCC, but it’s deprecated now. You should use “UseEDID” instead and set it to "FALSE. It helps on broken monitors.
I would first try the option “PreferredMode” in the monitor section of xorg.conf - or in 50-monitor.conf provided it is not already set in xorg.conf.

Example:

Section "Monitor"
  Identifier    "LGE2241"
  ModelName     "LG E2241T"
  VendorName    "GSM"
  HorizSync     30-83
  VertRefresh   56-75
  Option        "DPMS"
  **Option        "PreferredMode" "1920x1080"**
  #Option       "CalcAlgorithm" "XServerPool"
EndSection

But in most case, the Modes option in the Sceen section will do it:

Section "Screen"
  Identifier    "Screen kamala"
  Device        "HD3200"
  Monitor       "LGE2241"
  DefaultDepth  24
  SubSection "Display"
    Depth       24
  **  Modes       "1920x1080"             **
  EndSubsection
EndSection

Strange thing, I have 1920x1080 at the login scheme… but once at the desktop the resolution “turns” to 1680x1050.
What I want to understand is the importance of the directives like Monitor, Device… and where I could find the correct data to put in brackets.
I use Hardware Information from Yast…
For example, does the directive Device “HD3200” matches with the Device Name in Hardware Information → Display ? Monitor “LGE2241” matches with Hardware Information → Monitor ?
In this case I have three stricly identical entries under the leaf Monitor. I don’t know why.

What this warning means ?

## Doesn't help for radeon/radeonhd drivers; use magic in
  ## 50-device.conf instead

This is what I have in the Xorg.0.log:


    13.872] (==) No Layout section.  Using the first Screen section.
    13.872] (**) |-->Screen "Screen0" (0)
    13.872] (**) |   |-->Monitor "<default monitor>"
    13.873] (==) No device specified for screen "Screen0".
        Using the first device section listed.
    13.873] (**) |   |-->Device "Default Device"
    13.873] (==) No monitor specified for screen "Screen0".
        Using a default monitor configuration.
    13.873] (==) Automatically adding devices
    13.873] (==) Automatically enabling devices

This is the Xord.conf.d content:


Section "Device"
  Identifier "radeonhd"

  #Driver "radeonhd"

  ## Required magic for radeon/radeonhd drivers; output name
  ## (here: "DVI-0") can be figured out via 'xrandr -q'
  #Option "monitor-DVI-0" "Default Monitor"

Option "UseEdid" "false"
#Option "ModeValidation" "NoEdidModes,NoVirtualSizeCheck"

EndSection

Section "Monitor"
  Identifier "S24B300"
  
  ## If your monitor doesn't support DDC you may override the
  ## defaults here
  #HorizSync 30-81
  #VertRefresh 56-75

  Option "PreferredMode" "1920x1080"  

    ## Add your mode lines here, use e.g the cvt (gtf) tool
    # 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
    Modeline "1920x1080"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
EndSection

Section "Screen"
  Identifier "Screen0"

  Device "radeonhd"
  Monitor "S24B300"

  ## Doesn't help for radeon/radeonhd drivers; use magic in
  ## 50-device.conf instead
  SubSection "Display"
      Depth          24          
      Modes         "1920x1080"         
  EndSubSection      
EndSection

Is that seem correct ?

What this message means ?


...
    14.898] (II) RADEON(1): Using user preference for initial modes
    14.898] (II) RADEON(1): Output VGA-0 using initial mode 1920x1080
...
    14.914] (II) RADEON(0): RandR 1.2 enabled, ignore the following RandR disabled message.
    14.914] (WW) RADEON(0): Option "UseEDID" is not used
    14.914] (WW) RADEON(0): Option "PreferredMode" is not used
...

I put both “Options” at the right place but it seems nothing was taken in count…

No. Because the names you use in xorg.conf are arbitrary ( = up to you). You can use the identifiers you like for Device (graphics card) and Monitor. In automatically generated xorg.conf, you will often see Device0 and Monitor0. But the Identifiers have to match the Device and Monitor in the screen section (as in your example and in mine).

You’re missing a layout section. Thus it uses the first (an only in your case) Screen section.

Do you have a good reason for using the radeon driver? (You might).
What’s the model of your ATI card?

I never had issues with the driver since the beginning (I bought this motherboard in 2009 if I remember right) and it has always worked good.
I’m just a little disappointed to first boot in 1680x1050 and then with a script in Autostart jump to 1920x1080… that sucks…
I verified when the system is booting (once I choosed SuSE in the grub menu) the resolution switches from 1024x768 to 1920x1080 untill I log on with my user account.
In run level 3 I got 1920x1080… (I will try startx from run level 3)
Using ALT-CTRL-F1 the resolution is 1920x1080… it is only in kde that I have to change manually or use a script to get the optimal resolution.

My card is a radeon hd 3200 on a amd chipset.

To make it simple, I would comment out everything in /etc/X11/xorg.conf.d/*, so you know that X is using the Device, Monitor, Screen and layout settings from xorg.conf. Also try to comment out this line in the monitor section:

UseModes     "Modes[0]"

See if it makes a difference. It might solve the problem … or be worse. In fact, modelines are rarely needed under Linux … but I don’t use the radeon driver (I recall that I had to use modelines with this driver under Unix though).

I have this card too and use Catalyst 12.4 (12.6 wouldn’t work, but 12.6 legacy beta would). I have 1920x1080 without tweaking under X … but not in console, because fglrx can not use kernel mode setting (unlike the radeon driver).

Thank you… I was believeing as the actual driver could handle the 1920x1080 resolution I could handle this without installing another driver… it works with Catalyst…