Wastelock Feb 22, 2013 @ 1:15am
[Linux] XFCE Primary Monitor?
SSE3 launches and the performance is good under linux, but I've been looking for a way to configure the primary monitor that it launches on in xfce. It currently launches on my leftmost monitor in fullscreen mode.

I'm running xfce4 on Gentoo x86_64 with an ATI Radeon 6850. I have 3 monitors hooked up, from left->right by DisplayPort (active), DVI, HDMI.
In xorg.conf I have the center monitor configured with Primary set true and the others set up as LeftOf/RightOf. Composite is also enabled.
In the xfce settings editor, under the displays channel, I have Primary set on the center monitor.
In the Catalyst Control Center, they are set up as a Multi-Display. The order from left->right is 3,1,2. I am not running Xinerama, IIRC, there was a conflict with Composite being enabled.

I tried setting the SDL_VIDEO_FULLSCREEN_HEAD environment variable, but it didn't work and I saw it confirmed in another post that the game isn't using SDL. I tried setting --primary and --preferred in xrandr on the center monitor too.

I poked around in the config file under ~/.local/share/Steam/userdata/22302847/41070/local/SeriousSam3.ini, but the positioning options I found, gfx_pixWinPosX/gfx_pixWinPosY, were only relevant to windowed mode. I tried manually setting gfx_pixResWidth to 5760 to see if I could get it to span all three, but launched on the left one only and reset the value when I quit. I toggled gfx_bAutoConfigureExtraWideScreen between 1 and 0, because it looked interesting, but didn't seem to have any effect.

In the log file under ~/.local/share/Steam/SteamApps/common/Serious Sam 3/Log/Sam3.log it says that it launched fullscreen on primary display and lists them as:
Display 0: DFP7 (1920x1080) //center monitor
Display 1: DFP1 (1920x1080) //left mointor
Display 2: DFP5 (1920x1080) //right monitor

I keep my Steam window in the center monitor. Here's a quick rundown of how some other Steam games launch in case that might be useful.
Left Monitor: Amnesia*, Counter-Strike, Half-Life, POSTAL 2 Complete**, Psychonauts*, Serious Sam 3
Center Monitor: Bastion, Counter-Strike: Source, Puddle*, Team Fortress 2
*other monitors blank at launch
**others monitors blank at quit

Has anyone else had any luck with multi-monitor setups?
Showing 1-3 of 3 comments
< >
Wastelock Feb 23, 2013 @ 4:52pm 
I slapped together a workaround for the time being.

I created a script to toggle the other monitors on/off
#!/bin/bash

if test "$1" = "on"; then
xrandr --output DFP7 --mode 1920x1080 --pos 1920x0 --output DFP1 --mode 1920x1080 --pos 0x0 --output DFP5 --mode 1920x1080 --pos 3840x0;
exit 0;
fi
if test "$1" = "off"; then
xrandr --output DFP7 --mode 1920x1080 --pos 1920x0 --output DFP1 --off --output DFP5 --off;
exit 0;
fi

and a new shortcut for Steam that calls it before launch and after close.
#!/bin/bash
toggledisplays off && steam && toggledisplays on

Xfce is pretty good about remembering its window and icon state when monitors disappear, so everything goes back where it should when I close Steam and the monitors come back on.
EndeavourAccuracy May 31, 2013 @ 8:42am 
Wastelock, thanks for sharing your script with us.
It works fine with my dual-monitor setup.
(All I had to do was change the display names and remove the 3rd monitor.)
[Linux] UZzK5RDF Jun 29 @ 10:06am 
Having the same issue, keeps launching on my left-most monitor when I want it to launch on my center one (Turning my head for long periods of time hurts my neck).

I don't really want to have my other monitors turn off as I often alt+tab to research stuff about the game/talk to people/change music/etc...

Is there any fix that isn't a workaround? I tried with SDL environment variables (SDL_VIDEO_FULLSCREEN_HEAD) but it ignored them.
Last edited by [Linux] UZzK5RDF; Jun 29 @ 10:07am
Showing 1-3 of 3 comments
< >
Per page: 15 30 50