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:
gamescope -W 1920 -H 1080 -f --force-grab-cursor -- %command% (swap resolution to whatever you want to actually use)
Jump to solution
23 Replies
皇家海星
皇家海星3w ago
Just some quick fixes that I could think of Try another USB port
MrOtterly
MrOtterlyOP3w ago
The mouse is connected via Bluetooth
皇家海星
皇家海星3w ago
ah
MrOtterly
MrOtterlyOP3w ago
And again, it works compeletely normally in all other windows
皇家海星
皇家海星3w ago
try gamescope?
Eternal_Hunter
Symptom wise, it sounds like the mouse cursor looses focus to the app.
MrOtterly
MrOtterlyOP3w ago
Gamescope? Sorry, reaaaally new to Linux
皇家海星
皇家海星3w ago
are you trying to run a game through steam or just a desktop app
MrOtterly
MrOtterlyOP3w ago
Just through Steam
皇家海星
皇家海星3w ago
then in the launch options try adding
gamescope -- %command%
gamescope -- %command%
wrong syntax my bad run
gamescope --help
gamescope --help
in a terminal to see the options that you can add
Solution
Eternal_Hunter
gamescope -W 1920 -H 1080 -f --force-grab-cursor -- %command% (swap resolution to whatever you want to actually use)
MrOtterly
MrOtterlyOP3w ago
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:
皇家海星
皇家海星3w ago
are you running more than 1 monitor?
MrOtterly
MrOtterlyOP3w ago
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?
皇家海星
皇家海星3w ago
it shouldn't be a problem at least not that i know of just try if gamescope solves it
MrOtterly
MrOtterlyOP3w ago
Hmm.. my mouse senesitivty seems to be REALLY low when running the command from Eternal Hunter :thonk:
皇家海星
皇家海星3w ago
oh yea it does mess with your sensitivity iirc add
-s -0.3
-s -0.3
between
gamescope
gamescope
and
-- %command%
-- %command%
sorry small s not big s
Eternal_Hunter
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.
MrOtterly
MrOtterlyOP3w ago
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
皇家海星
皇家海星3w ago
if you find the sens is still different you can try something like
gamescope -W 1920 -H 1080 -f -s 0 -- %command%
gamescope -W 1920 -H 1080 -f -s 0 -- %command%
adjust the number behind -s
MrOtterly
MrOtterlyOP3w ago
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?
皇家海星
皇家海星3w ago
for games it usually fixes most weird stuff due to the compositor
MrOtterly
MrOtterlyOP3w ago
Gotcha, well, will try to use it from now on Thanks a lot again :OtterHugs:

Did you find this page helpful?