RiftLinux

Troubleshooting the Oculus Rift CV1 on Linux

Start here: riftlinux-setup check looks at everything RiftLinux needs (the driver registered with SteamVR, device access, SteamVR's safe-mode block, compositor priority, the room, direct mode, Wayland and NVIDIA settings) and says what is wrong and why. It changes nothing. riftlinux-setup repair fixes what SteamVR updates or crashes undo.

riftlinux-setup fix puts in place the configuration RiftLinux is tested with, all of it at once (close SteamVR first): SteamVR as the OpenXR and the OpenVR runtime, this driver as SteamVR's only headset driver (another CV1 setup's SteamVR-OpenHMD, ALVR or a copy in SteamVR's own drivers folder is switched off, their files stay), SteamVR's settings games need, direct mode on, the devices' rules and USB power, and what other setups leave behind: XR_RUNTIME_JSON, VR_OVERRIDE or VR_CONFIG_PATH in your login files or a game's launch options, Proton forced on SteamVR itself, another VR service (Monado, WiVRn, ouvrt) holding the Rift, a headset left in pairing mode. It lists every change and asks once; every file it changes is kept next to it as a .bak-riftlinux-<time> copy. Changes to Steam's own files need Steam closed too, and steps that need root ask for your password.

riftlinux-setup fix last-known is for RiftLinux's own settings file when it cannot be read after an edit by hand: the broken file is kept aside and the last good settings are put back (Settings).

SteamVR and the driver

A setting does not apply, or a command says the settings file "is not valid JSON". ~/.config/riftlinux/settings.json was edited by hand and cannot be read. RiftLinux uses the last settings it could read until then and writes nothing into the file; riftlinux-setup check shows the line and column. Fix it by hand, or run riftlinux-setup fix last-known to put the last good settings back (the broken file is kept).

SteamVR does not show the headset, or says the "monado" add-on is blocked. After a crash SteamVR blocks the driver that was loaded (its safe mode). Close SteamVR, then run riftlinux-setup repair, or in SteamVR: Settings, Startup / Shutdown, Manage Add-ons, switch monado on. (The driver's name in SteamVR is monado.) Logging in again or plugging the headset in also lifts the block.

SteamVR Home never appears and games don't start, after a Steam client update. The headset works, but SteamVR keeps starting Home again, several times a second. Steam's newer layout (~/.steam/bin leading to steamrt32) leaves out the runtime SteamVR Home's launcher needs, ~/.steam/bin/steam-runtime. RiftLinux links it back by itself when SteamVR starts, at each login and when the headset is plugged in; riftlinux-setup check shows it on its "Steam's runtime for SteamVR Home" line, and riftlinux-setup repair fixes it at once. If check says no real runtime is installed, install "Steam Linux Runtime 1.0 (scout)" from Steam's Library (Tools), then run riftlinux-setup repair.

SteamVR blocks the driver after every start, and lsfg-vk is installed. lsfg-vk (Lossless Scaling's frame generation for Linux) loads itself into every Vulkan program, and it crashed SteamVR's server as RiftLinux's display started. SteamVR then blocks the driver. RiftLinux keeps it out of SteamVR's server and its own runtime (your games still get it), and riftlinux-setup check shows that on its lsfg-vk line. Run riftlinux-setup repair once to lift the block. If you turned it back on with riftlinux-setup lsfg-vk on, turn it off again.

The headset is not found after using another Rift driver (OpenHMD and the like). RiftLinux talks to the headset through its HID interfaces. A program that takes them from the kernel and doesn't give them back leaves them without a driver. riftlinux-setup check names them on its "Headset's HID interfaces" line, and riftlinux-setup repair gives them back. Unplugging the headset's USB cable and plugging it back in does the same.

A notice says "Real-time priority refused". Steam was started from a remote (SSH) login, where Linux does not give real-time priority. Start Steam from your desktop. "RealtimeKit is not installed": install your distribution's rtkit package.

SteamVR does not start while the screen is locked. Steam waits for you to unlock the desktop before it starts SteamVR (Steam's own behaviour); unlock and it goes on.

The Steam client crashes when a flat (non-VR) game opens while SteamVR runs. A Valve bug in SteamVR for Linux, not the driver (SteamVR for Linux #963: the same crash, reported for the Desktop tab). Keep VR games in VR.

SteamVR's compositor crashes as SteamVR quits. After the session has ended, and harmless: SteamVR's own exit code. Nothing is lost.

A game does not start from inside VR, or waits forever. Steam asks some questions before a game's first start (an agreement, a launch option, a third-party account) on the monitor, not in the headset; SteamVR's Desktop tab is empty on Linux, so take the headset off and answer them there. Some games also ask on their own window first. A game whose anti-cheat its developer has not enabled for Linux starts and is then removed from online play: its own log says so, and no driver can change that.

SteamVR shows "SteamVR has encountered an unexpected problem", or the headset stays dark after a game quit. SteamVR's compositor stopped (seen with NVIDIA as a game quit or as SteamVR left its standby) and SteamVR does not start it again by itself. RiftLinux notices it, closes SteamVR and, with Steam running, has Steam start it again (once in ten minutes). If that does not happen, close SteamVR and start it again; if it does not close, log out and in.

SteamVR Home does not open, and SteamVR's menu stays open with "Resume". Run riftlinux-setup check. If it reports leaked GPU handles in the desktop session, log out and back in (or restart): the desktop is holding thousands of them, every program started from it gets a copy, and SteamVR Home then cannot open its files. Seen with GNOME on NVIDIA after recording the screen (OBS).

With direct mode off, SteamVR stops when the headset is put down. Seen on KDE Plasma (Wayland): SteamVR's own compositor loses the display when the headset's display switches off. Keep direct mode on: riftlinux-setup direct-mode on.

SteamVR's standby ends when the headset is moved or picked up (for example on a bed someone moves on). That is the pick-up standby setting (SteamVR's own rule, as on Windows). riftlinux-setup standby worn has only putting the headset on end it (Settings).

The picture comes on while the headset lies on a bed or is held in the hands. RiftLinux counts a headset that moves and turns as a head does for 20 seconds as worn, for face shields and pads the wear sensor cannot see through. Held and turned in the hands for that long it counts too. To need longer, riftlinux-setup wear-sensor motion low (30 seconds); with a normal face pad, riftlinux-setup wear-sensor motion off counts the wear sensor alone (Settings).

SteamVR starts when you pick up the headset, and you did not want it to. Steam starts SteamVR when the Rift is put on or picked up (handled and turned, not knocked); picked up only to put it away, SteamVR quits again by itself when the headset is not put on within two minutes. To have only putting it on start SteamVR: riftlinux-setup autostart trigger put-on (with riftlinux-setup wear-sensor motion off that is the default). If you use RiftLinux's own runtime without SteamVR, or start SteamVR yourself: riftlinux-setup autostart off (Settings).

SteamVR starts every time Steam starts, with nobody wearing the headset. As it starts, Steam runs a graphics driver check through a Proton build; with some builds (seen with GE-Proton) that check's OpenXR test starts SteamVR (GE-Proton 11-13 and later no longer do). That SteamVR stays in standby until you put the headset on, and a start from Steam's library uses it; riftlinux-setup check says whether it happens and through which Proton. riftlinux-setup autostart driver-check quit has it quit again instead when the headset is not put on.

SteamVR keeps starting with "headset not found" while no headset is plugged in. The same driver check, through GE-Proton (#8). Steam runs it through every GE-Proton build you have installed, not only through Steam's default compatibility tool. Run through GE-Proton (seen with 11-6 and 11-7) the check does not finish, and it starts SteamVR again and again until Steam gives up on it; with no headset plugged in, SteamVR shows its "headset not found" message each time. Move the GE-Proton builds out of Steam's compatibilitytools.d folder (in your Steam folder, for example ~/.steam/debian-installation) and restart Steam, or update GE-Proton (11-13 and later no longer start SteamVR from that check). With the headset plugged in, that SteamVR stays in standby until you put the headset on.

SteamVR Home does not open any more after SteamVR quit. A SteamVR Home left running after SteamVR quit (seen on KDE after starting Steam with -pipewire) keeps every new Home from starting. The driver's watchdog in Steam ends it while Steam runs; riftlinux-setup check reports one and how to end it.

A game started from Steam runs on the monitor instead of in the headset. SteamVR was not running when the game started. Put the headset on first (SteamVR then starts by itself), or start SteamVR from Steam, then the game. riftlinux-setup autostart status says whether SteamVR starts when you put the headset on. If SteamVR was running, another runtime takes the game: riftlinux-setup check names it, and riftlinux-setup fix puts SteamVR back.

Beat Saber (or another OpenXR game under Proton) says OpenXR is not installed or not set up. The game was started while SteamVR was not running: Proton then turns OpenXR off for that game (its own safeguard, since SteamVR's OpenXR start would hang), with any headset. Quit the game, put the headset on (SteamVR then starts by itself), and start the game again. If SteamVR was running, riftlinux-setup check names what else takes OpenXR games away, and riftlinux-setup fix puts SteamVR back.

A game added to Steam yourself ("Add a Non-Steam Game", run with Proton) does not start from SteamVR's library. Steam gives SteamVR the game's Windows program to start, which Linux cannot run; SteamVR gives up and starts Home again. RiftLinux then asks Steam to start the game as Steam's own Play button does (with Proton), so it starts a moment later. With 0.1.2 and earlier, start it from Steam's library (or View Details, Play in SteamVR) instead.

The picture

The headset is dark. It is not on your head: its picture is black (the light stays white), and after a while black its display switches off (the light orange) to protect the OLED. Put it on: the picture comes back at once.

The picture goes dark, or SteamVR pauses, while you wear the headset. The wear sensor between the lenses does not see your face: a face shield, a thicker face pad or a covered sensor window. RiftLinux then counts the headset as worn once it has moved and turned as a head does for 20 seconds, so the picture comes back after that; riftlinux-setup wear-sensor motion high makes it 8 seconds. Better: see what the sensor reads with riftlinux-setup wear-sensor test, then set its levels to fit, or turn it off: Settings.

The IPD always shows 57.5 mm, wherever the IPD slider is. The headset's slider sensor doesn't report: the lenses move, but the number doesn't (the Oculus software on Windows shows the same). riftlinux-setup ipd test shows what it reads while you move it. Measure your IPD and set it by hand in the Rift tab's IPD row or with riftlinux-setup ipd <mm>, see Settings.

On Wayland with NVIDIA, the lower part of the picture tears and lags when you turn your head. NVIDIA's driver can show the headset without vsync when a monitor offers adaptive sync (VRR, FreeSync, G-Sync Compatible): NVIDIA's bug, open-gpu-kernel-modules #992. Hide VRR from it: riftlinux-setup nvidia-vrr conceal and reboot (your monitors then lose VRR; riftlinux-setup nvidia-vrr restore undoes it). The README's Wayland section has the manual steps.

GNOME with HDR on: the desktop's colours look washed out after using the headset. GNOME can lose its HDR state when the headset connects or disconnects (likely mutter #5083, fixed for GNOME 51). Switch HDR off and on in Settings, Displays. KDE Plasma keeps it.

No Auto-HDR, HDR or motion smoothing. They need direct mode: riftlinux-setup direct-mode status, and on to switch it on (from SteamVR's next start).

A faint pattern or uneven patches in dark grey scenes. That is the panel itself: every CV1 panel is a little uneven. Switch on Panel uniformity in the Rift tab or with riftlinux-setup uniformity on (The picture).

Panel uniformity is on, but the picture looks the same. riftlinux-setup uniformity status says whether your headset's calibration is there. The first time it has to be downloaded, which needs the internet; switched on in the Rift tab, what the download said is in ~/.cache/riftlinux/uniformity-setup.log, and riftlinux-setup uniformity on in a terminal tries again and shows why. In SteamVR it also needs direct mode.

Tracking

Measuring the sensors takes long, or the notice stays. Measuring needs views of the headset from different directions: face the sensors and slowly turn your head left and right, then up and down, with the headset in view of both sensors. If the notice says Measuring the sensors didn't work, it tries again by itself. See Sensors.

Tracking jumps or is off after moving the sensors. A moved sensor is placed again by itself. If tracking still seems off, measure again: Rift tab, Display & status, Measure the sensors manually (or riftlinux-setup recalibrate).

The view is not in front of me. Hold the right Oculus button for a second. The floor is too high or too low. Lay a controller on the floor and press Set floor in the Rift tab.

A controller does not appear. Press a button on it to wake it, and check its battery (the Rift tab's Display & status page shows each one). While the sensors are being measured, controllers are hidden until it is done. A new controller has to be paired once: Touch controllers and pairing.

One controller freezes or jumps in full view of the sensors, every session. Its motion sensor probably disagrees with its LEDs on which way is down. RiftLinux learns and corrects that while you play (riftlinux-setup controller-alignment status shows it once it's in use). See A controller that freezes or jumps.

A controller moves back and forth a little when you're far from the sensors. At 3 m and more, the sensors often see only three or four of a controller's LEDs, and a position from so few LEDs moves a little from one frame to the next. Make sure nothing stands between the sensors and where you play: in testing, a laptop screen in front of one sensor made it clearly worse. If you can, play a little closer to the sensors.

Sensors behind me do not track the headset. The headband's rear LEDs are measured on your headset the first time the front of it is tracked while you turn; turn slowly a full circle once, facing the front sensors part of the time. If you changed the strap a lot, the measurement is checked again by itself.

Sound

No sound in the Rift's headphones, or the microphone is not used. RiftLinux makes the Rift's headphones the default output and its microphone the default input while the headset is in use, and puts your own back afterwards. Check Mute and the levels in the Rift tab (Settings, Sound), and that your desktop's sound settings show the Rift's audio device.

The desktop's sound stays on the Rift's headphones after SteamVR crashed. The next SteamVR session puts your own output and microphone back as it ends; or choose them in your desktop's sound settings.

RiftLinux's own runtime (OpenXR without SteamVR)

"The RiftLinux runtime did not start: ..." The message gives the reason. The most common: SteamVR is running and holds the headset: close SteamVR first.

An application is stuck or has no way to quit. Rift tab, Settings, Close the application.

The runtime keeps running after the application. riftlinux-runtime --stop, or right-click RiftLinux Runtime in the app menu, Stop RiftLinux Runtime.

Memory use keeps growing with NVIDIA's 615 driver. NVIDIA's 615 driver keeps a little memory each time a program sends work to the graphics card, and never gives it back (NVIDIA's forum). Every OpenGL and Vulkan program is affected, and you notice it in programs that run for hours, like a VR desktop or your desktop's own compositor. Until NVIDIA fixes it, the workaround from that thread is to set __GL_4718a5=0 in the environment of those programs. It's an undocumented driver setting that NVIDIA hasn't confirmed.

Logs and reporting a problem

  • RiftLinux's own runtime: ~/.cache/riftlinux/runtime.log.
  • The driver in SteamVR: SteamVR's logs folder inside your Steam folder (~/.local/share/Steam/logs or ~/.steam/debian-installation/logs): vrserver.txt, and vrstartup-linux.txt for the driver's own messages (tracking, the display, a settings file it cannot read; lines starting monado: or RiftLinux:).
  • Registration with SteamVR: ~/.cache/riftlinux/register.log.

To report a problem, open an issue as described in CONTRIBUTING.md with what you did, what you saw, the output of riftlinux-setup check, and the log of that session.

For a tracking problem, record a session: run riftlinux-setup record on, start SteamVR and do what shows the problem, then attach the recording from ~/.cache/riftlinux and SteamVR's startup log (~/.steam/steam/logs/vrstartup-linux.txt). Turn it off afterwards with riftlinux-setup record off.

This page is part of the RiftLinux user guide (CC BY 4.0). Its source is on GitHub.