Wine doesn't fix resolution changes.

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
ruinairas
Level 3
Level 3
Posts: 62
Joined: Sun Oct 02, 2011 6:47 pm

Wine doesn't fix resolution changes.

Post by ruinairas »

When I play various games that change the display, in most cases it doesn't return back to normal after the program exits. This can be a pain when it makes the images to huge I can't click the apply button to fix the resolution problem. My idea is to implement a check/revert to previous resolution to the wine project.
aidfarh
Newbie
Newbie
Posts: 4
Joined: Fri Jan 06, 2012 5:11 am

Post by aidfarh »

Yeah, I'm having this problem too. Hopefully this gets fixed soon. In the meantime, let me share some tips to make life a little bit easier. Firstly, I create a shortcut that I place on the top left hand corner of my desktop that runs this:

Code: Select all

xrandr -s 0
This command resets the resolution to the default. Because it's in the top left corner of the screen, you should always be able to see it, no matter what the resolution is. Whenever the screen resolution gets screwed up, I just click the shortcut and the screen gets fixed.

I also modify shortcuts of wine applications that trigger this problem by adding && xrandr -s 0 to the end. This will cause the screen resolution to be reset after the application ends. E.g.

Code: Select all

wine 'C:\Program Files\AppDir\game.exe' && xrandr -s 0
Hope this helps.
ruinairas
Level 3
Level 3
Posts: 62
Joined: Sun Oct 02, 2011 6:47 pm

Thank you

Post by ruinairas »

aidfarh wrote:Yeah, I'm having this problem too. Hopefully this gets fixed soon. In the meantime, let me share some tips to make life a little bit easier. Firstly, I create a shortcut that I place on the top left hand corner of my desktop that runs this:

Code: Select all

xrandr -s 0
This command resets the resolution to the default. Because it's in the top left corner of the screen, you should always be able to see it, no matter what the resolution is. Whenever the screen resolution gets screwed up, I just click the shortcut and the screen gets fixed.

I also modify shortcuts of wine applications that trigger this problem by adding && xrandr -s 0 to the end. This will cause the screen resolution to be reset after the application ends. E.g.

Code: Select all

wine 'C:\Program Files\AppDir\game.exe' && xrandr -s 0
Hope this helps.
Oh, thank you very much. This is a great alternative for now. You've helped me a lot :)
Locked