ValveSoftware / gamescope

SteamOS session compositing window manager
Other
3.17k stars 213 forks source link

drm: TTY + AMD #1469

Open rothn opened 3 months ago

rothn commented 3 months ago

Issue Description: gamescope fails to initialize due to its DRM module not finding any connected (display) connector on a Framework 16 laptop with RX 7700S dGPU.

Expected Behavior: The eDP-1 connection should read as "connected" in the logs, and gamescope should start.

Actual Behavior: The eDP-1 connection reads as "disconnected" in the logs, and gamescope fails to start.

Command: STEAM_MULTIPLE_XWAYLANDS=1 gamescope -W 2560 -H 1600 -r 165 -e --xwayland-count 2 -- steam -gamepadui -steamdeck

[gamescope] [Info]  console: gamescope version 3.14.29-9-g94271f31
[gamescope] [Info]  vulkan: selecting physical device 'AMD Radeon RX 7700S (RADV NAVI33)': queue family 1 (general queue family 0)
[gamescope] [Info]  vulkan: physical device supports DRM format modifiers
[gamescope] [Info]  wlserver: [backend/headless/backend.c:67] Creating headless backend
[gamescope] [Info]  wlserver: [libseat] [libseat/backend/seatd.c:64] Could not connect to socket /run/seatd.sock: No such file or directory
[gamescope] [Info]  wlserver: [libseat] [libseat/libseat.c:76] Backend 'seatd' failed to open seat, skipping
[gamescope] [Info]  wlserver: [libseat] [libseat/libseat.c:73] Seat opened with backend 'logind'
[gamescope] [Info]  wlserver: [backend/session/session.c:108] Successfully loaded libseat session
[gamescope] [Info]  drm: opening DRM node '/dev/dri/card1'
[gamescope] [Info]  drm: Connectors:
[gamescope] [Info]  drm:   DP-1 (disconnected)
[gamescope] [Info]  drm:   eDP-1 (disconnected)
[gamescope] [Info]  drm: cannot find any connected connector!
[gamescope] [Error] drm: Failed to find a primary plane
Failed to create backend.

Possibly related to: https://github.com/ValveSoftware/gamescope/issues/1125

misyltoad commented 3 months ago

Is this a gamescope bug? If the connector reads as disconnected... I am not really sure what we can do about it?

Can you send output of drm_info?

misyltoad commented 3 months ago

Maybe we are missing some dpms/code to "connect" or something... But I haven't seen that before... :/

rothn commented 2 months ago

Sure! Thanks for asking. The computer is a Framework 16 laptop with dGPU. I'm attaching the output of drm_info here as "drm_info.txt": drm_info.txt

rothn commented 2 months ago

I see that drm_info indeed reports eDP-1 as disconnected, but it is definitely connected-- the screen is on and working!

crashniels commented 2 weeks ago

Same issue here with a Zephyrus G14 2022 (680M + 6700S). If i disable the 6700S it works fine but once I enable it gamescope can't seem to find the connector. It looks for the screen on the dGPU. The screen is connected to the iGPU.
drm_info_dgpu_igpu.txt drm_info_igpu_only.txt