Score:1

How to ensure that the built-in audio (laptop speakers) profile is set to off at startup?

at flag

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:

  1. open pavucontrol,
  2. go to the "Configuration" tab,
  3. look at the "Profile" under "Built-in Audio",
  4. and turn it "Off" (if not already set to "Off")

pavucontrol

HolyBlackCat avatar
cn flag
Interestingly, my xubuntu maintains separate volume levels for speakers and headphones (albeit mine are wired), so once muted, the speakers never get enabled automatically.
Score:1
it flag

Determine the Sound Card's Index:

pacmd list-cards

One-time command to test:

pactl set-card-profile <cardindex> off

Once you've confirmed the above command works, you can put this in /etc/pulse/default.pa to set on every startup automatically:

set-card-profile <cardindex> off
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.