I played Lugaru, the game went in Full screen mode, but when I closed the game, the screen resolution was still 640×480. It happened with Neighbours From Hell also, using Wine, and well… Almost every game i tried in fullscreen mode. Is it normal? Is there a fix for that?
Games – Fixing Screen Resolution Stuck at 640×480 After Closing Game
games
Best Answer
Fullscreen handling in Linux is rather broken and lots of games are causing such troubles. Easiest workaround is probably to use
xrandr
to bring things back into the proper resolution (put that in a script and make it an icon in the top/left corner of your screen for easy restore):For a single monitor setup that would be simply something like:
For a multimonitor setup it would look like:
Running
xrandr
without any option give you a list of supported modes and available displays.Note there is also a bug in
xrandr
itself, sometimes the monitor size will adjust, but the mouse movement will still be locked to the old resolution, to fix that just runxrandr
a second time.Alternatively you can also set
wine
to emulate a virtual desktop, this will prevent games from going fullscreen and force them to be confined to the Wine virtual desktop window. The setting available inwinecfg
and thenGraphics->Emulate a virtual desktop
.