gamescope icon indicating copy to clipboard operation
gamescope copied to clipboard

Mouse not functioning correctly with the latest update (3.14.29)

Open 4nexus5 opened this issue 1 year ago • 19 comments

I updated my gamescope to the latest version yesterday and after updating my mouse did everything except work correctly in Counter-Strike 2. On the first launch, the cursor was still visible while in match even though it shouldn't be and no matter in what direction or how fast I move my mouse, I keep looking down and spinning very fast. I tried relaunching CS2 and that gave me a different outcome: everything was inverted and a bit slow. Moving mouse to the left resulted in the cursor moving right and vice versa, same for up and down. On another relaunch, the cursor was moving correctly, it wasn't inverted, but it was limited to a small space, almost like it is limited to the top left part of the monitor. Downgrading to 3.10.24 through paccache fixed the problem for me.

4nexus5 avatar Aug 11 '24 16:08 4nexus5

Same issue on cyberpunk 2077

xhenner avatar Aug 11 '24 19:08 xhenner

same for me. went back to 3.14.24 and all works as expected

PadTrick avatar Aug 15 '24 19:08 PadTrick

Same for me, it used to work before the last update, now every game doesn't grab the cursor when gamescope is used

HenrikDK2 avatar Aug 28 '24 13:08 HenrikDK2

--force-grab-cursor kinda fixes it, in my case it makes the cursor insanely fast and if you move it to a new workspace it will loss hold of the window unless you take it out of fullscreen mode

benbuch avatar Aug 28 '24 18:08 benbuch

I'm probably seeing the same issue here. I recently updated from v3.14.24 to v3.15.5. Noticed that there are now some games where the mouse input is no longer working. Examples are SOMA and Resident Evil 8.

The mouse still works in the game menu, i.e. when the game shows a mouse cursor which you can move around. But the mouse no longer generates any input when being in-game.

I bisected and this is the bad commit: https://github.com/ValveSoftware/gamescope/commit/69610ec52429fecbe94c4c042cc42ab43e0491f8

Well, this one is about relative mouse movements, so this bisection result is sensible I guess. I've also double-checked by reverting this specific commit on top of v3.14.28 -- which also works.

I'm using gamescope in conjunction with the DRM backend (greeter starts gamescope and inside a Steam session), so --force-grab-cursor does not help me here.

tobiasjakobi avatar Sep 10 '24 21:09 tobiasjakobi

Please disregard my last comment. I wrote bullshit.

The problems I'm seeing with SOMA are not related to the commit I posted above. SOMA does have mouse issues, but they happen sporadically and right at the start of the game, i.e. where the protagonist is waking up from a dream because of his ringing phone. In this situation the mouse look is restricted, i.e. I can't freely look around but I'm restricted to a small portion of the screen.

This restriction is by game design. The issue that sporadically happens is that the restricted area appears to have zero size. The game does receive input from the mouse, but view is immediately forced back to the original point. It's like a really strong rubberbanding effect going on.

This results in normal mouse movement to appear to have no effect at all. Only if the movement is fast, small movement is seen, but, like I said above, immediately corrected by the game engine.

Hence I'm not sure if we're really seeing a Gamescope bug here. The problem also usually goes away after restarting the game once or twice.

Resident Evil 8 on the other hand is a different thing, and I'm going to open a separate issue for that one.

tobiasjakobi avatar Sep 18 '24 18:09 tobiasjakobi

I am still having this issue with CS2 on Gamescope 3.15.11; my mouse moves inverted and is hitting "bounds" with CS2.

HurricanePootis avatar Sep 24 '24 17:09 HurricanePootis

Same for me, this issue started with version 3.14.29. the last version to work for me is 3.14.24.

benbuch avatar Sep 30 '24 18:09 benbuch

Yeah, can't update gamescope due to this, still stuck on 3.14.24-1

iraizo avatar Oct 06 '24 14:10 iraizo

Still broken on 3.15.5

bljordan avatar Oct 14 '24 23:10 bljordan

This is how it works for me currently: I'm stuck inside a small box, and the movement is reversed.

https://github.com/user-attachments/assets/64e45992-764e-41dd-9338-d17caf4253c6

benbuch avatar Oct 20 '24 21:10 benbuch

What this kind of stinks of is something related to this line in the gamescope log when setting a custom resolution:

[gamescope] [Info] edid: Patching res 800x1280 -> 2560x1440

Is it possible that this pre-patched screen resolution is making it into the game somehow? I also notice this issue with Halo Infinite.

ProjectSynchro avatar Dec 08 '24 12:12 ProjectSynchro

If you load the steam overlay via LD_PRELOAD="" gamescope -f -- env LD_PRELOAD="$HOME/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so" %command% you can fix it by opening and closing it

CallieEZ avatar Dec 20 '24 19:12 CallieEZ

I'm still having this issue on 3.15.15

SaphiraKai avatar Jan 03 '25 02:01 SaphiraKai

me too, i'm still using 3.14.22 until this issue is fixed.

PadTrick avatar Jan 03 '25 02:01 PadTrick

Same here. I'm on KDE Plasma 6.3 (wayland). Using --force-grab-cursor fixes this for me.

Also I've noticed I can't type an underscore _. It always results in -, like the shift key is being ignored.

incognico avatar Feb 14 '25 21:02 incognico

Same here. I'm on KDE Plasma 6.3 (wayland). Using --force-grab-cursor fixes this for me.

Also I've noticed I can't type an underscore _. It always results in -, like the shift key is being ignored.

yes for me also. cant type uppercase at all and for that reason i cant type ?!"§$% etc. very annoying (qwertz keyboard). my first thought was it was switched to qwerty, but it isnt.

being not able to type correctly is not that bad as the mouse issue, but still very annoying. still using the downgraded version until this issues are fixed

PadTrick avatar Feb 14 '25 21:02 PadTrick

Hello @incognico, @PadTrick, you're looking for #1740 instead of this issue report.

kisak-valve avatar Feb 14 '25 22:02 kisak-valve

question: Why is something hidden as "off topic" if it's an explanation of a new problem that happens if you use the new version with --force-grab-cursor ?

PadTrick avatar Feb 15 '25 11:02 PadTrick

As this still appears to be an issue, you can build 3.14.24 from source with included dependencies from a specific commit in OpenSUSE's gamescope git repo. --force-grab-cursor works but isn't a solution as it causes other issues.

biggestsonicfan avatar May 11 '25 22:05 biggestsonicfan

This is still an issue with version 3.16.4 when attempting to play Team Fortress 2. Mouse goes upside down and hits the window boundaries when aiming, there are no issues with actually moving the actual mouse cursor in menus. In-game resolution is set to 2560x1440 and it runs in fullscreen.

Steam launch options: gamescope --mangoapp --adaptive-sync -f -W 2560 -H 1440 -r 400 -- gamemoderun %command% -novid -console -nostartupsound +sensitivity 1.6

GreenSwede avatar Jul 03 '25 18:07 GreenSwede