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

games not recieving controller input on wayland #782

Open
a73s opened this issue Feb 11, 2023 · 11 comments
Open

games not recieving controller input on wayland #782

a73s opened this issue Feb 11, 2023 · 11 comments

Comments

@a73s
Copy link

a73s commented Feb 11, 2023

Fedora 37 kde Wayland, gamescope version 3.11.49
I'm using a dual sense controller

Launch any game with gamescope on, there is no controller input, keyboard/mouse works just fine.

I tried this with big picture on and off, it's a problem for both. (This is the updated deckui big picture.)

I tried this on x11 and it's not an issue there, might have something to do with global shortcuts not implemented on Wayland.

@surafel911
Copy link

surafel911 commented Feb 14, 2023

Any additional details? How are you running gamescope? What hardware do you have? What game are you trying to run, and what settings? You can get hardware info by copying the info in the "About this System" and "Wayland Info Center" apps on the DE.

I have a very similar setup and I'd like to try and replicate this issue. Try re-running the program w/ the same conditions using " --debug-hud" and "--debug-events" flags and dump the console output to a file and paste here. Hopefully those logs will help.

@a73s
Copy link
Author

a73s commented Feb 14, 2023

Any additional details? How are you running gamescope? I have a very similar setup so I'd be interested in testing if this is happening.

I am running it throught the launch options like normal, I have yet to find a configuration of gamescope that does not have this issue. I usually just do 'gamescope -f -e %command%'. I have had this issue on both elden ring and cod black ops 3.

@SkyLeite
Copy link

SkyLeite commented Mar 21, 2023

Same issue here with Monster Hunter World and Sway. Here's the output of gamescope --debug-events --debug-hud -f -e %command% > /home/***/gamescope.log with Monster Hunter World:

gamescope.log

Hardware Information (from Steam)
Computer Information:
    Manufacturer:  Gigabyte Technology Co., Ltd.
    Model:  B450 AORUS M
    Form Factor: Desktop
    No Touch Input Detected

Processor Information:
    CPU Vendor:  AuthenticAMD
    CPU Brand:  AMD Ryzen 9 5900X 12-Core Processor            
    CPU Family:  0x19
    CPU Model:  0x21
    CPU Stepping:  0x2
    CPU Type:  0x0
    Speed:  4950 Mhz
    24 logical processors
    12 physical processors
    HyperThreading:  Supported
    FCMOV:  Supported
    SSE2:  Supported
    SSE3:  Supported
    SSSE3:  Supported
    SSE4a:  Supported
    SSE41:  Supported
    SSE42:  Supported
    AES:  Supported
    AVX:  Supported
    AVX2:  Supported
    AVX512F:  Unsupported
    AVX512PF:  Unsupported
    AVX512ER:  Unsupported
    AVX512CD:  Unsupported
    AVX512VNNI:  Unsupported
    SHA:  Supported
    CMPXCHG16B:  Supported
    LAHF/SAHF:  Supported
    PrefetchW:  Unsupported

Operating System Version:
    "NixOS 23.05 (Stoat)" (64 bit)
    Kernel Name:  Linux
    Kernel Version:  6.2.0-rc6
    X Server Vendor:  The X.Org Foundation
    X Server Release:  12201008
    X Window Manager:  wlroots wm
    Steam Runtime Version:  steam-runtime_0.20230118.0

Video Card:
    Driver:  AMD AMD Radeon Graphics (gfx1100, LLVM 15.0.7, DRM 3.49, 6.2.0-rc6)
    Driver Version:  4.6 (Compatibility Profile) Mesa 23.1.0-devel
    OpenGL Version: 4.6
    Desktop Color Depth: 24 bits per pixel
    Monitor Refresh Rate: 239 Hz
    VendorID:  0x1002
    DeviceID:  0x744c
    Revision Not Detected
    Number of Monitors:  3
    Number of Logical Video Cards:  1
    Primary Display Resolution:  5120 x 1440
    Desktop Resolution: 5120 x 2520
    Primary Display Size: 46.85" x 13.39" (48.70" diag)
                                            119.0cm x 34.0cm (123.7cm diag)
    Primary VRAM: 24576 MB

Sound card:
    Audio device: ATI R6xx HDMI

Memory:
    RAM:  48102 MB

VR Hardware:
    VR Headset: None detected

Miscellaneous:
    UI Language:  English
    LANG:  en_US.UTF-8
    Total Hard Disk Space Available:  929807 MB
    Largest Free Hard Disk Block:  136660 MB

Storage:
    Number of SSDs: 3
    SSD sizes: 2000G,1000G,1000G
    Number of HDDs: 0

Edit: As said in #822, running Steam itself through gamescope rather than a game itself makes controller input work.

@bloodwolfepc
Copy link

still have this issue also.

@BrknRobot
Copy link

I'm wondering if this is a input focus issue? I've noticed that controller input can make things happen in Steam, while the game is my focused window and receiving keyboard and mouse events.

@BrknRobot
Copy link

BrknRobot commented Oct 29, 2023

Some more testing seems to indicate this issue may be limited to games run via Proton. When I run Project Zomboid as a Linux native game, controller input is registered both with and without Gamescope. When forcing Steam to launch it via Proton Experimental however, controller input stops working with Gamescope, but continues working fine without Gamescope.

update: To confirm this isn't a recent Proton thing, I was also able to produce this behaviour with Proton 7

@danielw01
Copy link

not sure if im having the same issue, with a joystick on fedora 39, joystick is detected fine in the system and works great with flightgear, but isnt detected by basically everything else

@JoshElias
Copy link

I'm having this issue also on wayland. I built gamescope myself so I'm on the latest version.

@Pentadrago
Copy link

I ran into this issue on Arch Linux (Wayland, Plasma 6, AMD CPU and GPU) trying different games (e.g. No Straight Roads, Marvel's Avengers, Gotham Knights). In some game disabling steam input is a workaround.

@zany130
Copy link

zany130 commented Mar 14, 2024

I ran into this issue on Arch Linux (Wayland, Plasma 6, AMD CPU and GPU) trying different games (e.g. No Straight Roads, Marvel's Avengers, Gotham Knights). In some game disabling steam input is a workaround.

possibly the same as this issue? #1180 @Pentadrago

@Pentadrago
Copy link

@zany130
Thank you, that seems to be the issue in my case as steam input stopped working in the last few weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants