X3: Terran Conflict

X3: Terran Conflict

View Stats:
OldScout Jan 6, 2019 @ 7:41am
Turning off dual monitor spanning on Linux?
Does any one know how to turn off the feature where X3 will span across dual monitors on Linux Mint? I just got the game and can't stand how everything is centered on the split between the two monitors.

If I was on my old Win7 computer this would be easy, but now that I'm on a Linux box I can't figure out how to change this.
< >
Showing 1-7 of 7 comments
kucingkampung Jan 6, 2019 @ 2:26pm 
Assuming you're using X server, to play on the first monitor try add this variable in launch options.
DISPLAY=:0.0 %command%
Last edited by kucingkampung; Jan 6, 2019 @ 2:26pm
OldScout Jan 6, 2019 @ 5:59pm 
Thanks for the reply, but unfortunately that didn't do anything. I just copied and pasted your suggestion into the launch options and clicked Play, and it still spanned both monitors. I also have the same problem with Warlock 2, and it didn't help for that game either :-(
kucingkampung Jan 6, 2019 @ 8:59pm 
Ok, then try add this to use the second screen instead. Btw, this game doesn't have build in multihead control, cmiiw. It use SDL2.
DISPLAY=:0.1 %command%

If that fail, use these sdl variables. You can change the value for the first two variables to 0 or 2 if you have three monitors. The third variable is for alt-tab and your screen will focus on your first monitor. You can also add these in your home/yourusername/.profile if it isn't writen in that file yet to make it work on all sdl games. The %command% line is only for steam launch option, btw. Good luck.
SDL_VIDEO_FULLSCREEN_HEAD=1 SDL_VIDEO_FULLSCREEN_DISPLAY=1 SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 %command%
Last edited by kucingkampung; Jan 6, 2019 @ 9:14pm
OldScout Jan 7, 2019 @ 3:43pm 
Originally posted by kucingkampung:
Ok, then try add this to use the second screen instead. Btw, this game doesn't have build in multihead control, cmiiw. It use SDL2.
DISPLAY=:0.1 %command%

If that fail, use these sdl variables. You can change the value for the first two variables to 0 or 2 if you have three monitors. The third variable is for alt-tab and your screen will focus on your first monitor. You can also add these in your home/yourusername/.profile if it isn't writen in that file yet to make it work on all sdl games. The %command% line is only for steam launch option, btw. Good luck.
SDL_VIDEO_FULLSCREEN_HEAD=1 SDL_VIDEO_FULLSCREEN_DISPLAY=1 SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 %command%

The Display command didn't work. When I have that in the launch options all I get when I click play is the box that pops up saying preparing to launch game and then nothing happens.

Where do you find the list of display options? I tried googling for it and came up with a million other sites for display stuff, but couldn't find these options. I'll happily try to go through themselves if you will point me at them.

As for the SDL commands do you put those right in the launch options? I thought those were dosbox commands so I wasn't sure if they applied here.

Thanks again for your help.
kucingkampung Jan 7, 2019 @ 4:37pm 
DISPLAY variable is for different X server to run for a certain user on a certain monitor, if im not mistaken. There are some sites mentioning display variable, ie: https://en.wikipedia.org/wiki/Environment_variable#Unix or https://help.ubuntu.com/community/EnvironmentVariables etc.

For SDL variables, yes it's environtment variables, so you can put them in steam launch options like any other common environtment variables with %command% at the end of the line or use export/env command if you start steam client under a console at the begining of the line. ( https://steamcommunity.com/discussions/forum/10/541906348036020472/ https://en.wikipedia.org/wiki/Env https://www.libsdl.org/release/SDL-1.2.15/docs/html/sdlenvvars.html) It isn't just for dosbox, but for all apps that use SDL/SDL2 layer. X3TC for linux use SDL2.

If you're worried those variables affect your system permanently, it's not as long as you don't execute them under root or making a local config and asign them to be used automatically.

Umm, I'm not a linux expert and not good in english, I hope I explain it well. :)

Edit: This is a video about SDL variables I mentioned before. He performed by using a local config file instead of just pass them on steam launch options. https://www.youtube.com/watch?v=fYvdY2uhdVM
Last edited by kucingkampung; Jan 7, 2019 @ 5:04pm
OldScout Jan 7, 2019 @ 7:43pm 
Boy, I am having no luck. I watched the video and did exactly what it said and it isn't making any difference. I even rebooted the computer just in case, (though the guy didn't in the video) and that didn't help either.

I really do appreciate your help in trying to fix this.
kucingkampung Jan 7, 2019 @ 8:14pm 
I'm sorry I couldn't help. But one last thing you may want to try is disabling xinerama. But this may also disable your second monitor. GPU driver UI usually have their own way for disabling xinerama, or to you can add SDL_HINT_VIDEO_X11_XINERAMA=0 alongside with the other three SDL variables. https://wiki.libsdl.org/SDL_HINT_VIDEO_X11_XINERAMA https://en.wikipedia.org/wiki/Xinerama
< >
Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: Jan 6, 2019 @ 7:41am
Posts: 7