Setting up VR on Linux

22/04/2025


When I was switching to Linux, I had to dualboot Windows for a bit, due to one major issue, VR support on Linux.
wish to share my VR setup for Linux, so it can hopefully help someone else on their journey.
To give some context, here is my system specs;

OS: Arch Linux x86_64
DE: KDE Plasma 6.3.4
WM: KWin (Wayland)
CPU: Intel(R) Core(TM) i5-10600KF (12) @ 4.80 GHz
GPU: AMD Radeon RX 7600 [Discrete]
Memory: 31.27 GiB

With this setup I am driving an Oculus Quest 2.

ALVR

My first attempts at VR on Linux were using ALVR. I do not recommend ALVR.

Because ALVR uses SteamVR, you need perfect frame delivery, if you drop so much as a single frame, you will stutter like mad, regardless of if you're using flatpak, or if you are using a native system package.

WiVRn

I'm going to say it outright, I love WiVRn. It runs buttery smooth, with no stuttering, even at 20 fps. I personally run my headset wired, but both WiVRn and ALVR support, and indeed are intended to be used with, a wireless connection.


WiVRn supports the following headsets;


To set up WiVRn, I highly recommend using the flatpak. The native system package didn't work all that great for me, and envision didn't properly work either. I also recommend installing the android-tools package, and enabling developer mode on your Quest.


Once you have the flatpak, simply launch it from your app launcher, and connect your headset with a USB cable. From there, select "Install the app", and it should sideload the client onto your headset. Once this is done, you should be able to click "Connect by USB" to launch the client on your headset, and connect immediately over ADB.


As a final touch, I recommend installing the wlx-overlay-s package, setting the "Application" field in WiVRn to "Custom", and filling it in with wlx-overlay-s. This will allow you to see your desktop in VR, something even SteamVR fails to do, among other things.


This VR stack isn't ideal, but it works good enough that I was comfortable nuking Windows, and daily-driving Arch Linux from then on. I hope this can help someone get off of Windows, and onto Linux.