[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 14:50:32 PST 2013


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

--- Comment #15 from Raman Gupta <rocketraman at gmail.com> ---
(In reply to comment #14)
> 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).

Yes, that seems to be the case.

> 2. Pulseaudio doesn't really support using the headphones and speakers at
> the same time.

Switching rather than using both simultaneously is more important to me, but
yes.

> 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.

Yes, that would be ideal.

> 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:

The first goal is what I am primarily interested in.

> 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

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).

> 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

This restores sound as it was before.

> (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?

No. See above.

-- 
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/8116145a/attachment.html>


More information about the pulseaudio-bugs mailing list