Post

Fixing Survivin Mars

The problem

I noticed the linux native version of Surviving Mars has issues with my dual monitor setup. Basically it disables my vertical one but that is not all, it also has some glitches.

The objects seems to be “floating” and the shadows are not touching anything.

I discovered that using the windowed mode, my second monitor keeps working, but the glitches still.

I added some photos below.

two monitors working before starting the game Both monitors are working fine just before I start the game

one monitor goes black trying to start the game My left monitor goes black and only the superior corner left of the other one shows something

only one monitor working Only my right monitor is working now

Now the glitches:

dome and structures in the air The installations and dome are floating

some floating rocks Even the rocks are in the air

I tried -w 1920 -h 1080 and didn’t work

Probably because those options are for valve/source games

Now if we try with proton, my dual monitor setup works as expected and there is not glitches

no issues if it uses proton With proton it works flawless

I believe it works because wine can emulate a virtual desktop, but I still not understand 100% why it works.

I am going to show you what I did.

Idea

I guessed the main issue was Surviving Mars seeing my two monitors just as one really big (that would explain that just the corner shows something while starting).

So I wanted to try gamescope https://github.com/ValveSoftware/gamescope which is a microcompositor which allows me to set up custom resolution that the game would “see”.

Trying gamescope

Debian

As I use Debian I tried first with the version in the apt repo, I ran:

1
sudo aptitude install gamescope

I tried several times, nevertheless it didn’t work. I just assumed that it is because I ran steam with flatpak.

So I just removed the package and proceeded to install it using flatpak.

Flatpak

I ran

1
flatpak install gamescope

and I chose runtime/org.freedesktop.Platform.VulkanLayer.gamescope/x86_64/24.08.

Now gamescope finally works. Now I only need to find the correct setting.

Results

I tried several gamescope options and they help me with the glitches, but I couldn’t get to fix the issue with the second monitor going black.

Just gamescope -- %command% in the launch option was enough to fix the glitches.

I decided to start the game in windowed mode and voilà, the game was running and my second monitor was showing discord.

Working fine with gamescope + windowed mode No glitches and both monitors working

But even with a window maximized I can see the title bar and my other open programs in the botton bar and I don’t like to play that way. Thankfully it has a simple solution, I could simply click the window bar and choose fullscreen and KDE will do the rest.

showing where is locate the fullscreen option Location of the fullscreen option in KDE

However, doing that every time is silly. KDE allows you to define some rules to apply to windows and that exactly what I need.

Instead of just click fullscreen, click on Configure special application settings… and a new window will appears.

Then click in add property… at the botton, look for Fullscreen, select Apply Initially and __Yes_. Finally __Apply_ and we are done.

window rules options for an application Window rules options for Surviving Mars

Now I can play Surviving Mars in 1920x1080 fullscreen without any glitch and linux native.

I kept this option gamescope -H 1080 -b -- %command% just for consistency.

running Surviving Mars with a fullscreened window Now I can play in fullscreen without any issue

Final thoughts: I like to solve problems, but for any other person probably it would be better just to use proton.