Script for ALVR that helps with getting audio to play on Linux.
Note: Microphone might work out of the box, but might require some tweaking. Important Note: I'm not actively using VR on Linux so I cannot really troubleshoot issues with this. If you are experienced enough, you can try to edit this so it works for your use case. In the future this script may not be necessary if ALVR gets pipewire or pulseaudio support.
- pipewire
- pipewire-jack
- pipewire-pulse
- qjackctl
Before starting ALVR, run this script and make sure QJackCtl has started and connected.
Start this script. Once QJackCtl starts, go to "Setup -> Options -> Patchbay Persistance".
Set the patchbay persistence file to alvr.xml (which comes with this repo), then apply your changes.
Go to the patchbay and click activate if persistence isn't on already.
Close QJackCtl and restart this script.
Then, open ALVR, go to Audio, set the playback device to "jack".
If you want to try the microphone, set the first device to "surround21:CARD=Loopback,DEV=0", and the second device to "surround21:CARD=Loopback,DEV=1".
Afterwards, you might need to configure pulseaudio to make the loopback device Surround 2.1 Input + Surround 2.1 Output. (Some games probably don't like surround microphones, needs a better solution)
If you find a cleaner solution to the microphone issue, please open an issue or maybe even a pull request.