Linux Game launches on secondary display

Avatar
  • Views 23,761
  • updated
  • Completed - Resolved

My setup on Ubuntu, my displays are primary 1920 x 1080 and Secondary 1200 x 1920 (portrait mode). The game no matter what I do launches on the secondary display in 1920 x 1080 and being as it is a portrait display I can only see a slither of the game screen. I cant even read the setting menu because it off the side of the 1200 wide portrait screen.


I now have close to a dozen linux steam games and this is the only one that insists on launching on a secondary monitor.


I've reinstalled the game. Reinstalled Ubuntu 14.04 / 15.04 and are now on 15.10. Same problem everytime.


This has been the case for me since beta. I just gave up on the game and check sometimes when I feel like playing and its still broken.


Game Version:
Steam Public
Platform:
Linux

How would you rate the customer service you received?

Satisfaction mark by Marten B 9 years ago

Thank you for your help :)

Add a comment about quality of support you received (optional):

Pinned replies
Avatar
Scott Richmond Programmer & Producer
  • Answer
  • Accepted

Hey Marten,


I have made a special build of the game for you that hopefully fixes part or all of your issue. You can access this build by opting into our beta branch as instructed below.


Right click the game in Steam and go to Properties. In the Betas tab, type in the password 'publicpassword' and hit Check Code. Select the 'publictestbranch' in the dropdown box above and then close the window. Steam should perform an update.



Avatar
Marten B

Hi Scott

I could not get the beta version to launch it hangs with the loading progress bar close to half way complete even if I disable my second display.


Editing the setting file did not make a difference. My edits remained saved but the game still launched full screen.


After switching back to the current live version of the game it runs again but still in an incorrect resolution.


Avatar
Scott Richmond Programmer & Producer

That is odd. It is launching on our test Linux machines. Could you please try the following:

1. Perform a game data scan to ensure you've got all the update files. In Steam for the game, go to its Properties -> Local Files and then click on Verify Integrity of Game Cache.

2. In the game directory browse to the WFTOGame_Data directory and open the Settings.ini file for editing. Find and change the following properties like so:

Width=1920
Height=1080
Fullscreen=False


Try launching the game. If it succeeds, proceed to change the settings as you wish in the game settings menu.


If this fails, perform step 2 again. But unplug one of your monitors and tell us what happens.


Thanks for your patience so far Marten.

Avatar
Stefan Furcht Programmer

Hello Marten,
I edited your posts because they did include logs as plain text.
As said before please attach them as file to not bloat the written text of user information.
Here is what I did:


Cheers

Avatar
Marten B

Hi Scott

The beta hangs on launch for me.

Player(2).log

EDITED

Avatar
Scott Richmond Programmer & Producer
  • Answer
  • Accepted

Hey Marten,


I have made a special build of the game for you that hopefully fixes part or all of your issue. You can access this build by opting into our beta branch as instructed below.


Right click the game in Steam and go to Properties. In the Betas tab, type in the password 'publicpassword' and hit Check Code. Select the 'publictestbranch' in the dropdown box above and then close the window. Steam should perform an update.



Avatar
Marten B

Lets see :).. I wil give it a day or so and tap in again.

Avatar
Scott Richmond Programmer & Producer

Hi Marten,


Just today I managed to find and resolve a couple of bugs relating to setting the correct monitor and resolution. We had not intended to push a patch until v1.4 in a months' time, but I'll see about pushing out a hotfix for you tomorrow. No body likes a buggy game! ;)

Avatar
Stefan Furcht Programmer

Hello again Marten B,
just for future bug reports:
There is an "Insert File" button (paperclip symbol) above the text area for your post, which allows to attach a file without bloating the bug report with a plain text copy. This was also mentioned in the link "How to report a bug" a posted above.

OK this issue is odd indeed.
I am still no Linux expert but let me elaborate.

So you say you have two displays:
1) Primary 1920 x 1080
2) Secondary 1200 x 1920

Now the question is:
Why does the operating system report to Unity3d that you have a display of size 3120 x 1920?


It looks like Unity3d is seeing your both monitors as only one single screen.
Did you setup your system to run dual screen mode?
So that you only have one desktop which does stretch over both displays or do you have separate desktops for both or a desktop only on the first of both screens?
If the former then Unity3d just sees one display which consists of both screens, but seems not able to handle this case correctly.

What happens in log:

"requesting resize 1920 x 1080

requesting fullscreen 1920 x 1080 at 0 Hz
Desktop is 3120 x 1920 @ 60 Hz"

So there is the second issue: Why does Unity3d request "fullscreen 1920 x 1080 at 0 Hz"?
I am unsure why this does happen, while it should request "1920 x 1080 at 60 Hz" and not "at 0 HZ".
But I guess the engine is just confused with this artificial "3120 x 1920 @ 60 Hz" dual display screen and fails to recognize it properly.

Since the requested resolution can not be provided by the OS multiple other things fail in result:
"Changing real window size to 1920 x 1022
Ignoring window size change to 1920x1022 : waiting for fullscreen at 1920x1080"
Which will never respond.

So long story short...
Somehow the OS reports one big screen consisting of both monitors to Unity3d engine.
It looks loke you did setup your displays in dual mode?
Can you check this and if, can you try to set them up as separate desktops, so both monitors are recognized as individual screens?
Can you check if you have setup anything else which would merge both monitors into one screen for the game.

I hope we can find the root cause of the problem.
Cheers

Avatar
Marten B

after seeing the prefs file I manually editied Width and Height to 1080,1920. It did no work and was reset to 1920,3120 after I launched the game.

<<pref name="Screenmanager Resolution Height" type="int">1920</pref>

<pref name="Screenmanager Resolution Width" type="int">3120</pref>


Note that the 2 displays are 1920x1080 and 1200x1920(portrait). The game is somehow trying to flip the resolution added the total width of screens 1920+1200 as the height and vertical 1920 (from second display) as the width.

Avatar
Marten B