With Debian (LMDE 5) Bullseye, I am unable to change the audio sink using pacmd, as I was able to do with Ubuntu. However, the mate-volume-control application/gui is able to change the sinks.
It must be using a lower level or another method since pulseaudio is not running by default in Bullseye. After starting pulseaudio, the pacmd commands run without any errors, but the audio continues to play out of the sink set in the GUI.
/etc/pulse/default.pa with this line which, as I understand it, is supposed to prevent pulse from reversing the change when issued from pacmd:
load-module module-stream-restore restore_device=false
The commands that work in Ubuntu for my sound card are:
#change to analog stereo
pacmd set-card-profile alsa_card.pci-0000_00_1b.0 output:analog-stereo
#change to hdmi
pacmd set-card-profile alsa_card.pci-0000_00_1b.0 output:hdmi-stereo-extra1+input:analog-stereo
My question is similar to: Change output (sink) using the terminal, but the question has no suggestions that worked.
Has anyone had success changing the sink via script in recent Debian?