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

[BUG] Gnome 47 / Mutter 47 Failed to lease display #753

Open
davibu opened this issue Nov 18, 2024 · 4 comments
Open

[BUG] Gnome 47 / Mutter 47 Failed to lease display #753

davibu opened this issue Nov 18, 2024 · 4 comments
Labels

Comments

@davibu
Copy link

davibu commented Nov 18, 2024

Describe the bug
I'm on Debian Sid with Gnome 47 and Mutter 47.1-4. When I start SteamVR I get the error message 498:

Failed to lease display
Your desktop environment (Gnome Wayland) does not support Direct Rendering Manager leases, which is required for virtual reality.

To Reproduce
Steps to reproduce the behavior:

  1. Start SteamVR on Debian sid with Gnome Wayland 47
  2. See error

Expected behavior
I expect that SteamVR starts and leases the HMD display as Mutter 47 introduced DRM lease support.

System Information (please complete the following information):

Screenshots
Screenshot From 2024-11-18 17-28-00

Additional context
I always get the error message

SteamVR setup is incomplete, some features might be missing. See Steam client logs folder for detail

But even with this message SteamVR runs on X11.

@davibu davibu added the bug label Nov 18, 2024
@kisak-valve
Copy link
Member

Hello @davibu, DRI_PRIME=pci-0000_12_00_0 in your extended runtime diagnostics hints that environment variable is forcing Steam and SteamVR to run on the integrated GPU, while I suspect your HMD is physically connected to the discrete GPU. You might get lucky with completely closing Steam, then running steam from a terminal. If that helps, then it tells us that the error 496 is from SteamVR trying to find the HMD display on the unlikely but requested GPU.

Otherwise, these are some lines of interest from vrcompositor.txt for a SteamVR dev to ponder:

[Warning] - CHmdWindowSDL::FindDirectDisplayWayland: vkGetDrmDisplay failed.
[Info] - Tried to find direct display through Wayland: (nil)
[Error] - CHmdWindowSDL: Failed to create direct mode surface
[Error] - CHmdWindowSDL: VR requires direct mode.
[Error] - Error making window!
[Info] - Failed to kill gpu-trace
[Info] - Failed to initialize compositor
[Info] - Failed to start compositor: VRInitError_Compositor_GnomeNoDRMLeasing

GNOME wayland should have a chance at working now that https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3746 is part of of the 47.0 release and the error message on SteamVR's side predates the DE release.

@davibu
Copy link
Author

davibu commented Nov 18, 2024

Thank you very much, it now seems to work!

To document the steps I took:

  1. Set /usr/sbin into the path according to [BUG] Unable to setup SteamVR under debian bookworm. "getcap is required..." #563
    which solved the SteamVR setup is incomplete message.
  2. Starting steam from terminal
  3. When I running into code 303(It seems to occur when SteamVR was not properly closed or started) :
    Reboot PC and goto step 1
  4. Enjoying VR

@kisak-valve
Copy link
Member

Related: ValveSoftware/steam-for-linux#8983

@scaronni
Copy link

scaronni commented Dec 4, 2024

I have the same issue with Mutter 47.2 on Fedora 41 but roughly ~10% of the time, the other 90% it does not complain and it just works.

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

No branches or pull requests

3 participants