Game won't go fullscreen

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
GameKyuubi
Level 1
Level 1
Posts: 9
Joined: Mon Jan 26, 2009 11:56 am

Game won't go fullscreen

Post by GameKyuubi »

Alright. So I'm trying to play a game in fullscreen mode but it keeps getting forced into a 640x480 box in the corner of my main monitor. I've got a dual-head NVIDIA card (7900GT) hooked up to two monitors via DVI with TwinView and I'm running Ibex 8.10, KDE 4.1.4.

I've run it in the terminal and I get errors referencing XRandR and how it doesn't have 640x480 @60 listed as a valid mode. So I added 640x480 @60 and now I get "err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?". I don't understand what's stopping the resolution from changing. I'm 100% sure both of my monitors support that resolution. Maybe it has something to do with TwinView? After adding the resolution, this is what

Code: Select all

xrandr
has to say about my supported modes:

Screen 0: minimum 640 x 480, current 3200 x 1200, maximum 3200 x 1200
default connected 3200x1200+0+0 0mm x 0mm
3200x1200 50.0*
640x480_60.00 60.0

3200x1200 is the faux resolution used for my dual-screen setup, I'm assuming, but even then it should be ~60Hz, not 50... So I guess I have two questions: what's going on here, and how do I fix it?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Game won't go fullscreen

Post by vitamin »

GameKyuubi wrote:how do I fix it?
Fix your xorg.conf to list all the modes you need.
GameKyuubi
Level 1
Level 1
Posts: 9
Joined: Mon Jan 26, 2009 11:56 am

Post by GameKyuubi »

I might have added them in the wrong place, but it seems that whenever I add modes to xorg.conf, xrandr completely ignores them. Do I have to add the modes to BOTH?
GameKyuubi
Level 1
Level 1
Posts: 9
Joined: Mon Jan 26, 2009 11:56 am

Post by GameKyuubi »

Added

Code: Select all

Modes      "640x480"
to subsection "Display" of section "Screen" and added ModeLine built by gtk to "Monitor" section. Did nothing. :[
GameKyuubi
Level 1
Level 1
Posts: 9
Joined: Mon Jan 26, 2009 11:56 am

Post by GameKyuubi »

Restarted and now xrandr won't accept any new modes. I had a modeline built by gtk that was accepted fine last session but now it won't go:

Code: Select all

xrandr --newmode 640x480_60.00 23.86 640 656 720 800 480 481 484 497 -HSync +Vsync
X Error of failed request:  BadName (named color or font does not exist)
  Major opcode of failed request:  157 (RANDR)
  Minor opcode of failed request:  16 ()
  Serial number of failed request:  13
  Current serial number in output stream:  13
So I changed the name so that it looked like this:

Code: Select all

xrandr --newmode 640x480 23.86 640 656 720 800 480 481 484 497 -HSync +Vsync
And now I get the same error:
err:xrandr:X11DRV_XRandR_SetCurrentMode Resolution change not successful -- perhaps display has changed?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

GameKyuubi wrote:I might have added them in the wrong place, but it seems that whenever I add modes to xorg.conf, xrandr completely ignores them. Do I have to add the modes to BOTH?
If you using TwinView you have to add metamodes. Or don't use twinview and use xinerama.
GameKyuubi
Level 1
Level 1
Posts: 9
Joined: Mon Jan 26, 2009 11:56 am

Post by GameKyuubi »

So how do I go about doing that? I've tried adding a few myself based on tutorials online but they don't seem to be working.
GameKyuubi
Level 1
Level 1
Posts: 9
Joined: Mon Jan 26, 2009 11:56 am

Post by GameKyuubi »

This isn't working at all. I've edited my xorg.conf up, down, left and right but nothing seems to help! Here is my xorg.conf for examination, sorry for the long post:

Code: Select all

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 1.0  (buildd@palmer)  Mon Nov  3 08:46:46 UTC 2008

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"
EndSection

Section "ServerFlags"
    Option         "Xinerama" "0"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "ViewSonic"
    VendorName     "ViewSonic"
    ModelName      "ViewSonic VX922"
    HorizSync       30.0 - 82.0
    VertRefresh     50.0 - 75.0
    Option         "DPMS"
    Modeline       "640x480_60.00"  23.86  640 656 720 800  480 481 484 497  -HSync +Vsync
EndSection

Section "Monitor"
    Identifier     "FHD2400"
    VendorName     "Gateway"
    ModelName      "Gateway FHD2400"
    Option         "DPMS"
    Modeline       "640x480_60.00"  23.86  640 656 720 800  480 481 484 497  -HSync +Vsync
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 7900 GT/GTO"
    Option         "TwinView" "1"
    Option         "TwinViewXineramaInfoOrder" "DFP-1"
    Option         "MetaModes" "DFP-0: nvidia-auto-select +0+176, DFP-1: nvidia-auto-select +1280+0"
    Option         "MetaModes" "DFP-0: NULL, DFP-1: 640x480"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "ViewSonic"
    DefaultDepth    24
#    Option         "TwinView" "1"
#    Option         "TwinViewXineramaInfoOrder" "DFP-1"
#    Option         "metamodes" "DFP-0: nvidia-auto-select +0+176, DFP-1: nvidia-auto-select +1280+0"
#	SubSection "Display"
#		Depth		1
#		Modes	"1920x1200" "1680x1050" "1280x800" "1024x768" "800x600" "640x480"
#	EndSubSection
#	SubSection "Display"
#		Depth	4
#		Modes	"1920x1200" "1680x1050" "1280x800" "1024x768" "800x600" "640x480"
#	EndSubSection
#	SubSection "Display"
#		Depth	8
#		Modes	"1920x1200" "1680x1050" "1280x800" "1024x768" "800x600" "640x480"
#	EndSubSection
#	SubSection "Display"
#		Depth	15
#		Modes	"1920x1200" "1680x1050" "1280x800" "1024x768" "800x600" "640x480"
#	EndSubSection
#	SubSection "Display"
#		Depth	16
#		Modes	"1920x1200" "1680x1050" "1280x800" "1024x768" "800x600" "640x480"
#	EndSubSection
	SubSection "Display"
		Depth	24
		Modes	"1600x1200" "1400x1050" "1280x1024" "1280x800" "1024x768" "800x600" "640x480"
	EndSubSection

EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device0"
    Monitor        "FHD2400"
    DefaultDepth    24
	SubSection "Display"
		Depth		1
		Modes	"1920x1200" "1680x1050" "1280x800" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth	4
		Modes	"1920x1200" "1680x1050" "1280x800" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth	8
		Modes	"1920x1200" "1680x1050" "1280x800" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth	15
		Modes	"1920x1200" "1680x1050" "1280x800" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth	16
		Modes	"1920x1200" "1680x1050" "1280x800" "1024x768" "800x600" "640x480"
	EndSubSection
    	SubSection "Display"
		Depth	24
		Modes	"1920x1200" "1680x1050" "1280x800" "1024x768" "800x600" "640x480"
	EndSubSection


EndSection
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

GameKyuubi wrote:This isn't working at all. I've edited my xorg.conf up, down, left and right but nothing seems to help! Here is my xorg.conf for examination, sorry for the long post:
You are likely to get more help with this on the nVidia Linux forum. How to edit your xorg.conf for Twinview is not a Wine question.

http://www.nvnews.net/vbulletin/forumdisplay.php?f=14
Locked