A resolution problem with a number of games on Ubuntu

Questions about Wine on Linux
Locked
cloneof
Newbie
Newbie
Posts: 2
Joined: Tue Dec 20, 2016 9:29 am

A resolution problem with a number of games on Ubuntu

Post by cloneof »

Hi. I love the Wine software, enabled to finally jump into various Linux based operation systems.

Recently I have tried Wine on a computer with Ubuntu and I have stumbled upon a problem with few of my games. Games like Deus Ex Human Revolution, Far Cry 3 and The Babylon Project increase the size of the desktop to something far greater than the size of the physical screen. I'm able to move my mouse to the edge of the physical screen, which allows me to scroll around this giant desktop for a couple of seconds before the game launches and I loose the ability to press anything.

I recognise that Wine comes with a virtual desktop option. However, when I use that with the native resolution (1920 x 1080 (16:9)) it just creates a window tiny in comparison to the native desktop, making the games quite unplayable.

I have tried to consult the vastness of internet, but nothing thus far has allowed me to successfully run some of these games of mine. Any help would be appreciated.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: A resolution problem with a number of games on Ubuntu

Post by Bob Wya »

@cloneof,

What's the output from:

Code: Select all

xrandr
Sounds like your X Server is misconfigured somewhat...

You know that with Wine Virtual Desktops you can set the size to the native resolution of your monitor - right?
Just enter the monitor X and Y pixel counts in the 2 boxes.
winecfg virtual desktop resolution.png
(setting for my laptop's 1080p 16:9 built-in screen)

Bob
Simon of Aragon
Level 3
Level 3
Posts: 94
Joined: Sat Sep 08, 2012 3:56 pm

Re: A resolution problem with a number of games on Ubuntu

Post by Simon of Aragon »

Some issues are the fault of the game settings. One of my old "bargain bin" games from the mall is the original "Star Craft" by Blizzard. It has issue with no way to set the resolution. So I use this script to run it.

Code: Select all

 #!/bin/bash
export WINEPREFIX="$HOME/.wine-desktop"
export WINESERVER="$HOME/.wine-1.9.24/bin/wineserver"
export WINELOADER="$HOME/.wine-1.9.24/bin/wine"
export WINEDLLPATH="$HOME/.wine-1.9.24/lib/wine"
export WINEDEBUG="-all"
$WINELOADER explorer /desktop=Starcraft,640x480 '/media/Drive D/Starcraft/StarCraft.exe'
This allows for the "problem child" to run in that one setting and the others programs that use WINE are unaffected. Meanwhile I have searched high and low on the web for a method to stretch the little desktop window. I have yet to have found any answers. My other programs work just great, but back in the day, I guess Blizzard thought 640x480 was the bomb! :D
cloneof
Newbie
Newbie
Posts: 2
Joined: Tue Dec 20, 2016 9:29 am

Re: A resolution problem with a number of games on Ubuntu

Post by cloneof »

Bob Wya wrote:@cloneof,

What's the output from:

Code: Select all

xrandr
Sounds like your X Server is misconfigured somewhat...

You know that with Wine Virtual Desktops you can set the size to the native resolution of your monitor - right?
Just enter the monitor X and Y pixel counts in the 2 boxes.
winecfg virtual desktop resolution.png
(setting for my laptop's 1080p 16:9 built-in screen)

Bob
"Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 477mm x 268mm
1920x1080 60.00*+
1680x1050 59.95
1600x900 60.00
1280x1024 75.02 60.02
1280x960 60.00
1280x720 60.00
1152x720 60.00
1024x768 75.03 60.00
800x600 75.00 60.32
640x480 75.00 59.94
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DVI-D-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)"

And sorry, but seem to have miss wrote. What I meant to say is that the tiny window happens when I input my native resolution in the Virtual Desktop settings.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: A resolution problem with a number of games on Ubuntu

Post by Bob Wya »

@cloneof,

The WineHQ AppDB page: Star Wars: Knights of the Old Republic ... Has some nifty ideas for running your older games in a seperate X session (or an Nvidia hack to disable twinview) that might help you play your older games fullscreen! 8)

Do you have an:

Code: Select all

/etc/X11/xorg.conf
file? If so what are the contents of said file?

Bob
User avatar
dimesio
Moderator
Moderator
Posts: 13371
Joined: Tue Mar 25, 2008 10:30 pm

Re: A resolution problem with a number of games on Ubuntu

Post by dimesio »

Bob Wya wrote:(or an Nvidia hack to disable twinview)
That AppDB howto is dated 2010; the ability to disable TwinView was removed from the Nvidia drivers in 2013. https://devtalk.nvidia.com/default/topi ... nt=3872874
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: A resolution problem with a number of games on Ubuntu

Post by Bob Wya »

dimesio wrote:
Bob Wya wrote:(or an Nvidia hack to disable twinview)
That AppDB howto is dated 2010; the ability to disable TwinView was removed from the Nvidia drivers in 2013. https://devtalk.nvidia.com/default/topi ... nt=3872874
I'm just testing those workarounds with AvP Classic (one of the games I maintain). I guess now - I'm only testing the X Session workaround! 8)
I've pinged the Maintainer for the Star Wars: Knights of the Old Republic AppDB page with that information...

Thanks
Bob
Locked