VR: Difference between revisions

Haruki7049 (talk | contribs)
Marked this version for translation
monado-vulkan-layers is no longer required on modern nvidia drivers
 
(7 intermediate revisions by 5 users not shown)
Line 6: Line 6:


<!--T:3-->
<!--T:3-->
Monado can be configured using its NixOS options since 24.05:
Monado can be configured using its NixOS options {{Nixos:option|services.monado.enable}}:
</translate>
</translate>


Line 23: Line 23:
   XRT_COMPOSITOR_COMPUTE = "1";
   XRT_COMPOSITOR_COMPUTE = "1";
};}}
};}}
<translate>
Once configured, Monado can be started and stopped in a [[systemd]] user session.
For example, the following commands will start Monado and then follow its log output:
</translate>
{{Commands|
$ systemctl --user start monado.service
$ journalctl --user --follow --unit monado.service
}}


<translate>
<translate>
Line 67: Line 78:


<translate>
<translate>
== OpenComposite == <!--T:11-->
== OpenComposite == <!--T:11-->


Line 88: Line 100:
xdg.configFile."openxr/1/active_runtime.json".source = "${pkgs.monado}/share/openxr/1/openxr_monado.json";
xdg.configFile."openxr/1/active_runtime.json".source = "${pkgs.monado}/share/openxr/1/openxr_monado.json";


# For WiVRn:
# For WiVRn v0.22 and below:
xdg.configFile."openxr/1/active_runtime.json".source = "${pkgs.wivrn}/share/openxr/1/openxr_wivrn.json";
xdg.configFile."openxr/1/active_runtime.json".source = "${pkgs.wivrn}/share/openxr/1/openxr_wivrn.json";


Line 117: Line 129:


<translate>
<translate>
<!--T:18-->
== WiVRn == <!--T:18-->
== WiVRn ==
 
<!--T:35-->
WiVRn is an OpenXR streaming application built around Monado. It wirelessly connects a standalone VR headset to a Linux computer. If your headset is not wireless, look at [[VR#Monado|Monado]] instead.
WiVRn is an OpenXR streaming application built around Monado. It wirelessly connects a standalone VR headset to a Linux computer. If your headset is not wireless, look at [[VR#Monado|Monado]] instead.
Example usage of the WiVRn module:
Example usage of the WiVRn module:
{{Warning|As of WiVRn version 0.23, WiVRn now manages the opencomposite paths itself. Only use the above opencomposite configuration when using versions below v0.23.}}
</translate>
</translate>


Line 164: Line 179:


<translate>
<translate>
<!--T:20-->
== Envision == <!--T:20-->
== Envision ==
 
<!--T:36-->
Envision is an orchestrator for the FOSS VR stack. It handles the building and configuration of Monado, WiVRn, OpenComposite, and other utilities of the FOSS VR stack such as the Lighthouse driver, OpenHMD, Survive, and WMR. You can enable it with the Envision module:
Envision is an orchestrator for the FOSS VR stack. It handles the building and configuration of Monado, WiVRn, OpenComposite, and other utilities of the FOSS VR stack such as the Lighthouse driver, OpenHMD, Survive, and WMR. You can enable it with the Envision module:
</translate>
</translate>
Line 175: Line 191:


<translate>
<translate>
<!--T:21-->
== SteamVR == <!--T:21-->
== SteamVR ==
 
<!--T:37-->
[https://store.steampowered.com/app/250820/SteamVR/ SteamVR] is a proprietary OpenVR runtime with compatibility for OpenXR. It is part of [[Steam]] and doesn't need any additional setup on NixOS apart from enabling Steam.
[https://store.steampowered.com/app/250820/SteamVR/ SteamVR] is a proprietary OpenVR runtime with compatibility for OpenXR. It is part of [[Steam]] and doesn't need any additional setup on NixOS apart from enabling Steam.


Line 224: Line 241:


<translate>
<translate>
<!--T:31-->
== wlx-overlay-s == <!--T:31-->
== wlx-overlay-s ==
 
<!--T:38-->
[https://github.com/galister/wlx-overlay-s wlx-overlay-s] is a lightweight OpenXR/OpenVR overlay for Wayland and X11 desktops. It works with SteamVR as well as Monado/WiVRn natively.
[https://github.com/galister/wlx-overlay-s wlx-overlay-s] is a lightweight OpenXR/OpenVR overlay for Wayland and X11 desktops. It works with SteamVR as well as Monado/WiVRn natively.
</translate>
</translate>


<translate>
<translate>
<!--T:32-->
==== SteamVR autostart ==== <!--T:32-->
==== SteamVR autostart ====
 
<!--T:39-->
When launching wlx-overlay-s in SteamVR (or any OpenVR compositor) it will register an autostart manifest. Currently, this manifest will reference a Nix store path of wlx-overlay-s, which might get garbage collected after rebuilds of your NixOS/Nix profile. A workaround is to regularly run the following command to update the manifest's store path:{{Commands|
When launching wlx-overlay-s in SteamVR (or any OpenVR compositor) it will register an autostart manifest. Currently, this manifest will reference a Nix store path of wlx-overlay-s, which might get garbage collected after rebuilds of your NixOS/Nix profile. A workaround is to regularly run the following command to update the manifest's store path:{{Commands|
# Run wlx-overlay-s and replace any running instance
# Run wlx-overlay-s and replace any running instance