<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTABUG - Support toggling speaker and headphone port output, whilst keeping headphones plugged in"
href="https://bugs.freedesktop.org/show_bug.cgi?id=68286#c17">Comment # 17</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTABUG - 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>Specifically, this is what seems to work perfectly with my setup in order to
have audio on either the speakers or the headphones, but not both:
Switch to speakers:
#!/bin/sh
amixer -c 1 sset "Auto-Mute Mode" Disabled
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-speaker
amixer -c 1 sset 'Speaker' 100
amixer -c 1 sset 'Headphone',1 0
Switch to headphones:
#!/bin/sh
# Leave Auto-Mute Mode on Disabled for output headphones + speakers
amixer -c 1 sset "Auto-Mute Mode" 'Line Out+Speaker'
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
amixer -c 1 sset 'Speaker' 0
amixer -c 1 sset 'Headphone',1 100</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>