View previous topic :: View next topic |
Author |
Message |
mikexx n00b
Joined: 24 Aug 2018 Posts: 53
|
Posted: Mon Jan 14, 2019 7:47 am Post subject: Default output alsa |
|
|
Hi,
I have a Thinkpad and a Thunderbolt dock. If the laptop is connected to the dock and I boot gentoo and if I change the 'Master' volume, the volume of the current output device is changed, which is the Thunderbolt dock soundcard. However, if I connect the laptop to the dock when gentoo is booted and I change the 'Master' volume, the volume of the internal soundcard is changed, although the Thunderbolt dock is the current output device. This is quite annoying since I've set the amixer command to the volume buttons of my keyboard.
So how I can change the volume of the current output device in both situations?
Best
mike |
|
Back to top |
|
|
Keruskerfuerst Advocate
Joined: 01 Feb 2006 Posts: 2289 Location: near Augsburg, Germany
|
Posted: Mon Jan 14, 2019 7:52 am Post subject: |
|
|
Are you using something like Pulseaudio ? |
|
Back to top |
|
|
mikexx n00b
Joined: 24 Aug 2018 Posts: 53
|
Posted: Mon Jan 14, 2019 8:38 am Post subject: |
|
|
Yes.
I also tried so use pactl to change to volume. Same result, although pactl says that the Dock soundcard is the default sink.
Best
mike |
|
Back to top |
|
|
mikexx n00b
Joined: 24 Aug 2018 Posts: 53
|
Posted: Tue Jan 15, 2019 5:49 pm Post subject: |
|
|
I've solved it.
I did not see that there is a variable I can use to reference the default sink.
I used
Code: |
pactl set-sink-volume 0 +5%
|
to raise the volume.
That worked only if the docking station was connected during boot.
Using the @DEFAULT_SINK@ variable does the trick.
Code: |
pactl set-sink-volume @DEFAULT_SINK@ +5%
|
Best
mike |
|
Back to top |
|
|
|