Some Games Fail to Reset Screen Resolution on Exit

Questions about Wine on macOS.
Locked
Proaxel
Newbie
Newbie
Posts: 1
Joined: Thu Jan 08, 2015 2:03 am

Some Games Fail to Reset Screen Resolution on Exit

Post by Proaxel »

Hello, I'm Using a Macbook Pro, Mid-2010 Model. OS X Yosemite.

I find Wine really useful to play some Windows Games on my Mac. However, there seems to be a problem for much of my games involving the display.
Many of my games change the Screen Resolution to something else. Sometimes when I exit the game or do a Control-Tab to somewhere else (Like Safari to look up a guide), the screen resolution fails to change back.
Soldner-X is kind of a big example on this.

What i'm left with is the screen in a "stuck" state, like taking the top left part-ish of my desktop and zooming it in. I can't see my task bar on the top, nor can I access my Dock to open System Preferences. My Mission Control and other gestures seem to be unusable as well.I can see some windows, however I can't seem to interact with them. I basically can't really control the computer at all.
The only way I know to get the default resolution back and regain control is to do a hard restart.
But really, a restart??? Surely there must be a better way to get around this. Anyone know and willing to help? Thanks!
User avatar
olivierfrdierick
Level 5
Level 5
Posts: 258
Joined: Thu Sep 13, 2012 12:09 pm

Re: Some Games Fail to Reset Screen Resolution on Exit

Post by olivierfrdierick »

There's not much you can do about it:
- Run apps in windowed mode;
- Force fullscreen apps into a wine desktop (which actually make them windowed);
- Configure the apps to use the same screen resolution that the system is set to.
The last point should work for most of the recent games, but for all fullscreen games that cannot be configured to your actual resolution, you'll have to find a command that restore the display settings afterwards. In linux I use xrandr and nvidia-settings in a wrapper script to set the resolution back to what it was.
pmaloney
Level 2
Level 2
Posts: 27
Joined: Mon Nov 25, 2013 1:25 am

Re: Some Games Fail to Reset Screen Resolution on Exit

Post by pmaloney »

When this happens, you can try hitting Cmd-Space to bring up Spotlight, type "terminal" and hit return. When the terminal window opens, type "killall wine" and hit return and then "killall wineserver" and hit return.

Sometimes that will reset it.

Otherwise, Cmd-Shift-Q to logout of the account.
Locked