gfn-electron icon indicating copy to clipboard operation
gfn-electron copied to clipboard

[BUG] Limited mouse movement

Open spectrum705 opened this issue 1 year ago • 28 comments

Describe the bug

I am noticing limited / locked mouse movement across both axis. idk why it happens. I have the latest client. I am using ubuntu

To Reproduce

I dont really no the way but i was playing genshin impact

Screenshots

No response

Operating System

ubuntu

Desktop Environment

GNONE 42.9

Display Server

wayland i think

Installation method

flatpak

Version

2.1.2

Is this a fresh install of the app or an update from a past version?

update

Did this issue appear right away upon installation/updating, or spontaneously?

all the time, even previously

Additional context

No response

spectrum705 avatar Aug 05 '24 21:08 spectrum705

I actually experience the mouse not being fully captured as well if you have multiple monitors. Not sure if this is due to using Wayland or not.

unixbird avatar Aug 14 '24 03:08 unixbird

I only have single monitor tho

spectrum705 avatar Aug 14 '24 13:08 spectrum705

i have the same issue. i am on garuda (arch) installed from flatpak. this may or may not be related, but when it is booting up, the mouse does not respond at all. and pressing esc in game kind of unbinds the mouse from the system and you have to click to have it be part of it again.

Freaksed avatar Aug 15 '24 01:08 Freaksed

yeah, another note. pressing escape unbinds the mouse. esc is need for closing menu and a lot of things in game. can we do something about this?

spectrum705 avatar Aug 15 '24 18:08 spectrum705

This happens to me too while playing genshin (single monitor, flatpak version of gfn)

Edit: it only happens on wayland. Launching the game on gfn in a x11 session produces no unexcpected behaviour

Monoxide8969 avatar Aug 28 '24 17:08 Monoxide8969

it works smoothly on x11?

spectrum705 avatar Aug 30 '24 06:08 spectrum705

It does on my machine

Monoxide8969 avatar Aug 30 '24 07:08 Monoxide8969

Also managed to replicate this error. It's for 100% related to the Wayland.

MGM175 avatar Aug 31 '24 09:08 MGM175

so i can play if i log in with x11 right guys?

spectrum705 avatar Sep 01 '24 05:09 spectrum705

so i can play if i log in with x11 right guys?

Correct. I tested this out just now actually and it worked perfectly on Plasma 6 X11.

unixbird avatar Sep 02 '24 04:09 unixbird

oh okay

spectrum705 avatar Sep 07 '24 14:09 spectrum705

Also got it working under Wayland using Gamescope:

gamescope -b -W 1920 -H 1080 -r 60 --backend sdl --expose-wayland --prefer-vk-device --force-grab-cursor -- geforcenow

Probably not all parameters are needed, but this is what worked for me. Should note though that this only worked with the AUR version, and not with the Flatpak. Would be pretty cool though to integrate gamescope into the Flatpak, since it also brings upscaling. GeForce Now streaming only goes as high as 1080p

GeorgelPreput avatar Oct 13 '24 11:10 GeorgelPreput

I had the same issue with the app in flatpak on wayland. It is working fine when I install it following the instructions in README.

re64trh5hheterrethg avatar Dec 13 '24 20:12 re64trh5hheterrethg

Apparently this bug does not happen when using the Appimage version, while they solve it they can choose to use this option instead of using Flatpak, (btw using the "Nix Version" is also not an option since there is the same bug)

RickMars-Tech avatar Feb 08 '25 18:02 RickMars-Tech

In addition to running it on an x11 session, running it on Xwayland also does fix it; that is why it works on AppImage because it runs with Xwayland by default.

Noteworthy is that when I try to run GeForce Now through Brave in native Wayland, the error is also fixed. So it could be fixable under native Wayland, but until then, the Flatpak version shouldn't enable Wayland by default.

Play-InTheWay avatar Mar 31 '25 20:03 Play-InTheWay

Apparently this bug does not happen when using the Appimage version, while they solve it they can choose to use this option instead of using Flatpak, (btw using the "Nix Version" is also not an option since there is the same bug) EDIT: it opens up now i am having trouble running the app image version on ubuntu

spectrum705 avatar Apr 09 '25 20:04 spectrum705

Same issue

Kaympe20 avatar Apr 11 '25 12:04 Kaympe20

You all can fix it by running it on Xwayland; do it by adding this to the executable command: "XDG_SESSION_TYPE=x11"

Play-InTheWay avatar Apr 11 '25 17:04 Play-InTheWay

You all can fix it by running it on Xwayland; do it by adding this to the executable command: "XDG_SESSION_TYPE=x11"

i open the application directly by clicking the app image file, where should i add this?

spectrum705 avatar Apr 11 '25 17:04 spectrum705

You all can fix it by running it on Xwayland; do it by adding this to the executable command: "XDG_SESSION_TYPE=x11"

i open the application directly by clicking the app image file, where should i add this?

Open a terminal in the same folder where the AppImage is and run XDG_SESSION_TYPE=x11 ./geforcenow-electron_2.1.3_linux.AppImage Though in general for managing AppImages, I recommend using something like Gear Lever, which automatically creates .desktops and allows easy access and modifications.

Play-InTheWay avatar Apr 11 '25 18:04 Play-InTheWay

You all can fix it by running it on Xwayland; do it by adding this to the executable command: "XDG_SESSION_TYPE=x11"

i open the application directly by clicking the app image file, where should i add this?

Open a terminal in the same folder where the AppImage is and run XDG_SESSION_TYPE=x11 ./geforcenow-electron_2.1.3_linux.AppImage Though in general for managing AppImages, I recommend using something like Gear Lever, which automatically creates .desktops and allows easy access and modifications.

when i ran it i got this error Running as root without --no-sandbox is not supported. and when i added --no-sandbox tag , gfn window did open but it was jusst stuck on white screen

spectrum705 avatar Apr 12 '25 14:04 spectrum705

You all can fix it by running it on Xwayland; do it by adding this to the executable command: "XDG_SESSION_TYPE=x11"

i open the application directly by clicking the app image file, where should i add this?

Open a terminal in the same folder where the AppImage is and run XDG_SESSION_TYPE=x11 ./geforcenow-electron_2.1.3_linux.AppImage Though in general for managing AppImages, I recommend using something like Gear Lever, which automatically creates .desktops and allows easy access and modifications.

when i ran it i got this error Running as root without --no-sandbox is not supported. and when i added --no-sandbox tag , gfn window did open but it was jusst stuck on white screen

Don't run it as root.

Play-InTheWay avatar Apr 12 '25 17:04 Play-InTheWay

i upgraded ubuntu, that seems to be running x11 by default. it runs better now hey @Play-InTheWay do you know how to exit tho? i press Esc but that doest exist gfn.

spectrum705 avatar May 18 '25 02:05 spectrum705

i upgraded ubuntu, that seems to be running x11 by default. it runs better now hey @Play-InTheWay do you know how to exit tho? i press Esc but that doest exist gfn.

I can do it without issue. I don't know how you could fix it.

Play-InTheWay avatar May 18 '25 03:05 Play-InTheWay

even when i hold Esc key, nothing seems to happen

spectrum705 avatar May 18 '25 13:05 spectrum705

You all can fix it by running it on Xwayland; do it by adding this to the executable command: "XDG_SESSION_TYPE=x11"

This really does the trick for me! 🥳

even when i hold Esc key, nothing seems to happen

@spectrum705 For exiting, have you tried Alt+F4? From what I can see, it has been added as a binding: https://github.com/hmlendea/gfn-electron/blob/427bd0c7312630fb62df732848a046423cd8e06a/scripts/main.js#L114

realestninja avatar May 21 '25 20:05 realestninja

@realestninja yeah i tried Alt + F4 too. didnt seem to close it

spectrum705 avatar May 22 '25 11:05 spectrum705

Same issue here. Bazzite with GNOME + Wayland.

shioprince avatar Jul 21 '25 12:07 shioprince