[2.1.17] Occasional doubling of left clicks on Linux

Post your bugs and problems so we can fix them.
everything-narrative
Inserter
Inserter
Posts: 29
Joined: Fri Aug 16, 2019 5:31 pm
Contact:

[2.1.17] Occasional doubling of left clicks on Linux

Post by everything-narrative »

What happens?
Occasionally during gameplay, mouse clicks will register twice. The mouse-click sound plays twice.

It happens once every 1-10 minutes, enough to be noticeable

This happens with:
  • Queing crafting from the crafting menu: upon clicking a recipe icon once, two crafts will be queued.
  • Attaching red/green wires: the 'wrong' sound will play as when you click the same entity twice while holding the red or green wire tool.
  • Mass-moving inventory contents: when a machine UI is open, ctrl+clicking on an item stack in inventory, both it and the next stack will be transferred.
  • Construction: when constructing buildings, the "cannot build, <building> is in the way" message shows when placing a building.
And others, but these are the ones where it is most noticeable/detrimental to gameplay.
What do I expect?
That one mouse click equals one click event in the game.
Workarounds?
Living with it: unqueuin crafts, being careful with inventory transfers, etc.
Have I ruled out alternative explanations?
I am reasonably certain it is not a mod issue because it happens with numerous different configurations of mods, as well as only the base/vanilla game. It happens on multiple different saves.

I am reasonably certain this is NOT an issue outside the game:
  • It happens on two different mice.
  • It happens on two different USB ports for the mice.
  • It happens on two different computers running the same OS configuration.
  • It happens on both steam install and a direct/standalone install of the game.
  • It happens both on stable and experimental branch..
  • I have inspected input event logs in my operating system which shows the OS only registers a single click event when the game registers two.
System:
  • Operating system: Linux
  • Distro: NixOS 26.05
  • Window manager: Xfce 4
  • Display server: X11
  • Compositor: Xfwm4
  • CPU: AMD Ryzen 7 5800X
  • Ram: 64GB
  • GPU: Radeon RX 6600
Log file.
Log file is of a game started with only the base mod. I started a fresh freeplay save, gathered enough iron plate to unlock clicked the craft button for an offshore pump and two of them crafted.
Attachments
factorio-current.log
(6.77 KiB) Downloaded 5 times
Last edited by everything-narrative on Sat Aug 29, 2026 11:23 am, edited 1 time in total.
User avatar
pioruns
Filter Inserter
Filter Inserter
Posts: 364
Joined: Tue Nov 05, 2024 3:38 pm
Contact:

Re: [2.1.17] Occasional doubling of left clicks on Linux

Post by pioruns »

I also use Linux, XFCE, Ryzen, Radeon, just like you. The only difference being different distro - I'm on Devuan and Xlibre display server, and you are probably on Wayland?
I cannot reproduce this.
Launch your PC from USB stick with Mint or something and check there. If extra click cannot be reproduced there, then it's your distro doing this, most likely.
It happens on two different computers running the same OS configuration
That there. Check different OS to know for sure.
Playing on: Fractal Meshify 2 RGB | AMD Ryzen 9 5950X (32) @ 3.4GHz
ASRock X570 Steel Legend | 64GiB ECC DDR4 RAM @ 3200MT/s
Radeon RX 6800 XT 16GiB | Crucial P2 SSD 500GB NVMe | 2x 2TB HDD | OS: Devuan GNU/Linux
everything-narrative
Inserter
Inserter
Posts: 29
Joined: Fri Aug 16, 2019 5:31 pm
Contact:

Re: [2.1.17] Occasional doubling of left clicks on Linux

Post by everything-narrative »

pioruns wrote: Sat Aug 29, 2026 9:04 am I also use Linux, XFCE, Ryzen, Radeon, just like you. The only difference being different distro - I'm on Devuan and Xlibre display server, and you are probably on Wayland?
I cannot reproduce this.
Launch your PC from USB stick with Mint or something and check there. If extra click cannot be reproduced there, then it's your distro doing this, most likely.
It happens on two different computers running the same OS configuration
That there. Check different OS to know for sure.
I'm running X as my display server and xfwm4 as my compositor:

Code: Select all

$ inxi -Gxx | grep compositor
Display: x11 server: X.org v: 1.21.1.24 compositor: xfwm4 v: 4.20.0
Unfortunately I don't have access to a gaming capable non-Nix system running factorio, so I can't test that very easily. Will look for options to do so.
User avatar
pioruns
Filter Inserter
Filter Inserter
Posts: 364
Joined: Tue Nov 05, 2024 3:38 pm
Contact:

Re: [2.1.17] Occasional doubling of left clicks on Linux

Post by pioruns »

Oh, sorry, I missed that part that you are running X11, just like me. So, more similarities. You even have the same amount of RAM as me (64 GB) :)

Anyway, if you flash any USB stick with Mint, boot computer from it, launch the game there, that could help resolving this. Mint should have Radeon drivers built-in.
Booting LiveUSB from a stick will not affect your existing Nix installation. Just some effort initially, but after reboot everything goes back as it were.
Playing on: Fractal Meshify 2 RGB | AMD Ryzen 9 5950X (32) @ 3.4GHz
ASRock X570 Steel Legend | 64GiB ECC DDR4 RAM @ 3200MT/s
Radeon RX 6800 XT 16GiB | Crucial P2 SSD 500GB NVMe | 2x 2TB HDD | OS: Devuan GNU/Linux
Post Reply

Return to “Bug Reports”