Score:0

Ubuntu detects speakers wrong

in flag

My laptop has 2 pairs of speakers. Ubuntu 21.10 detects them as "Speakers" and "Headphones". AlsaMixer Screenshot
So, if I try to change the volume in the system, it changes only the "Speakers" volume. It means that only the volume of one pair of speakers is being changed. How I can config settings so that Ubuntu detects all speakers as "speakers" and I can change the volume of all 4 of them?

P.S: There is one output device in the sound settings.

Dmitry Marchuk avatar
in flag
Fallback solution: 1) Run command `pactl load-module module-combine-sink` 2) Choose "simultaneous output to..." in the sound settings
Tejas Lotlikar avatar
tr flag
Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
Dmitry Marchuk avatar
in flag
The goal is to increase or decrease the volume of all 4 speakers, and not 2 of them, as now
Dmitry Marchuk avatar
in flag
@TejasLotlikar what exactly do you not understand?
Score:1
tr flag

There is no option to enable simultaneous output in the default pulseaudio. You need to install paprefs package for additional pulseaudio controls. You can install it using

sudo apt install paprefs

Once installed, execute it through terminal using

paprefs

In the preferences window, choose Simultaneous Output tab.

Then check the option to Add virtual output device. Then add the 'Speakers' and 'Headphones' together as a device.

Kill the pulseaudio process using pulseaudio -k and then restart it.

Dmitry Marchuk avatar
in flag
Yeah, that's works, but, maybe there is some opportunity to config the system so that it will detect all 4 speakers as the same objects (like "Speakers", and not "Speakers" and "Headphones"). I wouldn't like to simulate like 4 speakers in the laptop are the one sound system. Why do I have to do it if it's so?
Score:0
in flag

For me the solution was:

  1. Get card and device numbers using command aplay -l
  2. Add the following code in the file /etc/pulse/default.pa
load-module module-alsa-sink device="hw:0,0" sink_name=MyOutput1
load-module module-alsa-sink device="hw:0,1" sink_name=MyOutput2 
load-module module-combine-sink sink_name=Speakers slaves=MyOutput1,MyOutput2
set-default-sink Speakers
  1. Then restart PulseAudio to load the new configuration systemctl --user restart pulseaudio
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.