Problem with resolution

Hi,

I have an annoying problem. In one of ten cases, a screen switches into a strange mode -lower resolution and everything moved right with a black stripe on the left side. After logging in and out everything goes back to normal.

In the strange mode xrandr gives:

Screen 0: minimum 320 x 200, current 1024 x 768, maximum 4096 x 4096
VGA-0 connected 1024x768+0+0 (normal left inverted right x axis y axis) 376mm x 301mm
   1280x1024      60.0 +   75.0  
   1152x864       75.0  
   1024x768       85.0     75.1     70.1     60.0* 
   832x624        74.6  
   800x600        85.1     72.2     75.0     60.3     56.2  
   640x480        85.0     72.8     75.0     66.7     60.0  
   720x400        70.1  
DVI-0 disconnected (normal left inverted right x axis y axis)
S-video disconnected (normal left inverted right x axis y axis)

while normal mode looks like this:

Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 4096 x 4096
VGA-0 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 376mm x 301mm
   1280x1024      60.0*+   75.0  
   1152x864       75.0  
   1024x768       85.0     75.1     70.1     60.0  
   832x624        74.6  
   800x600        85.1     72.2     75.0     60.3     56.2  
   640x480        85.0     72.8     75.0     66.7     60.0  
   720x400        70.1  
DVI-0 disconnected (normal left inverted right x axis y axis)
S-video disconnected (normal left inverted right x axis y axis)

I have no idea what’s wrong and how i can fix it. Any clues would be welcome.

my system: OpenSuSe 11.3
graphics: ATI Radeon 9550

You can encourage Xorg to always use the preferred resolution by adding a section to xorg.conf (or 50-monitor.conf) like this:

Section "Monitor"
   Identifier "LVDS"
   Option "Preferred Mode" "1280x800"
EndSection

Use the relevant identifier for your display. This can be obtained via var/log/Xorg.0.log or with the ‘xrandr’ command in a terminal). Usually /etc/X11/xorg.conf doesn’t exist, but one can be created if necessary. Alternatively, make the necessary adjustments to /etc/X11/xorg.conf.d/50-monitor.conf. Refer to this thread for more info:

(http://forums.opensuse.org/english/get-help-here/hardware/442615-i-cant-change-screen-resolution-suse-11-3-a.html)

Thanks a lot for your quick answer. I modified the 50-monitor.conf file which in my case looks like this:


Section "Monitor"
  Identifier "VGA-0"
  Option "Preferred Mode" "1280x1024"
  VertRefresh 75.0
EndSection

It took me a couple of days to test it, because as I wrote the issue happens sometimes. Unfortunately, it doesn’t solve the problem. Today, again X started in the strange mode with the black strip. It seems that xorg.conf is ignored and xrandr gives:


Screen 0: minimum 320 x 200, current 1024 x 768, maximum 4096 x 4096
VGA-0 connected 1024x768+0+0 (normal left inverted right x axis y axis) 376mm x 301mm
   1280x1024      75.0 +
   1152x864       75.0  
   1024x768       75.1  
   832x624        74.6  
   800x600        75.0  
   640x480        75.0  
DVI-0 disconnected (normal left inverted right x axis y axis)
S-video disconnected (normal left inverted right x axis y axis)                                                       
  1024x768 (0x54)   65.0MHz                                                                                           
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock   48.4KHz
        v: height  768 start  771 end  777 total  806           clock   60.0Hz


Any ideas what else I can check/try?