Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Default output alsa
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
mikexx
n00b
n00b


Joined: 24 Aug 2018
Posts: 53

PostPosted: Mon Jan 14, 2019 7:47 am    Post subject: Default output alsa Reply with quote

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
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Mon Jan 14, 2019 7:52 am    Post subject: Reply with quote

Are you using something like Pulseaudio ?
Back to top
View user's profile Send private message
mikexx
n00b
n00b


Joined: 24 Aug 2018
Posts: 53

PostPosted: Mon Jan 14, 2019 8:38 am    Post subject: Reply with quote

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
View user's profile Send private message
mikexx
n00b
n00b


Joined: 24 Aug 2018
Posts: 53

PostPosted: Tue Jan 15, 2019 5:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum