PDA

View Full Version : Screen Resolution won't change back to normal



ubudog
July 14th, 2009, 06:02 PM
Hi, every time I play a game in fullscreen in wine when I exit the Screen Resolution is all messed up. When I log off and log back in everything is fine. Is there a way to set it to automatically go back to the correct Screen Resolution when I close a game?

DoktorSeven
July 14th, 2009, 06:30 PM
Not automatically but I bind a key shortcut that runs the following to fix that after a Wine or native game doesn't exit cleanly, which sounds like your problem:

xrandr -s 1 && xrandr -s 0

(Two since doing straight to 0 sometimes doesn't work; you might have a different xrandr mode to set, so look at xrandr -q and its man page. 0 is the highest resolution/refresh available.)

ubudog
July 14th, 2009, 06:33 PM
Thanks so much!