lvra.gitlab.io/content/docs/steamvr/quick-start.md

100 lines
4.8 KiB
Markdown
Raw Normal View History

---
weight: 200
title: Quick Start
---
# Getting Started with SteamVR on Linux
## Check your Video Drivers
2024-07-12 13:48:59 +02:00
- {{< icon name="nvidia" >}} Nvidia users: use the version that's [officially listed as production](https://www.nvidia.com/en-us/drivers/unix/). new feature/beta versions tend to have issues.
- {{< icon name="amd" >}} AMD users: use Mesa 24+ radeonsi, kernel 6.7.3+ if possible, stay away from amdpro.
2024-02-16 14:25:00 +01:00
## Dual-GPU Systems
- AMD+AMD laptop or desktop: Amazing choice, you have nothing to do.
- Desktop with iGPU and dGPU of different brands: Disable your iGPU in BIOS.
- Laptop with Nvidia dGPU:
2024-07-12 13:48:59 +02:00
- **Option 1 (Ubuntu-derivatives)**: Try the official Ubuntu solution `prime-select nvidia` before launching Steam.
- **Option 2**: Use `optimus-manager-qt` ([AUR](https://aur.archlinux.org/packages/optimus-manager-qt)) and switch to Nvidia before launching Steam.
2024-02-18 12:03:03 +01:00
- **Option 3**: Launch steam, steamvr and all games with `prime-run` (Launch options: `prime-run %command%`)
2024-02-18 12:01:37 +01:00
- **Extra tips**:
- Make ABSOLUTELY sure you don't have weird stuff like amdvlk, including lib32 installed when you have Nvidia (check `ls /usr/share/vulkan/icd.d`)
2024-07-12 13:48:59 +02:00
- Stick to the PRODUCTION branch of Nvidia drivers, newer ones may or may not work.
2024-02-16 14:25:00 +01:00
## Installing Steam
2024-07-12 13:48:59 +02:00
If the `steam` system package is available on your distro, we recommend starting with that.
2024-07-12 13:48:59 +02:00
**Flatpak Steam is not recommended**, as there are be capabilities that cannot be granted inside Flatpak, resulting in ghosting/stutter.
Launch Steam and install SteamVR. If it repeatedly nags you about sudo upon launch, setcap the vrcompositor manually:
```bash
sudo setcap CAP_SYS_NICE=eip ~/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/vrcompositor-launcher
```
(Default install location on most distros)
## Setting up your HMD
**Valve Index, Vive, Vive Pro**: These will work just by plugging in.
2024-07-12 13:48:59 +02:00
**Vive Pro 2** will need the driver from here: [VivePro2-Linux-Driver on GitHub](https://github.com/CertainLach/VivePro2-Linux-Driver)
2024-07-12 13:48:59 +02:00
**Bigscreen Beyond** requires a patched kernel: [Bigscreen Beyond Kernel Patch](https://gist.githubusercontent.com/TayouVR/af8635a4b8e1d02d038be1be1d221c83/raw/3806a6ff0a03721904164277d7523d43f7ca383c/bigscreenBeyond.patch)
2024-09-20 19:32:55 +02:00
For any of the above headsets with {{< icon name="nvidia" >}} Nvidia, you will get a smoother experience with Monado + OpenComposite (use Envision for easy setup), albeit this combo does not work with all VR titles.
2024-09-20 19:32:55 +02:00
For many games, the "Legacy Reprojection" option in the per-app video settings may provide a smoother experience.
**Quest 1/2/3/Pro, Pico 3/4, Vive Focus 3/XR Elite**:
Your best bet is [the latest ALVR release](https://github.com/alvr-org/ALVR/releases)
2024-07-12 13:48:59 +02:00
Also check the [ALVR wiki](https://github.com/alvr-org/ALVR/wiki), especially the [Linux Troubleshooting](https://github.com/alvr-org/ALVR/wiki/Linux-Troubleshooting) section.
2024-02-16 12:13:26 +01:00
2024-07-12 13:48:59 +02:00
## Optional: Auto-Restart Script
2024-02-16 12:13:26 +01:00
The `startvr` script [here](https://gist.github.com/galister/a85135f4a3aca5208ba4091069ab2222) is meant to make launching SteamVR less tedious.
It can be used with both ALVR and wired headsets.
What it does:
2024-02-16 12:13:26 +01:00
- Whitelist drivers for SpaceCal and ALVR so these will never get blocked
- Apply bindings spam patch by Plyshka
- Setcap the compositor after a SteamVR update
- Start SteamVR and restart it for you in case of a crash
2024-04-06 02:45:39 +02:00
- Prevent SteamVR processes from getting stuck and putting SteamVR in an inconsistent state
2024-02-16 12:13:26 +01:00
Extra steps when using with ALVR:
2024-02-16 12:13:26 +01:00
- Under `Installation` tab, register the ALVR driver
- Under `Settings`, `Steamvr Launcher` section, set `Driver launch action` to `No action`.
2024-09-20 19:32:55 +02:00
Note: Cloud sync can get stuck and prevent SteamVR from launching. I recommend disabling cloud sync for SteamVR.
2024-02-16 12:15:36 +01:00
2024-09-20 19:32:55 +02:00
If Steam is installed in a non-standard location, change the variable on the top of the script.
2024-02-16 12:13:26 +01:00
To use the script, simply launch it from a terminal. It will ask for sudo password in case your SteamVR has been freshly installed or updated and it needs to `setcap` the compositor.
2024-04-06 02:45:39 +02:00
2024-09-20 19:32:55 +02:00
ALVR-only: In case a SteamVR error appears; Ctrl-C the script, open ALVR dashboard and launch SteamVR from there once. You then don't have to open ALVR until there's a SteamVR update.
2024-02-16 12:13:26 +01:00
2024-09-20 19:32:55 +02:00
When restarting SteamVR, simply exit it using your overlay and it'll be restarted for you. To really exit SteamVR, first Ctrl-C the script.
2024-07-12 13:48:59 +02:00
## Optional: Disable SteamVR dashboard
2024-09-20 19:32:55 +02:00
The SteamVR dashboard has some major issues with high CPU usage, occasional freezing and sometimes going completely unresponsive.
2024-07-12 13:48:59 +02:00
2024-09-20 19:32:55 +02:00
Many choose to disable SteamVR dashboard and instead use something like WlxOverlay-S for desktop & game library access.
2024-07-12 13:48:59 +02:00
To do this, simply remove the execute permission from `vrwebhelper`:
```bash
chmod -x ~/.steam/steam/steamapps/common/SteamVR/bin/vrwebhelper/linux64/vrwebhelper
```
(To re-enable, run the same command but with `+x` instead of `-x`.)