this post was submitted on 08 Mar 2024
20 points (100.0% liked)
Linux Gaming
15830 readers
34 users here now
Gaming on the GNU/Linux operating system.
Recommended news sources:
Related chat:
Related Communities:
Please be nice to other members. Anyone not being nice will be banned. Keep it fun, respectful and just be awesome to each other.
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
The problem there is really getting a compositor to run. By the time you have something to set WAYLAND_DISPLAY to, you already have solved the problem because you have a headless compositor running.
I did a little bit more research, and it seems at least wlroots compositors (Sway, Hyprland, Gamescope) do support headless with
WLR_BACKENDS=headless
(from this Reddit thread). Kwin apparently has a--virtual
flag. Now I'm not sure that will result in a compositor with graphical acceleration, maybe it will if there's a GPU available?The main issue remains those are usually used for testing or remote desktop situations, like running GUI apps in CI and testing them. So they're not very well documented nor all that well tested and supported.
Happy to help, I spent days on this so I'm glad to share the information! Feel free to ask more questions.