hmlendea / gfn-electron

Linux Desktop client for Nvidia's GeForce NOW game streaming service
GNU General Public License v3.0
500 stars 62 forks source link

Can't use xbox controller #67

Closed re64trh5hheterrethg closed 2 years ago

re64trh5hheterrethg commented 3 years ago

Hi, Thanks for this useful app. I can't use controller in-game (rocket league). I'm using a xbox gamepad, that is well recognised in gamepadAPI testing websites. So I guess flatpack sandboxing is blocking it. Do you have any idea to get it working? Thanks!

wkitty42 commented 3 years ago

looking for same, here... need my controller for several games... kbd+mouse just doesn't work for me... i mean it does but i have other physical problems that get in the way... controller is best way for me and others...

hmlendea commented 2 years ago

Is this still an issue? If so, which version are you using and which installation method?

wkitty42 commented 2 years ago

yes, it is for me... i just tested it by loading Assassin's Creed: Valhalla in my GFN (free) installation via my Epic account... in the game's settings, the controller input mode is set to mouse&keyboard and is greyed out so it cannot be changed...

as another test, i loaded into my Tomb Raider game via my steam account... same thing... keyboard&mouse only with nothing indicating a controller is available at all...

i normally play both games with my controller when i use my local installation of them...

i find nothing in the GFN settings that tells me if my controller(s) are even found... according to Settings->About i'm using GFN 2.0.34.138/ro...

PS: sorry for the multiple edits to this response...

hmlendea commented 2 years ago

Which version of geforcenow-electron (not GFN itself) are you using and which installation method did you use (snap, flatpak, etc)?

wkitty42 commented 2 years ago

"snap list" shows this: geforcenow 1.1.4 9 latest/stable popey -

hmlendea commented 2 years ago

That's another snap. Install geforcenow-electron (https://snapcraft.io/geforcenow-electron) instead of geforcenow. The latest version is 1.1.9.

wkitty42 commented 2 years ago

ooooohhhhhhh! i didn't realize there were different ones... will i keep my current settings and account log on stuff?

hmlendea commented 2 years ago

I don't know

wkitty42 commented 2 years ago

fair enough :)

wkitty42 commented 2 years ago

ok, i've installed your geforcenow-electron snap and still have the same... i see no way to determine if my controller is being seen... today i tested with ubisoft Assassins Creed: Valhalla, steam Tomb Raider, and steam No Man's Sky (i have 1000+ hours in it all with controller)... none of them saw the controller... when i play them via my local installations (ubisoft via lutris and the others via steam), they have no problems finding and using the controller...

to be clear, i have an Xbox One S wireless controller that is connected to my system via usb cable... wireless via bluetooth works but i was having dropouts and disconnects with it so have been running wired since a few days after installation...

is there a command line option which will output loading and diagnostic messages to the console?

could it be that the free GFN accounts simply do not have access to the controller?

zanito commented 2 years ago

Same issue for me using the flatpak version of the app 1.1.11 installed via flathub, if I use Chrome web version the controller works fine and is detected by the games I have tried. Using PS3 controller over bluetooth. My guess is probably flatpak related and I tried to adjust the permissions using flatseal but no luck. Thank for the really excellent work with this app by the way. It works really well apart for the issue with the controller, I would much prefer it to using chrome in my system.

wkitty42 commented 2 years ago

is it possible that we need to manually enable this snap to access our joystick and controller hardware with snap connect geforcenow-electron:joystick??

i ask because i notice with the snap connections geforcenow-electron command that joystick, audio-record, and pulseaudio plugs are not connected to any slots...

[edit] FWIW: i did run the above connect command and the connections list does now show joystick is connected but it did not enable me to use my controller in any of the games i tried on my GFN free account... are free accounts restricted to only using kbd/mouse???

Etaash-mathamsetty commented 2 years ago

im having this issue with the flatpak, I am using a dualsense controller. edit: dosen't work with my xbox controller either :/

aeberlein commented 2 years ago

I had the same issue with the controller not working with the flatpak. Running this command flatpak --user override --filesystem=/run/udev:ro io.github.hmlendea.geforcenow-electron allowed it to work.

hmlendea commented 2 years ago

Documentation has just been written here in regards to troubleshooting this problem, in #141

If the issue still persist even after applying those fixes, feel free to reopen this issue.

wkitty42 commented 2 years ago

that's the flatpak stuff but what about the snaps? i've already done the snap connection geforcenow-electron:joystick thing to no avail...

another maybe important thing is if free GFN accounts can even use their joysticks and controllers or not... i've asked that specific question in several GFN related places (eg: the GFN forums, GFN related snap forums, etc) but it has not been answered by anyone... i know that's not on you but it is quite saddening and frustrating to a point...

1235467 commented 2 years ago

controllers work in free GFN account in windows client.idk whether they work in broswer.Mine xbox controller isn't working as well.

wkitty42 commented 2 years ago

thanks for the info, @1235467 ... it confirms my experience... i've never tried using GFN via a browser... i only use firefox for numerous reasons even though a lot of people say using GFN via the chrome browser works... unfortunately, most all of them are windows users so have no idea what we are dealing with on linux setups...

paulatz commented 1 year ago

I confirm that the flatpack works with the workaround from wkitty42, and also that the snap does not work. It could be a problem of the Apparmor profile that does not allow access to the controller (Another bug of the snap which is definitely Apparmor is that the screensaver is not inhibited while playing)

My workarond was to add "deb" to the build targets, build a .deb package and use it instead of this snap nonsense ;-).

cheers