Page 1 of 1

[raiguard][2.0.24] Factorio starts on the wrong monitor. (Linux)

Posted: Fri Nov 15, 2024 10:46 am
by Mighty_Pig
To start with I am not sure if this is a bug with factorio or just something wrong with my setup but since I've only had this issue with Factorio so far I suspect it has something to do with Factorio. If it is on my end you can move this topic to the technical issue forum.

For some reason factorio starts on the wrong monitor. As you can see here according to factorio it should be on my main monitor (1)
11-15-2024, 11-34-34.png
11-15-2024, 11-34-34.png (16.2 KiB) Viewed 338 times
But if you take a look at the configuration
11-15-2024, 11-35-33.png
11-15-2024, 11-35-33.png (61.45 KiB) Viewed 338 times
This should mean it should be located on the right monitor (Dell S2721DGF). But for some reason it is located on the left monitor.
When I select the prefered monitor instead of 1 *most* of the times it moves to the correct monitor (1). Sometimes I have to select the second monitor in order to move the game to the correct monitor.
I also noticed a few versions back whenever I moved it, it sometimes would start flickering and crash the game, but this seems to have been resolved.

Heres the log. This time I had to select the second monitor instead of the prevered one.
factorio-current.log
(12.26 KiB) Downloaded 9 times
Some extra info about my setup:

Code: Select all

Linux Lithium 6.11.7-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 08 Nov 2024 17:57:56 +0000 x86_64 GNU/Linux
nvidia-open 565.57.01-3
plasma: 6.2.3-1
Wayland: 1.23.1-1
I am also using the following launch option:

Code: Select all

SDL_VIDEODRIVER="wayland" %command%
if you need any more information let me know.

Update: I tried to use the fix below, but for me it doesn't fix the problem.
The given log is from version 2.0.18, however I am still experiencing the issue on 2.0.21, 2.0.222.0.24 so the titled has been updated.

Re: [2.0.18] Factorio starts on the wrong monitor.

Posted: Sat Nov 16, 2024 1:32 am
by Synthe6
You're using KDE plasma, right? I get the same issue in 2.0.15 but you can make a Window rule for Factorio, in order to force it to your preferred location. It's in the system settings, as seen as below.
11-15-2024, 20-27-16.png
11-15-2024, 20-27-16.png (136.84 KiB) Viewed 274 times
You can use the "Detect Window Properties" to get the proper information about arbitrary windows (not just Factorio) and then build your rules from there. I've also included a factorio.kwinrule file to my post (rename it to remove the .txt suffix if you want to import it easily).

Re: [2.0.18] Factorio starts on the wrong monitor.

Posted: Sat Nov 16, 2024 8:25 am
by Mighty_Pig
Synthe6 wrote: Sat Nov 16, 2024 1:32 am You're using KDE plasma, right? I get the same issue in 2.0.15 but you can make a Window rule for Factorio, in order to force it to your preferred location. It's in the system settings, as seen as below.
11-15-2024, 20-27-16.png

You can use the "Detect Window Properties" to get the proper information about arbitrary windows (not just Factorio) and then build your rules from there. I've also included a factorio.kwinrule file to my post (rename it to remove the .txt suffix if you want to import it easily).
Yes I am, thank you for this info. Haven't tried it yet.

But I still wonder where the cause of the problem is. For now I'll leave it open in the bug report even if this solves it since it's just a bandaid to the real problem.

Re: [2.0.18] Factorio starts on the wrong monitor.

Posted: Wed Nov 20, 2024 11:27 am
by oekelly
This happens to me also, using KDE Plasma 6.2.3 on Nobara Linux 40 (Fedora 40).