alvr-org / ALVR

Stream VR games from your PC to your headset via Wi-Fi
MIT License
5.52k stars 488 forks source link

Can't get sound stream on Quest 2 using Linux with pipewire #1019

Closed famellad closed 1 year ago

famellad commented 2 years ago

Description

General Troubleshooting

Environement

Hardware

linux-hardware link

Installation

ALVR Version: 18.2.1

SteamVR Version: 1.21.12

Install Type:

*Installed using the AUR packaged version of alvr

OS Name and Version: EndeavourOS

I am currently using Pipewire, my setup is working fine for my Speakers, USB Headphones and Bluetooth Earbuds. I have installed pipewire-jack and I am using wireplumber as the session manager.

I read this comment and I seem to have the same setup here, although both pw-cli outputs they've posted are no longer available so I can't really be sure.

Depending of what audio device name I choose in the advanced settings of the ALVR dashboard I get different errors in the logs, which are linked here.

I'm at a bit of a loss because information to get audio streaming working on Linux is scattered all over the issue tracker, and there's no information about it in the wiki.

I would appreciate any guidance, and I will keep experimenting to see if I can figure something out!

Thanks in advance!

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Patola commented 2 years ago

I'm having the same issue. Will perform some attempts to have better diagnostic data to allow this bug report to go forward.

famellad commented 2 years ago

Had a small breakthrough today, same setup as before. When enabling advanced options in the Audio tab at the dashboard, selecting the jack backend and then using cpal_client_in as the audio device, I get my Quest 2 to mirror my USB microphone sound.

Using Helvum (or any patchbay app) I can manually connect the output of my game to cpal_client_in, and the Quest 2 will play the sound from the application.

Three caveats with this method:

Anyway this is looking sort of promising, and maybe it will give someone else enough insight to actually figure out how this all works and why it sorta sometimes seems to almost be working.

P.S.: I got the idea of opening a patchbay app from this video, she did get it working first try tho, and using the default audio device on Steam OS, so I'm not sure what's going on there, and I don't have a Steam Deck to dive deeper into that.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Patola commented 2 years ago

Issue is still going on, I can assign mono-only sound for the game via qjackctl / helvum / carla after it starts if I set jack on ALVR. But it hinders the playability of many games where you need to use sound to locate the threat, like horror games.

LuNeder commented 2 years ago

Same problem here, no way I can hear audio on the headset

"jack" doesn´t even appear on alvr for me, even when using pipewire

LuNeder commented 2 years ago

It works now Still no jack option, but choosing "pipewire" instead and then using Helvum to manually reroute audio to "pipewire alsa" makes it work (as said on https://github.com/alvr-org/ALVR/issues/673#issuecomment-1031385220).

Still: I have to manually reroute the audio for every single app I open, every single time I open them.

famellad commented 2 years ago

Similar here, but I have to choose "jack" in the list, and then I am getting stereo sound... Still not automatic, and it doesn't work 100% of the time, not sure what's going on.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

famellad commented 2 years ago

In fact, this issue is mostly resolved in the nightly builds, you still have to use a patchbay app to manually route the sound. But it is working in stereo, using the Default device while choosing alsa as the backend. The only thing missing now is to just do this connection automatically.

Vixea commented 1 year ago

At this point it seems like a duplicate of #673 so I'm closing