Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No gamepad input while in game mode (gamescope) when adding games to Steam via Lutris #1500

Open
RodoMa92 opened this issue Aug 15, 2024 · 8 comments
Labels
bug Something isn't working gamescope Issues related to Valve's Gamescope program

Comments

@RodoMa92
Copy link
Contributor

RodoMa92 commented Aug 15, 2024

Describe the bug

I can't get any gamepad input while using the provided Lutris installed software while starting games on game mode. If I enable gamescope from the lutris settings the game will completely fail to start with a weird non gamescope layer error. Without it enabled the game start fine, but with no gamepad input available. On desktop mode both (non gamescope/gamescope enabled in lutris) work 100% fine in my testing.

What did you expect to happen?

Gamepad inputs working in game mode for games installed via Lutris

Output of rpm-ostree status

State: idle
Deployments:
● ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-deck:stable
                   Digest: sha256:6ce12036986eb6b37658dac3d335ce826106cf46a628516be96bf966bc8f6cbf
                  Version: v3.6-40.20240809.0 (2024-08-09T21:14:34Z)
          LayeredPackages: android-tools aspell-it bchunk bluez-tools
                           cdemu-client cdemu-daemon fluidsynth gh kde-cdemu-manager-kf6
                           patch powerline-fonts qt5pas rasdaemon rmlint smb4k sqlite-devel
                           strace tldr valgrind xlsclients yt-dlp zsh
                Initramfs: '"-I /etc/crypttab /etc/modprobe.d/amdgpu.conf /etc/modprobe.d/deck-blacklist.conf"' 

  ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-deck:stable
                   Digest: sha256:fa9d7c77f4be2d451aa62cc232649afd087a2ea0f539df891ef4bb5cb6ac488a
                  Version: 40.20240807.0 (2024-08-07T07:32:24Z)
          LayeredPackages: android-tools aspell-it bchunk bluez-tools
                           cdemu-client cdemu-daemon fluidsynth gh kde-cdemu-manager-kf6
                           patch powerline-fonts qt5pas rasdaemon rmlint
                           setroubleshoot-server smb4k sqlite-devel strace tldr valgrind
                           xlsclients yt-dlp zsh
                Initramfs: '"-I /etc/crypttab /etc/modprobe.d/amdgpu.conf /etc/modprobe.d/deck-blacklist.conf"'

Hardware

Jupiter

Extra information or context

From what I've seen here, xwayland + libei is required to get this to work. Is this correctly enabled in the bazzite builds of gamescope?

@dosubot dosubot bot added bug Something isn't working gamescope Issues related to Valve's Gamescope program labels Aug 15, 2024
@fsworld009
Copy link

fsworld009 commented Aug 16, 2024

Observed the same issue, Steam Input is not working for Lutris games in game mode on my Bazzite installation on GPD Win 4 as well.

I'm currently using Flatpak Lutris as workaround. With the exact same game installation step (manually configured Wine game), the Steam input works when launching games in Flatpak Lutris.

@RodoMa92
Copy link
Contributor Author

Yep, can confirm that switching to flatpak as a workaround makes it work, since it's using flatpak gamescope instead of the built in one. However we lose additional fixes from bazzite, so this is not the ideal path to make it work.

@matte-schwartz
Copy link
Contributor

From what I've seen here, xwayland + libei is required to get this to work. Is this correctly enabled in the bazzite builds of gamescope?

You would have no cursor in gamescope-session whatsoever if libei/input-emulation was disabled in the gamescope build.

@RodoMa92 RodoMa92 changed the title No gamepad input while in game mode (gamescope) while adding games via Lutris to Steam No gamepad input while in game mode (gamescope) when adding games to Steam via Lutris Aug 19, 2024
@fsworld009
Copy link

libei seems to be enabled according to https://github.com/ublue-os/bazzite/blob/0f35915/spec_files/gamescope/gamescope.spec#L35 ?

Also, when I was testing this, I didn't enable any gamescope option in both Lutris and I don't have flatpak gamescope installe, so I'm not sure if the issue is related to gamescope.

@RodoMa92
Copy link
Contributor Author

libei seems to be enabled according to https://github.com/ublue-os/bazzite/blob/0f35915/spec_files/gamescope/gamescope.spec#L35 ?

Also, when I was testing this, I didn't enable any gamescope option in both Lutris and I don't have flatpak gamescope installe, so I'm not sure if the issue is related to gamescope.

When you run games in gamemode it will run them in gamescope by default, so since I doubt that there are other variables at play I've assumed that the embedded gamescope build is at fault here. Might be wrong though.

@dragaoazuljr
Copy link

I have the same issue but using Heroic Game Laucher, when starting the game using gamescope with the -e flag e.g gamescope -f -W 1920 -H 1080 -e -- heroic --no-gui --no-sandbox "heroic://launch/gog/1495134320". Removing the -e flag the input works on the game, but steam overlay don't. What I found weird is that with the -e flag, games from steam works fine (Input, Overlay).

The same issue happens on another pc running a arch-based distro. So I don't think the problem is related to Bazzite.

@Zeglius
Copy link
Contributor

Zeglius commented Nov 6, 2024

I have the same issue but using Heroic Game Laucher, when starting the game using gamescope with the -e flag e.g gamescope -f -W 1920 -H 1080 -e -- heroic --no-gui --no-sandbox "heroic://launch/gog/1495134320". Removing the -e flag the input works on the game, but steam overlay don't. What I found weird is that with the -e flag, games from steam works fine (Input, Overlay).

The same issue happens on another pc running a arch-based distro. So I don't think the problem is related to Bazzite.

wouldn't be that weird, given the long version of -e is --steam.
Chances are there is some logic under that flag to improve compatibility with the steam client and games launched from there, but breaks whenever it is other than steam launching the game

@dragaoazuljr
Copy link

Both use proton, shouldn't be that different. I bet is some environment variable or some flag we are missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working gamescope Issues related to Valve's Gamescope program
Projects
None yet
Development

No branches or pull requests

5 participants