csgo-osx-linux icon indicating copy to clipboard operation
csgo-osx-linux copied to clipboard

[Linux] Audio driver falls back to alsa. SDL3 fails to initialize pipewire

Open mtxn2147 opened this issue 2 months ago • 3 comments

sysinfo.txt

Steps to reproduce a case where the driver falls back to alsa:

  1. run game (/home/$USER/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- /home/$USER/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=730 -- '/home/$USER/.local/share/Steam/steamapps/common/SteamLinuxRuntime_sniper'/_v2-entry-point --verb=waitforexitandrun -- '/home/$USER/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/cs2.sh' -steam)

alsafallback.log

Notes: file "/usr/lib64/alsa-lib/libasound_module_pcm_pulse.so" exists in my filesystem and contains all required symbols.


steps to reproduce a case where the driver is set to pipewire:

  1. run game (/home/$USER/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- /home/$USER/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=730 -- '/home/$USER/.local/share/Steam/steamapps/common/SteamLinuxRuntime_sniper'/_v2-entry-point --verb=waitforexitandrun -- '/home/$USER/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/cs2.sh' -steam -sdlaudiodriver pipewire)

pipewire.log

Notes: I've compiled a simple demo program from SDL3's website (01-simple-playback) and my system's libSDL3 has no problem initializing pipewire and playing sound.


  • My user is inside the "audio" and "pipewire" groups.
  • No other audio issues.
  • Pipewire version: 1.4.8 enabled alsa and pulseaudio support
  • cs2 does not use pipewire's pulse or alsa server

mtxn2147 avatar Oct 10 '25 10:10 mtxn2147

it's probably the problem with a sniper runtime and that it can't access pipewire's socket which is the outside pressure vessel. but still, cs2 is the only game where I can identify this problem. should I file an issue for https://github.com/ValveSoftware/steam-runtime?

mtxn2147 avatar Oct 27 '25 23:10 mtxn2147

I have the same issue. The issue for me only happens, when i have discord or teamspeak open. Any ideas why it only happens then?

dm7r33 avatar Dec 07 '25 18:12 dm7r33

I have the same issue. The issue for me only happens, when i have discord or teamspeak open. Any ideas why it only happens then?

my suspected solution for this issue is quite easy. just create symbolic link from /run to ~/.steam/steam/steamapps/common/SteamLinuxRuntime_soldier/var/tmp-<random ID>/

vessels=(~/.steam/steam/steamapps/common/SteamLinuxRuntime_soldier/var/tmp-*); echo ln -s /run/ "${vessels[0]}/"

mtxn2147 avatar Dec 07 '25 23:12 mtxn2147