<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#c15">Comment # 15</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:rocketraman@gmail.com" title="Raman Gupta <rocketraman@gmail.com>"> <span class="fn">Raman Gupta</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=68286#c14">comment #14</a>)
<span class="quote">> 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).</span >
Yes, that seems to be the case.
<span class="quote">> 2. Pulseaudio doesn't really support using the headphones and speakers at
> the same time.</span >
Switching rather than using both simultaneously is more important to me, but
yes.
<span class="quote">> 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.</span >
Yes, that would be ideal.
<span class="quote">> 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:</span >
The first goal is what I am primarily interested in.
<span class="quote">> 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</span >
Running the above two commands results in no output at all. Either to my
headphones or to my speakers (sound stops after the first command, and the
second does not restore it).
<span class="quote">> 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</span >
This restores sound as it was before.
<span class="quote">> (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?</span >
No. See above.</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>