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

Mighty_Pig
Burner Inserter
Burner Inserter
Posts: 9
Joined: Fri Feb 23, 2024 9:45 am
Contact:

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

Post 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 332 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 332 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.
Last edited by Mighty_Pig on Mon Dec 09, 2024 6:21 pm, edited 4 times in total.
Synthe6
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Jun 17, 2024 5:26 pm
Contact:

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

Post 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 268 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).
Attachments
factorio.kwinrule.txt
(253 Bytes) Downloaded 11 times
Mighty_Pig
Burner Inserter
Burner Inserter
Posts: 9
Joined: Fri Feb 23, 2024 9:45 am
Contact:

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

Post 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.
oekelly
Burner Inserter
Burner Inserter
Posts: 5
Joined: Wed Jan 17, 2018 6:31 am
Contact:

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

Post by oekelly »

This happens to me also, using KDE Plasma 6.2.3 on Nobara Linux 40 (Fedora 40).
Post Reply

Return to “Assigned”