Steam for Linux no sound when streaming


πŸ€–This article was translated by AI (LLM). There may be errors or inaccuracies. For the original content, please refer to the original version.

When I use Steam Link to play my game which is running in my ArchLinux PC, I find steam only catch microphone and ignore the sound output of PC. (Fixed on my ArchLinux PC at 2022-09-15)

Github Issue: [Remote Play] No sound when streaming #6606

Fortunately, we can use pipewire to solve this issue.

Basically, we need to create a new pipewire virtual device that combines a real input and output into a new input.

Here are two simple scripts to help you achieve this:

  • enable_virtual_mic.sh
#!/usr/bin/bash
pactl load-module module-null-sink media.class=Audio/Sink sink_name=my-combined-sink channel_map=stereo
pactl load-module module-null-sink media.class=Audio/Source/Virtual sink_name=my-virtualmic channel_map=front-left,front-right
pw-link easyeffects_sink:monitor_FL my-combined-sink:playback_FL
pw-link easyeffects_sink:monitor_FR my-combined-sink:playback_FR
pw-link easyeffects_source:capture_FL my-combined-sink:playback_FL
pw-link easyeffects_source:capture_FR my-combined-sink:playback_FR
pw-link my-combined-sink:monitor_FL my-virtualmic:input_FL
pw-link my-combined-sink:monitor_FR my-virtualmic:input_FR
  • disable_virtual_mic.sh
#!/usr/bin/bash
pactl unload-module module-null-sink

After running these scripts, mute your microphone (if not needed) and switch the microphone device to the new virtual device.

Enjoy πŸ™‚