[Linux] CS:GO sometimes launches on the wrong monitor
I have 2 monitors. My main monitor is correctly configured and when launching Dota 2, I have no problem with this whatsoever. So it seems like a CS:GO related problem. When rebooting the problem goes away but after playing for a bit quitting the game and launching it back it reappears.
https://gist.github.com/Locat/17842717e965193629f6
would really like tips on fixing this too
I had the same issue as well. To get the game on the correct screen i just disabled the other monitor temporarily whilst i played.
Im not sure if this is specifically related to CS:GO though, given i have had the same issues with some other steam games. Would be cool if the steam client allowed you to specify which screen you want a game to run on.
Yeah might be dependant on games. Dota 2 works fine though. It's a really frustrating bug, the worst is that sometimes it works and sometimes not and I have not a single clue as to why.
Edit: The only way I found of fixing it atm is going into either fullscreen windowed or windowed mode, dragging the window the right monitor and then going back to fullscreen.
Not sure if this is the cause but see what monitor is primary in both Xorg and in VM.
It is already the case.
CS:GO opens up on my primary monitor as expected.
Also, are you all using the same resolution on both monitors?
One is a 5:4 monitor and one a 16:9 so not the same resolution. As I said it is strange because it works at first and then it stops working, even when the focus is on the right monitor
I have similar problem: My 2nd monitor is set as primary in linux system but CS start fullscreen on 1st one.
2 monitors setup
- monitor1 (left side), monitor2 (right side) [primary]. With this configuration CS start on first one.
- If it change their order to monitor2 (left side), monitor1(right side (
1024 )), then CS start on my monitor2...
same problem here.
Same. It usually opens on my primary display but sometimes opens on the secondary. I was hoping there might be a way to force which monitor it uses.
FYI, I've been able to get around it by disabling my secondary monitor in GNOME3, start the game, then alt-tab out and re-enable the secondary monitor.
same problem here too. however i just set the second monitor as "primary" and it opens on the right one but that means i need to change it back when im opening any other game.
@devhen @gulafaran : You can simply hit the "Super" key and drag the csgo window on the right monitor :)
so funny, no matter what sdl env var i change nor xorg conf, the game will ALWAYS open on the non primary one.
Can you let me know what "sdl_displayindex" is set to in your config.cfg (in the game/csgo/cfg folder). This is not a public convar, but the value is written to/read from this file, and if changing it (if you have two monitors, the range of values is just 0 and 1) makes any difference to how the game boots up - the multi-monitor startup configuration should be handled the same way as Dota2. Thanks.
@mariodonofrio changing "sdl_displayindex" variable value fix'ed this issue for me
Thanks @audkar - sdl_displayindex should get written with whichever monitor you last played CS:GO on (i.e. if you move it to another monitor it will change). There are some issues with SDL not enumerating the displays correctly on all boxes, but if you moved it to a display it should put it back up on that same display regardless of enumeration. It might be worth trying to do that, and enforcing the change by modifying the video settings (change resolution, go full-screen or windowed, etc) and saving them - this should force the sdl_displayindex update in that config file.
Be interested in hearing what other users that have had issues might experience too.
yeah changing displayindex to 1 , makes it open on my middle monitor. i run three and the mid one is set as primary and most things works with this even something as basic as https://wiki.libsdl.org/SDL_GetCurrentDisplayMode orders it correctly, however steam and its games seems to open the games on the most left one at all times.
Confirmed that changing the config.cfg sdl_displayindex solved this issue for me.
Any push to get this fixed? Is it backlogged?