Skip to content

Commit

Permalink
docs(linux): update wiki to add VK_ICD_FILENAMES fix for nvidia
Browse files Browse the repository at this point in the history
  • Loading branch information
DillonHHH committed Jan 19, 2025
1 parent 1b3d1c7 commit 5b03aac
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions wiki/Linux-Troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ Put `DRI_PRIME=1 ~/.local/share/Steam/steamapps/common/SteamVR/bin/vrmonitor.sh

Put `__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia ~/.local/share/Steam/steamapps/common/SteamVR/bin/vrmonitor.sh %command%` (adjust vrmonitor path to your distro) into SteamVR's commandline options and in those of all VR games you intend to play with ALVR.

If this results in errors such as `error in encoder thread: Failed to initialize vulkan frame context: Invalid argument`, then try this instead:

`__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.x86_64.json ~/.local/share/Steam/steamapps/common/SteamVR/bin/vrmonitor.sh %command%`

- Again, adjust vrmonitor path to your distro
- Go to `/usr/share/vulkan/icd.d` and make sure `nvidia_icd.x86_64.json` exists. It may also be under the name `nvidia_icd.json`, in which case you should adjust `VK_ICD_FILENAMES` accordingly.

### SteamVR Dashboard not rendering in VR on Nvidia discrete GPU
If you encounter issues with the SteamVR dashboard not rendering in VR you may need to run the entire steam client itself via PRIME render offload. First close the steam client completey if you have it open already, you can do so by clicking the Steam dropdown in the top left and choosing exit. Then from a terminal run: `__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia steam-runtime`

Expand Down

0 comments on commit 5b03aac

Please sign in to comment.