Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 08-16-06, 09:32 PM   #1
uOpt
FreeBSD cheering section
 
uOpt's Avatar
 
Join Date: Nov 2004
Location: Boston, MA, USA
Posts: 609
Default How do I restore original resolution after a fullscreen dumb app changed it?

I started a wine program which tried to get fullscreen at a specific resolution. It crashed after setting the resolution of the display from 1920x1200 to 1024x768.

In the past I know that I could go back to 1920x1200 with Control-Alt-"-".

However, that does not work anymore. Control-Alt-"+" and Control-Alt-"-" do work and switch fine but "-" only goes up to the resolution that the game set, not to what I have configured in the x11 server.

What I need is a commandline program to say "apply modeline 1920x1200dell3". What I have is a little commandline tool for XF86VidModeSwitchMode(3), but that only does the same thing as Control-Alt-"-/+", via the "zoom" argument.

I suppose I can just use XF86VidModeSwitchToMode(3) to do what I want, but it only seems to take a full modeline with all numbers which is not sportish. Is there a similar call that can use the symbolic name from xorg.conf?

Any magic switch I overlooked?
__________________

My Unix benchmark results

Last edited by uOpt; 08-16-06 at 10:34 PM.
uOpt is offline   Reply With Quote
Old 08-16-06, 10:17 PM   #2
AaronP
NVIDIA Corporation
 
AaronP's Avatar
 
Join Date: Mar 2005
Posts: 2,487
Default Re: How do I restore original resoltion after a fullscreen dumb app changed it?

Try xvidtune -next and xvidtune -prev.
AaronP is offline   Reply With Quote
Old 08-16-06, 10:24 PM   #3
uOpt
FreeBSD cheering section
 
uOpt's Avatar
 
Join Date: Nov 2004
Location: Boston, MA, USA
Posts: 609
Default Re: How do I restore original resoltion after a fullscreen dumb app changed it?

Quote:
Originally Posted by AaronP
Try xvidtune -next and xvidtune -prev.
Same as Control-Alt-"-". It only allows me to go back to where the crashed app set the resolution. After that, silently ignored.

As I mentioned, I know this used to work last time I played with wine (I should know better...), I dunno what broke it.

%%

I have since then composed a video mode and call XF86VidModeSwitchToMode(3) directly, but I get
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 135 (XFree86-VidModeExtension)
Minor opcode of failed request: 10 (XF86VidModeSwitchToMode)

[I am sure I got the right parameters, even though the manpage should have mentioned that the clock is in KHz).
__________________

My Unix benchmark results
uOpt is offline   Reply With Quote
Old 08-16-06, 10:36 PM   #4
uOpt
FreeBSD cheering section
 
uOpt's Avatar
 
Join Date: Nov 2004
Location: Boston, MA, USA
Posts: 609
Default Re: How do I restore original resoltion after a fullscreen dumb app changed it?

Duh.

The GNOME "gnome-display-properties" did it.

Now I want to know what exactly that one is doing that I didn't

I have a suspicion that it was GNOME who upward locked the display in first place. Because the desktop was not panning, GNOME has readjusted itself to the new resolution.
__________________

My Unix benchmark results
uOpt is offline   Reply With Quote
Old 08-17-06, 02:31 AM   #5
AaronP
NVIDIA Corporation
 
AaronP's Avatar
 
Join Date: Mar 2005
Posts: 2,487
Default Re: How do I restore original resoltion after a fullscreen dumb app changed it?

Try using xrandr.
AaronP is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:59 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.