I am trying to set my default audio output to be over Display Port. I've already tried following the settings described in this thread.
The main issue is that my preferred audio output doesn't show up when I run pactl list short sinks
. I am able to manually add it via the following, however this doesn't work consistently:
pactl load-module module-alsa-sink device=hw:0,8
pactl set-default-sink alsa_output.hw_0_8
I have tried adding the above lines (without pactl
at the front) to ~/.config/pulse/defaults.pa
which hasn't worked.
I have tried removing ~/.config/pulse/defaults.pa
and adding those lines to /etc/pulse/defaults.pa
which causes the correct speaker to be used after a restart before I am logged in consistently, but as soon as I log in, the computer switches to the wrong speaker.
I have tried adding the above lines to my ~/.bashrc
file, but the correct speaker only is used after I launch a terminal.
I have tried adding them to ~/.profile
which caused an error to occur at login forcing me to revert the file in a tty.
Is there some way to make this work consistently on boot every time?