On Wed, 2017-10-18 at 10:35 +0200, Guenter Milde wrote: > On Sun Oct 15 09:50:43 Tanu Kaskinen wrote: > > On Sat, 2017-10-14 at 18:12 +0200, Guenter Milde wrote: > > > My test shows that with "switch=mute", I can toggle the mute-state of > > > speaker and headphones independently. Unmuting the speaker does not > > > unmute the headphones and vice versa. > > How did you test? Since the Headphone element mutes both headphones and > > speakers, you can't mute headphones independently from speakers. If you > > mean that you can mute the sink in pulseaudio while using headphones, > > and the sink gets automatically unmuted when you switch to the speaker > > port, that's because PulseAudio stores the sink mute status separately > > for the two ports and the alsa mixer gets updated during a port switch. > > With the above patch: after plugging in headphones, sound is in the > headphones and the internal speaker is muted. > > In the pulseaudio mixer, I open the tab Output. There, I can select the > active Port from a drop down list with the options Speaker and > Headphones. > > Changing the volume or muting in the GUI elements below affects the active > port only: > > * If I switch the active port to speaker, I can unmute the speaker and > control the volume. Now, both headphones and speakers emit audible sound. > > * If I switch the active port to headphones, I can mute the headphones. > This does *not* change the speaker setting in my case: > Despite the headphones plugged in, the speaker emits sound at the previous > volume and the headphone is mute. Ok, now I'm confused. The last sentence describes a situation that I'd expect to be impossible with your patched configuration. What does the following command print? amixer -c0 get Headphone -- Tanu https://www.patreon.com/tanuk