I am having issues running games on Wine. In Ubuntu my native resolution is 1600x900 and I have the Nvidia 3.19 drivers, yet when games load under Wine (version 1.7) they default to 1028x768 resolution. Most games are through Steam (Windows version) but it happens even to non-Steam games.
I have tried to adjust resolution in-game to 1600x900 (it is an option) but then I only get 1/3rd of the screen to display. I played around with Winetricks and Winecfg and was able to get Civilization 5, to launch and play in 1600x900, but the same things I used for that won't work on other games. I did this by unchecking all the boxes in winecfg for the program, loaded into the game then went to the settings play in windowed mode, then switched resolution to 1600x900 and unchecked play in windowed mode...don't ask me how I figured that out, seems more like luck. Regardless I have tried that in other games and it doesn't work, I have also tried running a virtual dekstop at 1600x900 to no avail. It doesn't matter what programs I run in Wine, they all default to the 1028 res.
It seems as if Wine is defaulting any program to the 1028x768 resolution. When I exit any of those games my Ubuntu desktop is now in that resolution as well.
I am trying to run games through Steam (for Windows games, windows install through Wine), and am running 12.04 LTS. Any native-Linux games run fine. As I am new to Ubuntu, please dumb down any instructions, thanks!!
WINE & Nvidia resolution
Re: WINE & Nvidia resolution
--Resolution not restored when wine terminates-- is a well known bug that most probably won't be fixed.
About the rest it I have no real idea. But we can get some info, try to execute your game with WINEDEBUG=-all,+xranrd environment variable. In the stdout you will get a log about what Wine is doing with the screen resolutions.
Also post the output of xrandr before executing and after.
About the rest it I have no real idea. But we can get some info, try to execute your game with WINEDEBUG=-all,+xranrd environment variable. In the stdout you will get a log about what Wine is doing with the screen resolutions.
Also post the output of xrandr before executing and after.
Re: WINE & Nvidia resolution
Thanks for the reply. Sorry for my noob question, but how do I run wine with that prefix? Do I do it from the terminal?etwineb wrote:--Resolution not restored when wine terminates-- is a well known bug that most probably won't be fixed.
About the rest it I have no real idea. But we can get some info, try to execute your game with WINEDEBUG=-all,+xranrd environment variable. In the stdout you will get a log about what Wine is doing with the screen resolutions.
Also post the output of xrandr before executing and after.
Re: WINE & Nvidia resolution
Yes, open a terminal and execute this commands and copy everything here in a [ code ] block.
Code: Select all
$ xrandr
$ WINEDEBUG=-all,+xrandr wine oneofthegames.exe
$ xrandr
Re: WINE & Nvidia resolution
etwineb wrote:Yes, open a terminal and execute this commands and copy everything here in a [ code ] block.
Code: Select all
$ xrandr $ WINEDEBUG=-all,+xrandr wine oneofthegames.exe $ xrandr
I was unable to run the WINEDEBUG line, it said:
"No command '+xrandr' found, did you mean:
Command 'lxrandr' from package 'lxrandr' (universe)
Command 'xrandr' from package 'x11-xserver-utils' (main)"
I did run the xrandr line here is what is was before loading in the game:
Screen 0: minimum 8 x 8, current 1600 x 900, maximum 8192 x 8192
DVI-I-0 disconnected (normal left inverted right x axis y axis)
VGA-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 connected 1600x900+0+0 (normal left inverted right x axis y axis) 443mm x 249mm
1600x900 60.0*+ 60.0
1280x1024 75.0 60.0
1280x960 60.0
1280x800 59.8
1280x720 60.0
1152x864 75.0
1024x768 75.0 70.1 60.0
800x600 75.0 72.2 60.3 56.2
640x480 75.0 72.8 59.9
HDMI-0 disconnected (normal left inverted right x axis y axis)
---
This is after I loaded into the game:
Screen 0: minimum 8 x 8, current 1024 x 768, maximum 8192 x 8192
DVI-I-0 disconnected (normal left inverted right x axis y axis)
VGA-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 440mm x 250mm
1600x900 60.0 + 60.0
1280x1024 75.0 60.0
1280x960 60.0
1280x800 59.8
1280x720 60.0
1152x864 75.0
1024x768 75.0* 70.1 60.0
800x600 75.0 72.2 60.3 56.2
640x480 75.0 72.8 59.9
HDMI-0 disconnected (normal left inverted right x axis y axis)
-
Thanks again.
Re: WINE & Nvidia resolution
That is weird, are you sure you put the comma no spaces between -all and +xrandr?
However the xrandr outputs seem fine, you can restore your restore your resolution with xrandr -s 0 after playing, right?
However the xrandr outputs seem fine, you can restore your restore your resolution with xrandr -s 0 after playing, right?
Re: WINE & Nvidia resolution
Yes I made sure about the spacing and commas.
I am able to reset the resolution after. It's just when the game loads it defaults to the smaller resolution and even if I try to change it in game it stays at 1024x768.
I am able to reset the resolution after. It's just when the game loads it defaults to the smaller resolution and even if I try to change it in game it stays at 1024x768.