Forums » Linux

Screen resolution issue

Feb 12, 2009 Jonnycat26 link
Hola.

I normally have my desktop set to 1440x900, and I usually like to game at 1024x768. I've found that, for whatever reason, when I exit VO, it doesn't reset my monitor the the proper resolution. Instead, I've got a 'virtual' 1440x900 on a 1024x768 (think of a scrolling desktop, and you have the picture).

I fixed this by just running the game at 1440x900, but was wondering if this was going to be addressed at any point?
Feb 12, 2009 darkgrey link
I run at my desktop at 1920x1200 and have played the game at lower resolutions. When exiting the game my display was always put back to the correct 1920x1200 resolution.

I'm using the ATI fglrx driver.

What video driver are you using?
Does this problem happen with any other programs?

I have seen this problem in the past but not recently and not with VO.
Feb 12, 2009 Jonnycat26 link
I too am using the ATI fglrx driver, the 9-1 release.

I do see the same problem with Doom3 (but not UT2004), and I have occasionally (but rarely) had the same problem with some games that I run under Wine.
Feb 12, 2009 darkgrey link
I'm using the ati-driver-installer-8-12-x86.x86_64.run drivers. I had a few performance issues (see my post in "ATI Drivers") with the ati-driver-installer-9-1-x86.x86_64.run drivers but my screen resolution would always return back to normal after closing VO.

I'm not sure what the issue could be here. Perhaps we could compare our xorg.conf files. I'll try and remember to post it when I get home.

What flavour of linux are you using?
What about your desktop - KDE, Gnome?
I'm using Gentoo and Gnome.
Feb 12, 2009 Jonnycat26 link
I'll post mine when I get home as well.

I'm using OpenSuse 11.1 and KDE 4.2.
Feb 12, 2009 darkgrey link
A quick hack would be to modify the vendetta script to call xrandr when VO closes.

Or create a desktop icon to quickly reset your desktop back to the correct size.
http://www.cyberciti.biz/tips/linux-resize-screen-size-quickly.html
Feb 12, 2009 mr_spuck link
Do you get this friendly error as well?

X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 136 (XFree86-VidModeExtension)
Minor opcode of failed request: 10 (XF86VidModeSwitchToMode)
Value in failed request: 0xe00002
Serial number of failed request: 84
Current serial number in output stream: 85

This seems to happen if I change the resolution with xrandr. I guess the resolution changing thingy in kde will trigger this too. The game crashes when it tries to change the resolution.
If I leave the desktop at the default resolution it works fine.

You could make a script that automatically calls xrandr when the game quits. That way you avoid having to click on that launcher

something like:

#!/bin/sh
~/bin/vendetta
xrandr -s 1920x1200 # or whatever your resolution is
Feb 13, 2009 darkgrey link
Below is a snippet from my xorg.conf. It defines two monitors but I generally don't plug in the second monitor.

Do you have Xinerama turned on?
Option "Xinerama" "true"

A quick google found me a few sites. I'm not sure how useful they'll be.
http://www.mail-archive.com/kvm-devel@lists.sourceforge.net/msg02255.html
http://www.freelists.org/post/argyllcms/another-X-error,3
http://forum.sabayonlinux.org/viewtopic.php?f=43&t=10047
http://forums.gentoo.org/viewtopic-t-363518-highlight-major+opcode+request+136+xfree86vidmodeextension.html

Section "ServerFlags"
Option "AllowMouseOpenFail" "true"
Option "DefaultServerLayout" "LCD CRT"
Option "AIGLX" "false"
EndSection

Section "ServerLayout"
Identifier "LCD CRT"
Screen 0 "Screen0" 0 0
Screen "Screen2" LeftOf "Screen0"

InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Touchpad" "CorePointer"

Option "StandbyTime" "2" # Turn off the screen after x minutes (DPMS)
Option "SuspendTime" "5" # Full Suspend
Option "OffTime" "10" # Turn off
EndSection

Section "Module"
Load "record"
Load "extmod"
SubSection "extmod"
Option "omit xfree86-dga"
EndSubSection
Load "dbe"
Load "dri"
Load "xtrap"
Load "freetype"
Load "type1"
EndSection

Section "Monitor"
DisplaySize 330 210 # mm
Identifier "LCD"
VendorName "LPL"
ModelName "0"
Option "FlatPanelProperties" "Scaling=Centered"
Option "dpms" "true"
EndSection

Section "Monitor"
Identifier "TV"
Option "dpms" "true"
DisplaySize 433 351
EndSection

Section "Device"
Identifier "Card0"
Driver "fglrx"
Option "DRI" "true"
Option "XAANoOffscreenPixmaps" "true"
Option "XAANoOffscreenPixmaps" "false"
Option "TexturedVideo" "True"
Option "TexturedVideoSync" "True"
Option "UseFastTLS" "1"
Option "Textured2D" "off"
Option "TexturedXRender" "off"
Option "BackingStore" "on"
Option "VideoOverlay" "On" # OFF
Option "OpenGLOverlay" "On" # OFF
Option "OverlayOnCRTC2" "1" #http://ubuntuforums.org/showthread.php?t=249846&page=5
Option "TVStandard" "VIDEO"
Option "TVFormat" "PAL-I"
Option "TVOverscan" "off" # on does work but we miss sides of the screen
Option "EnableMonitor" "lvds,crt1"
BusID "PCI:1:0:0"
EndSection

Section "Device"
Identifier "Card2"
Driver "fglrx"
BusID "PCI:1:0:0"
Screen 1
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "LCD"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

Section "Screen"
Identifier "Screen2"
Device "Card2"
Monitor "CRT"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

Section "dri"
Mode 0666
EndSection

[hmm, I'm not sure how to format the above correctly on this forum]