NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.39k stars 13.61k forks source link

Monado: Using Monado and SteamVR #258196

Open Vivien-lelouette opened 11 months ago

Vivien-lelouette commented 11 months ago

First of all, I am not sure if this issue is the right way to ask about my issue. Feel free to point me in the right direction for me to ask this, and close the issue if it does not meet your issue workflow.

Problem

After installing the Monado nix package, I do have the Monado softwares and drivers to use VR HMD, but I can't easily register the Monado driver onto SteamVR.

Taking a look at the Monado documentation, you can register the Monado drivers using a script that Steam offers (more information here: https://monado.freedesktop.org/steamvr.html).

Of course this script does not work under Nix OS, and I found no instructions on how to achieve this link in the Nix Monado package.

Proposal

I understand this could be a weird subject for the Monado package to address, but as using a VR HMD in SteamVR is probably the most important usage for Monado, I think that at least a written documentation would go a long way to ease the use of Monado under Nix. However I am unsure on where to put this documentation. A comment in the Monado package may be enough.

Checklist

Krutonium commented 9 months ago

So far I've manged to associate monado with SteamVR, though I found it was far more reliable to copy the files to my home directory from the package. So far as I've yet found there is no way to automatically update the association via Nix itself.

I've also had to write my own udev rule to make it so that the headset can be initialized. (Rift S)

That said, once it's all said and done, SteamVR Fails to initialize monado due to a missing .so file, so there's that.

jsw08 commented 6 months ago

I fixed it by overriding the steam to include monado, then it shows up at /usr/share/steamvr-monado (or a similar path) when using steam-run.

jsrobson10 commented 5 months ago

could you please explain what you did? i have my rift s working with monado and rendering with xrgears, but steamvr still says i need to connect my headset in despite the monado driver being installed, as well as steamvr recognising the driver is installed

Scrumplex commented 5 months ago

I have recently started writing a wiki page to set up Monado and OpenComposite for a SteamVR-free stack on NixOS here: https://wiki.nixos.org/wiki/VR