how to make the Ubuntu volume control to work on the active output device

3

1

I am listening to audio with headphones attached to my Lenovo Thinkpad docking station. The output device is "ThinkPad OneLink Plus...". However the volume control, both the keyboard volume keys and volume button on the indicator panel, work only on the "Built-in Audio" (presumably the computer itself) and does not have any effect on the volume. Is there a way to change this, perhaps setting the other one as the default? (xUbuntu 16.04)

enter image description here

davka

Posted 2018-04-24T11:39:06.193

Reputation: 43

1just a guess: click the green circle icon with a white tick next to the ThinkPad OneLink+ Stereo entry to make it the default output device – guest-vm – 2018-04-26T12:20:25.920

And if you don't want to make the Dock the default audio device, there are plenty of tutorials (google) how to customize audio controls - basically you use pacmd or pactrl, and intercept media keys in the window manager. That's how I do it with fvwm; no idea what desktop/window manager xUbuntu uses. – dirkt – 2018-04-26T12:24:12.157

Answers

2

My guess is the green checkmark button selects the default device. I've admittedly not used xUbuntu 16.04 though so if that is the case, hat tip to the UI designer.

If your changes are not being saved, it looks like maybe it's because a user config is overriding the system config. This question about setting the HDMI output of a laptop can probably serve as a good model configuration for you to tweak for your purposes and mentions at the very bottom that they had to copy /etc/pulse to ~/.config/pulse. Alternatively, I suspect you could remove or rename ~/.config/pulse and it would use the system config. If you test this, I would suggest renaming it or moving it to a different location so you can restore it if necessary. I'm also unsure which one the control widget would be editing, but I would think it's the user config, ~/.config/pulse.

The similar sounding questions I'm basing my answer on are https://askubuntu.com/questions/772563/16-04-switches-from-default-audio-device-when-not-available-but-doesnt-switch which references https://unix.stackexchange.com/questions/293399/how-to-set-hdmi-sound-output-as-default-on-ubuntu-16-04 as its solution.

BytePorter

Posted 2018-04-24T11:39:06.193

Reputation: 316

I am quite embarrassed to admit that clicking on the green button did the trick.
Since both are green and have a checkmark it's hard to see which is selected. As you say, chapeau to the UI designer :)
– davka – 2018-04-30T12:37:01.120