I'm into gaming and need precise mouse control, so I'm looking to set a higher DPI while keeping the speed consistent. On Windows, it's simple: just multiply your sensitivity by the inverse of the DPI factor. However, things get tricky on Linux. I'm using Pop!_OS with Gnome, and while I found how to set the mouse speed exactly using gsettings, the speed range is only from -1 (slowest) to 1 (fastest). Since mouse acceleration is off, this doesn't align with the Windows formula. How do I adapt this calculation to fit Gnome's range? Additionally, I also run Arch with Hyprland on my PC and want to know if its mouse sensitivity range is similar to Windows or Gnome, or if it's something different altogether.
4 Answers
There’s also a tool called Waywall. While it’s mainly for Minecraft, it lets you change game resolution and mirrors certain parts of the game. Mouse speed is managed by libinput, so you could apply the same DPI calculations across your games.
Have you considered just setting the speed to 0 in the settings? Then, you could adjust the in-game sensitivity or use your mouse's own software for DPI adjustments. That’s worked well for me!
You might want to check out the flat profile for mouse acceleration in the libinput documentation. It suggests that the multiplication factor is either 1 plus the value you set between -1 and 1, or 0.005 if that's higher. This could help in figuring out how to set your mouse speed correctly!
There’s a resource page that might help on a wiki related to Linux gaming. You can browse it for more info on mouse settings and DPI adjustments if you're looking for deeper insights.

I get that! So, it seems like you're basically adjusting the multiplier based on that range, right? It’s a bit complex if you're not into coding, but you're on the right track!