Mouse buttons stop working during gaming
Dealing with a weird problem. Sometimes during gaming (Kingdom Come Deliverance 2 on Steam) certain windows become unresponsive to LMB/RMB. Sometimes it's the game itself, mostly its 2nd monitor windows such as Discord or my browser. A quick restart of the application fixes the problem but obviously that's annoying to have to do. Mouse is completely normal in all other windows so it's not an issue with the mouse itself. Anybody know what this could be caused by?
Additional info: mouse is Logitech MX Master 3S via BT, ISO is the Nvidia Plasma KDE, browser in question is Firefox. Only installed Bazzite 2 days ago, so beyond installing a few applications from Discovery and games from Steam/Epic, no major modifications were done to the environment.
Solution:Jump to solution
gamescope -W 1920 -H 1080 -f --force-grab-cursor -- %command%
(swap resolution to whatever you want to actually use)23 Replies
Just some quick fixes that I could think of
Try another USB port
The mouse is connected via Bluetooth
ah
And again, it works compeletely normally in all other windows
try gamescope?
Symptom wise, it sounds like the mouse cursor looses focus to the app.
Gamescope?
Sorry, reaaaally new to Linux
are you trying to run a game through steam or just a desktop app
Just through Steam
then in the launch options try adding
wrong syntax my bad
run in a terminal to see the options that you can add
Solution
gamescope -W 1920 -H 1080 -f --force-grab-cursor -- %command%
(swap resolution to whatever you want to actually use)Will try
The awkward thing is, it happens at random like once every couple hours, so I won't know if it's fixed for a while :OtterSweats:
are you running more than 1 monitor?
ye
and it's always the one that's not in focus that encounters the issue
So if I'm doing something on monitor 2, and the game is running on Monitor 1, game might stop responding. If it happens when I'm gaming, then whatever is on "top" in Monitor 2 will stop responding
One thing I've wondered is that officially, Kingdom Come Deliverance 2 doesn't have a "Borderless" mode, so maybe that's causing the issue?
it shouldn't be a problem
at least not that i know of
just try if gamescope solves it
Hmm.. my mouse senesitivty seems to be REALLY low when running the command from Eternal Hunter :thonk:
oh yea it does mess with your sensitivity
iirc add
between and
sorry small s not big s
Yeah the --force-grab-cursor basically don't respect mouse acelleration. So you could try without it and just see if the issue happens, and only try to add it if it does.
Ahh, I see!
then I'll just turn off mouse accel in my system
I was wondering why I needed to have 600DPI when I usually roll on 850
if you find the sens is still different you can try something like
adjust the number behind -s
Okay, things seem to be running okay for now :OtterOk:
Thanks a lot for the help, hopefull this fixes the issue
Also, is gamescope something I should generally be using?
for games it usually fixes most weird stuff due to the compositor
Gotcha, well, will try to use it from now on
Thanks a lot again
:OtterHugs: