Background
I have a laptop computer that i run XUbuntu 22.04 on. Sometimes i use the built-in speakers, and often i use bluetooth headphones (but not both at the same time)
Problem
After startup of my laptop it uses the configuration i had last activated, which sometimes results in audio played being sent to the speakers, so everyone in the room can hear it (for example i might be in a library or a public place)
Question
How can i make sure that the audio for the built-in speakers is turned off at startup? (For example by automatically setting the "Built-in Audio" profile to "Off" at startup of my laptop computer)
What i do now
To avoid this problem what i do now is that each time i restart my laptop in a public place i try to remember to:
- open pavucontrol,
- go to the "Configuration" tab,
- look at the "Profile" under "Built-in Audio",
- and turn it "Off" (if not already set to "Off")
Determine the Sound Card's Index:
One-time command to test:
Once you've confirmed the above command works, you can put this in
/etc/pulse/default.pa
to set on every startup automatically: