Confused on Steam Play and Proton? Be sure to check out our guide.

XWayland gets DRM leasing support for helping VR on Linux

By - | Views: 13,058

A big improvement has been merged into XWayland called DRM (Direct Rendering Manager) Leasing, which should allow good VR support under Wayland. Something we've been waiting on!

From the commit message:

This commit allows X11 clients running through Xwayland to lease non-desktop connectors from the Wayland compositor by implementing support for drm-lease-v1. In order to not deadlock with the Wayland compositor if its response to a lease request is delayed, the new interface in _rrScrPriv introduced in the last commit is used, which makes it possible to block the X11 client while a response is pending. Leasing normal outputs is not yet supported, all connectors offered for lease will be advertised as non-desktop.

Want to learn more about it? Developer Drew DeVault wrote about a bunch of the work involved and some explainers back in 2019. The gist of it is that this was all needed for the hand-off between your PC and the VR headset, so you can actually get everything to display correctly.

Thanks to this work being hooked up, it means VR games that don't support Wayland directly that need to be run through X11/XWayland should hopefully work well. Support should land in XWayland version 22 sometime next year. Just another tick in the box towards Linux distributions and Linux gaming going all-in with Wayland.

Article taken from GamingOnLinux.com.
28 Likes
We do often include affiliate links to earn us some pennies. We are currently affiliated with GOG and Humble Store. See more here.
About the author -
author picture
I am the owner of GamingOnLinux. After discovering Linux back in the days of Mandrake in 2003, I constantly came back to check on the progress of Linux until Ubuntu appeared on the scene and it helped me to really love it. You can reach me easily by emailing GamingOnLinux directly.
See more from me
7 comments

AsciiWolf 8 Dec, 2021
  • Supporter Plus
Great! Now if only HDR displays were supported on Linux (I know that Red Hat is working on it, but we are not there yet).
rcrit 8 Dec, 2021
View PC info
  • Supporter Plus
Speaking of Wayland, Fedora 36 has a proposal to enable Wayland sessions by default in GDM even with the NVIDIA proprietary driver.

Thread: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/OTGKP27GD7BWWCSBDSJAFUAHFTN7NWNB/
dec05eba 9 Dec, 2021
Quoting: rcritSpeaking of Wayland, Fedora 36 has a proposal to enable Wayland sessions by default in GDM even with the NVIDIA proprietary driver.

Thread: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/OTGKP27GD7BWWCSBDSJAFUAHFTN7NWNB/
thats a bad idea. there are multiple issues with wayland on nvidia (cursor not visible unless you disable hardware overlay for cursor, flickering, mpv displaying black screen and worse performance unless you explicitly set mpv to run under xwayland, obs not working, alacritty not working, nvenc not working, etc)..
Zac2211 9 Dec, 2021
At first I saw the title and thought it meant Digital Rights Management, lol
slaapliedje 9 Dec, 2021
View PC info
  • Supporter Plus
Quoting: Zac2211At first I saw the title and thought it meant Digital Rights Management, lol
Yeah, when you see DRM support in the Kernel you have to cringe. But it is the good DRM, not the bad one.
Ardje 10 Dec, 2021
And here I am, waiting for wayland support on my second seat. I don't care about my first, because I use that one for my DJ equipment.
slaapliedje 12 Dec, 2021
View PC info
  • Supporter Plus
Quoting: ArdjeAnd here I am, waiting for wayland support on my second seat. I don't care about my first, because I use that one for my DJ equipment.
I was going to try out Wayland with the new drivers, but can't figure out how to get the option to pop back up in gdm on Debian Sid, it used to be there. Oh well. It'd probably be like when I test out KDE and it decides my icons and mouse cursor should be changed to KDE's when I go back to Gnome...
While you're here, please consider supporting GamingOnLinux on:

Patreon, Liberapay or PayPal Donation.

This ensures all of our main content remains totally free for everyone with no article paywalls. We also don't have tons of adverts, there's also no tracking and we respect your privacy. Just good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register

Or login with...
Sign in with Steam Sign in with Twitter Sign in with Google
Social logins require cookies to stay logged in.

Livestreams & Videos
Community Livestreams