[pulseaudio-tickets] [Bug 105654] Unable to properly switch between Speakers and Headphones (has "workaround")

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Mar 22 14:55:03 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=105654

--- Comment #8 from gbr at protonmail.com ---
(In reply to Tanu Kaskinen from comment #7)
> It sounds like your headphones are muted - check if that's the case.
After I applied your first suggestion, here's how alsamixer looks like when:

* "Line Out (unplugged)" port is selected (in pavucontrol):
https://i.imgur.com/19DS9bN.png
* "Headphones (plugged in)" port is selected (in pavucontrol):
https://i.imgur.com/ZxqWNSJ.png

To summarize: When "Line Out" is selected, I hear audio coming from speakers
and not from headphones -- perfect. But when "Headphones" is selected, I can't
hear anything at all, in both headphones and speakers.

> If they don't seem to be muted, then attach the output of "amixer -c0"
> when you have selected the headphone port.
They don't seem to be muted (there's no "MM" under it), but in the other hand,
the Headphone item set to "Off, Off" in alsamixer (see first screenshot), so I
can't manipulate its volume. But I'm attaching the output of "amixer -c0"
anyway.

> Hmm, did you apply the workaround in analog-output-headphones.conf?
Yes.

> Maybe the Front element actually does affect the headphone output,
I think it does as well.

> The lineout port is behaving as expected. If auto-mute is enabled in alsa,
> then lineout will be muted always when you have headphones plugged in.
That's correct and I can reproduce it. That's why the workaround I suggested 
involves enabling Auto-Mute when I want to exclusively use my Headphones and
mute my speakers. Obviously, I have no clue what Auto-Mute does, but it'd be
great if there was a way for PulseAudio to automatically enable Auto-Mute for
me when I want to exclusively use my headphones and not my speakers; And then
PulseAudio would disable Auto-Mute when I switch back to speakers.

> Auto-mute must be disabled if you wish to use lineout while having
> headphones plugged in.
Okay, I guess I should only try new settings with Auto-Mute disabled from now
on.

> PulseAudio currently ignores that element, so try adding this to
> /usr/share/pulseaudio/alsa-mixer/paths/analog-output-lineout.conf:
> 
>     [Element Line]
>     switch = mute
>     volume = merge
> 
> ...and this to
> /usr/share/pulseaudio/alsa-mixer/paths/analog-output-headphones.conf:
> 
>     [Element Line]
>     switch = off
>     volume = off
I'm sad to say that this had no effect whatsoever; Well, at least none of the
issues above were directly affected. I added those lines at end of both files
because there wasn't any "[Element Line]" in there, did I do it right?

Anyway, I must say I'm really greateful for your help though, so thank you very
much! I don't know if I can provide anything else to help you help me, but
whatever you may need, just ask me and I'll do my best to fulfill it.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20180322/9486ef4f/attachment.html>


More information about the pulseaudio-bugs mailing list