protonscr

[BUG] audio/sound in SteamVR home environment (usually) not working with steamvr-monado plugin

steamvropen bug
ValveSoftware/SteamVR-for-Linux#590 · opened 2023-06-18 by T-X · updated 2023-06-22 · 2 comments · github
TT-X 2023-06-18 github

Describe the bug
Usually I have no sound in a SteamVR home environment when using it the steamvr-monado plugin with an HP Reverb G2. I can get sound working when ensuring that the headset's speakers are the first audio device in "aplay -l" together with PulseAudio is disabled. Other than that sound works without issues for SteamVR games. Only SteamVR home environments seem affected.

To Reproduce
The following are the steps for me to reproduce a working behaviour (and the opposite would yield a non-working audio in the SteamVR home environment):

  1. Adding /etc/modprobe.d/snd-hdmi-off.conf with: blacklist snd-hda-codec-hdmi
  • so that the "USB Audio" device from the Reverb G2 is listed first in "aplay -l" on my laptop
  1. Stop PulseAudio:
  • systemctl --user stop pulseaudio.socket
  • systemctl --user stop pulseaudio
  1. Start SteamVR

Originally reported here, with additional details: https://gitlab.freedesktop.org/monado/monado/-/issues/270

Expected behavior
The audio should always work in SteamVR home environments.

System Information (please complete the following information):

  • Distribution: Debian Sid
  • SteamVR version: 1.25.8
  • Steam client version: Jun 17 2023 07:01:29
  • Opted into Steam client beta?: no
  • Graphics driver version: Mesa 23.1.0
  • Gist for SteamVR System Information: https://gist.github.com/T-X/a81f500bc6d36ab3f241146ea7dba6d9 (currently w/o the VR headset (Reverb G2) and w/o the eGPU (Razer Core X Chroma + Radeon RX 6650 XT), will update once I have access again)

Additional context
If the issue is that the monado-steamvr plugin should implement something, like vr::Prop_Audio_DefaultPlaybackDeviceId_String or vr::k_pch_audio_SetOsDefaultPlaybackDevice_Bool maybe, some guidance (to documentation) would be appreciated.

I'd also be curious if this works as expected for people on Linux who are not using the steamvr-monado plugin.

Note: Commenters who are also experiencing this issue are encouraged to include the "System Information" section in their replies.

Kkisak-valve maintainer 2023-06-18 github

Hello @T-X, Headset audio device switching is not currently implemented noted at https://github.com/ValveSoftware/SteamVR-for-Linux#known-issues seems relevant here. I would check what audio device is the default in pulseaudio's config after you've started the HMD.

TT-X 2023-06-22 github

Hi @kisak-valve, thanks for the quick reply! I checked it once more but it seems to be the case and it's not muted. And also at 100% volume:

pavucontrol-output-devices

However "Playback" is empty even when SteamVR is running and while I'm using a SteamVR home environment:

pavucontrol-playback


Right now I only seem to get it working as described above. By stopping PulseAudio and blacklisting HDMI modules, to ensure that the "USB Audio Analog Stereo" is in first play in "aplay -l".

Nothing extracted yet.