After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 170292 - Resolution won't reset after a game changes it and crashes
Resolution won't reset after a game changes it and crashes
Status: RESOLVED NOTGNOME
Product: gnome-control-center
Classification: Core
Component: Display
2.10.x
Other All
: Normal minor
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
: 507556 (view as bug list)
Depends on:
Blocks: randr-tracker
 
 
Reported: 2005-03-14 09:32 UTC by Scott Ritchie
Modified: 2010-12-07 16:12 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Scott Ritchie 2005-03-14 09:32:26 UTC
Please describe the problem:
When playing a game that changes the resolution on you (say, Neverwinter
Nights), sometimes they crash and drop you back to the desktop.  This leaves you
in a resolution that wasn't what you had before launching the game, although you
have a virtual desktop of your old resolution that you can scroll around.

Going to the screen resolution switch applet uncovers this bug.

Steps to reproduce:
1. Play a game like Neverwinter Nights which changes the screen resolution and
have it crash on you.
2. Notice your virtual desktop is 1600x1200 but the displayed resolution is lower.
3. Try and switch resolution to 1600x1200, click apply, and have nothing happen


Actual results:
Nothing happens, probably because of code that says not to do anything if this
is the "current" resolution.

Expected results:
The screen resolution should switch to 1600x1200, just like what happens if I
set the resolution to something else and then BACK to 1600x1200 (a workaround).

Does this happen every time?
Yes

Other information:
Comment 1 Sebastien Bacher 2005-08-13 22:36:21 UTC
Thanks for your bug. The capplet only writes the configuration to gconf,
reassigning the bug.
Comment 2 Vincent Untz 2006-07-28 15:13:44 UTC
The resolution capplet does use randr to change the resolution. So if there's a bug, it's either in the capplet or in xrandr.
Comment 3 Luca Cavalli 2006-07-28 20:25:00 UTC
Scott,
please, after a crash of your game try opening a terminal and run the xrandr command, then look at the list of resolutions. Find the line starting with an '*', which is your current resolution, and run a second time xrandr, but with the -s X option, where X is the SZ parameter of the line with the asterisk (the first parameter, look at the list and you will understand :). Then tell us if this fixes your screen resolution, in this case the problem is with the if check inside the apply_config function in Screen Resolution Preferences.
Comment 4 Jens Granseuer 2007-12-12 14:09:28 UTC
This seems to be a (ancient and known) bug in xrandr. The xrandr command line app doesn't switch either, and there is apparently no way for an application to tell those two resolutions apart, ie. a 1024x768 desktop with a 1024x768 viewport is exactly the same as a 1024x768 desktop with an 800x600 viewport (which is what happens when an app that changed the resolution quits without restoring state).
Comment 5 Jens Granseuer 2008-01-22 16:38:05 UTC
*** Bug 507556 has been marked as a duplicate of this bug. ***
Comment 6 Denis Washington 2008-01-28 12:50:42 UTC
Doesn't this mean that the bug is NOTGNOME?
Comment 7 Jens Granseuer 2008-01-28 19:34:35 UTC
Yes and no. Right now, we're depending on xrandr to be fixed, but when that's done, we probably need to adapt.
Comment 8 Bastien Nocera 2010-12-07 16:12:49 UTC
You cannot use viewports with more recent versions of XRandR, so "problem solved", in a way.