You are not logged in.

#1 2021-09-01 12:57:53

nikinbaidarr
Member
Registered: 2021-05-06
Posts: 101

[SOLVED] Set default audio device port

I am trying to set my external speakers as the default audio device but I cannot find a way to do this.
Right now I have to manually run a command or change the audio port from pavucontrol to change the default audio sink port after every reboot.
A sort of a solution for fedora is posted here. From that post it also seemed to work on LM. Now while

pacmd set-sink-port 0 analog-output-headphones

does change the audio device to headphones but when i put that line of code in /etc/pulse/default.pa or even my .bash_profile I get a daemon error that says pulse-audio daemon isn't running.

PS This is not an issue about sound cards, I have only a single sound card.

Last edited by nikinbaidarr (2021-09-01 13:08:20)

Offline

#2 2021-09-01 13:07:46

nikinbaidarr
Member
Registered: 2021-05-06
Posts: 101

Re: [SOLVED] Set default audio device port

nikinbaidarr wrote:

Now while

pacmd set-sink-port 0 analog-output-headphones

does change the audio device to headphones but when i put that line of code in /etc/pulse/default.pa or even my .bash_profile I get a daemon error that says pulse-audio daemon isn't running.

Mistake on my part. I put that extra "pacmd" in the config file too. I will mark this post as solved.

Last edited by nikinbaidarr (2021-09-01 13:08:08)

Offline

#3 2021-09-01 13:08:09

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,223

Re: [SOLVED] Set default audio device port

You need to put that without the leading pacmd to the end of the file. And you probably should use the fully qualified device name rather than an index that's not guaranteed to be stable.

Edit: Aha, you noticed.

Last edited by V1del (2021-09-01 13:08:43)

Offline

Board footer

Powered by FluxBB