User Tools

Site Tools


ubuntu:sound:pulseaudio

This is an old revision of the document!


Ubuntu - Sound - PulseAudio

Set default sound output card dynamically using PulseAudio.


Get list of Sources

pactl list short sources

returns:

1	alsa_output.pci-0000_0b_00.4.analog-stereo.monitor	module-alsa-card.c	s16le 2ch 48000Hz	IDLE
4	alsa_output.pci-0000_09_00.1.hdmi-stereo-extra1.monitor	module-alsa-card.c	s16le 2ch 44100Hz	SUSPENDED

Get list of Sinks

pactl list short sinks

returns:

1	alsa_output.pci-0000_0b_00.4.analog-stereo	module-alsa-card.c	s16le 2ch 48000Hz	RUNNING
3	alsa_output.pci-0000_09_00.1.hdmi-stereo-extra1	module-alsa-card.c	s16le 2ch 44100Hz	SUSPENDED


Set Defaults

pactl set-default-source alsa_output.pci-0000_0b_00.4.analog-stereo
pactl set-default-sink alsa_output.pci-0000_0b_00.4.analog-stereo
ubuntu/sound/pulseaudio.1607860954.txt.gz · Last modified: 2020/12/13 12:02 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki