XWayland Lands DRM Leasing Support To Handle VR Headsets

Written by Michael Larabel in X.Org on 7 December 2021 at 07:50 AM EST. 3 Comments
Along with XWayland touchpad gestures, another shiny feature was merged this week into X.Org Server Git for XWayland: DRM leasing support!

XWayland now has mainline support for the DRM leasing (drm-lease-v1) protocol for allowing X11 clients running through XWayland to lease non-desktop connectors/outputs from the underlying Wayland compositor. This is particularly useful and designed around the needs of virtual reality (VR) head-mounted displays.

There has been a lot of Linux infrastructure work the past few years getting the code in place for better supporting VR HMDs under Linux both under X11 and Wayland. Now with the latest code, XWayland can now deal with X11 clients wanting DRM leasing usage. The patch merged is based on a former XWayland patch that had been floating around out-of-tree since 2019 when the Wayland protocol support was in development. It was only this summer that the DRM lease protocol was merged to the wayland-protocols code.

This goes along with other updates today for updating XWayland to require Wayland Protocols 1.22, a new interface for RandR to allow delaying lease responses, and then the actual DRM lease support. The RandR interface to allow delaying lease responses is what previously was a blocker for the XWayland DRM lease handling.

This is good news for those wanting to enjoy VR games running off a Wayland desktop but the actual game or VR application needing X11/XWayland. This will be found in XWayland 22 stable next year.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week