[pulseaudio-tickets] [Bug 68286] Support toggling speaker and headphone port output, whilst keeping headphones plugged in

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Nov 22 09:22:03 PST 2013


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

--- Comment #14 from Tanu Kaskinen <tanuk at iki.fi> ---
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?

-- 
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: <http://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20131122/702e9123/attachment.html>


More information about the pulseaudio-bugs mailing list