xrandr blank screen after running game in fullscreen

Questions about Wine on Linux
Locked
grimtech
Newbie
Newbie
Posts: 1
Joined: Sun Apr 13, 2014 12:24 am

xrandr blank screen after running game in fullscreen

Post by grimtech »

Here is my xrandr output:

Code: Select all

Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192
LVDS1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1366x768       60.0*+
   1360x768       59.8     60.0  
   1024x768       60.0  
   800x600        60.3     56.2  
   640x480        59.9  
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
I'm using PlayOnLinux running GTA:SA using wine version 1.3.8. When I exit the game that was running full screen, my desktop resolution is shrunk down to 1024x768. I'd like to write a script that gets my desktop back to 1366x768 automatically after exiting the game so I use the command recommended in the wine FAQ. Running 'xrandr -s 0' turns my screen completely black. The backlight is still on but the entire screen is black; the desktop is still there but I can't see it at all. If I'm lucky and still have a terminal open and in-focus, I can blindly type 'xrandr -s 1' and I can get a usable desktop (with resolution 1360x768.) If the terminal has closed, I mistype, or the terminal isn't in focus anymore, The only thing I can do to get back to the normal resolution and a usable desktop is hard resetting my laptop.

Funny thing is, prior to running GTA:SA fullscreen, 'xrandr -s 0' runs fine. I can switch back and forth between 'xrandr -s 1' and 'xrandr -s 0' all day if wine/GTA:SA hasn't been run this session. It isn't until after closing the game/wine that 'xrandr -s 0' will make my screen go black.

Anybody know why this happens?
Bladeforce
Level 3
Level 3
Posts: 63
Joined: Fri Nov 09, 2012 8:01 am

Re: xrandr blank screen after running game in fullscreen

Post by Bladeforce »

I noticed this when I used to use Ubuntu with some games. Now I am on Kubuntu it hasnt happened to me at all, even more curious..some games that refused to run in full screen on ubuntu but just in a window now run fine full screen in Kubuntu
Locked