<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Support toggling speaker and headphone port output, whilst keeping headphones plugged in"
href="https://bugs.freedesktop.org/show_bug.cgi?id=68286#c14">Comment # 14</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Support toggling speaker and headphone port output, whilst keeping headphones plugged in"
href="https://bugs.freedesktop.org/show_bug.cgi?id=68286">bug 68286</a>
from <span class="vcard"><a class="email" href="mailto:tanuk@iki.fi" title="Tanu Kaskinen <tanuk@iki.fi>"> <span class="fn">Tanu Kaskinen</span></a>
</span></b>
<pre>If I have understood correctly, there are two problems:
1. The headphone jack detection isn't working properly (it's showing up as
"unavailable" even when the headphones are plugged in).
2. Pulseaudio doesn't really support using the headphones and speakers at the
same time.
In the ideal work the alsa driver or pulseaudio (whichever is to blame) would
be fixed to make the jack detection work, and a feature would be added to
pulseaudio to make simultaneous output work out-of-the-box. I don't have time
to work on either.
If I understood correctly, you primarily would like to have an easy way to
switch between the headphones and the speakers, and secondarily you would like
to have an easy way to enable output to both at the same time. I may have a
workaround for the first goal:
Switching to headphones (two commands):
pactl set-card-profile alsa_card.pci-0000_00_1b.0
output:analog-stereo+input:analog-stereo
pactl set-sink-port alsa_output.pci-0000_00_1b.0.analog-stereo
analog-output-headphones
Switching to speakers (two commands):
pactl set-card-profile alsa_card.pci-0000_00_1b.0
output:analog-surround-40+input:analog-stereo
pactl set-sink-port alsa_output.pci-0000_00_1b.0.analog-surround-40
analog-output
(In the last command the right port might also be "analog-output-speaker"
instead of "analog-output", but I'm not sure if it really makes a difference
anyway.)
Does that work?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>