analog-output-speaker not working anymore when headphone is plugged
Submitted by Knuth Posern
Assigned to pul..@..op.org
HP desktop pc with audio line-out / headphone jack in front and rear AND a built-in mono speaker.
Hardware: 00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
Debian wheezy stable system with pulseaudio 2.0-6.1
With alsa there is a ""Simple mixer control 'Independent HP'" if set to
- "Enable", sound is /only/ audible through the built-in speaker
- "Disable", sound is /only/ audible through the connected headphone/line-out
With pulseaudio (thanks a lot to poljar #pulseaudio IRC !): (1.) If I unplug any line-out audio cable aka headphone cables, then * pactl set-sink-port 0 analog-output-headphones Makes sound only be audible through the built-in internal mono speaker * pactl set-sink-port 0 analog-output-speaker Makes no sound audible (which seems to be exactly how it should be :)
(2.) If I plug an headphone cable either rear or front, then: * pactl set-sink-port 0 analog-output-headphones Makes sound /only/ be audible through the plugged headphone/line-out BUT: * pactl set-sink-port 0 analog-output-speaker Makes sound /only/ be audible through the plugged headphone/line-out TOO
<poljar> statement: that sounds wrong, analog-output-speaker should either tagged as not available if the hardware prevents it to output to the speaker while something is connected or it should work, so feel free to report a bug
I created for both cases (1.) and (2.) the pulseaudio-output and the client-output. I hope you find them useful. Please let me know if you need anything else.
The system is a headless server system. pulseaudio is running as user pulse
To get the pulseaudio-output it ran like this (debian default with changed --log-target and added -vvvvvv):
/usr/bin/pulseaudio -vvvvvv --system --disallow-exit --daemonize --log-target=file:/tmp/pulseaudio.log --high-priority --disallow-module-loading=1
So unter pulse I did not find any way yet to use the built-in speaker for sound-output when I have a headphone/line-out plugged. Even though under alsa I am able to toggle the output to come through the built-in speaker and with or without a headphone/line-out plugged!
This is bugging me, because I have my stereo plugged all the time to the system, but it ONLY gets turned on, when I need it. So important system notifications should be played through speaker.
Please help :)
Thanks a lot in advance !