Bug 107074

Summary: No sound from internal speakers when headphones plugged in
Product: PulseAudio Reporter: ettom
Component: miscAssignee: pulseaudio-bugs
Status: RESOLVED MOVED QA Contact: pulseaudio-bugs
Severity: normal    
Priority: medium CC: lennart
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description ettom 2018-06-29 21:52:18 UTC
Before updating from PA 8.0 to PA 12 I could produce sound from the internal speakers with "pasuspender -- aplay -Dhw:0 -f cd /dev/urandom" After the update I cannot produce any sound from internal speakers.

These are from before updating to PA 12, I'll soon post logs from after the update.

Output of "pactl list"
https://pastebin.com/ArURthpw
Output of "amixer -c0"
https://pastebin.com/BLkGB6XV
Comment 1 ettom 2018-06-29 21:59:26 UTC
Output of "pactl list" after the update to PA 12
https://pastebin.com/J3TP5qjn
Output of "amixer -c0" after the update to PA 12
https://pastebin.com/YHgAQUAM
Comment 2 Tanu Kaskinen 2018-07-06 09:35:03 UTC
In the PA 12 pastes the volume is set to a significantly lower value, so start by increasing the sink volume.

If that doesn't help, try shutting down all pulseaudio daemons (there may be an additional daemon running for gdm). Check with "ps aux | grep pulse" that there are no pulseaudio daemons running.

If systemd is managing pulseaudio on your machine, run these commands to stop it:

    # stop your own pulseaudio instance
    systemctl --user stop pulseaudio.service pulseaudio.socket
    # stop gdm's pulseaudio instance
    # on Debian the username is Debian-gdm, so adjust this as needed
    sudo -u gdm bash
    XDG_RUNTIME_DIR=/run/user/$UID systemctl --user stop pulseaudio.service \
                                                         pulseaudio.socket
    exit

If systemd is not managing pulseaudio, put "autospawn = no" to /etc/pulse/client.conf and run "sudo killall pulseaudio".

Now that pulseaudio isn't running, does "aplay -Dplughw:0 /usr/share/sounds/alsa/Front_Center.wav" make sound with and without headphones plugged in?
Comment 3 ettom 2018-07-08 17:21:59 UTC
I followed the steps and made sure pulseaudio daemon isnt running. In my case pulseaudio is not managed by systemd.

Running "aplay -Dplughw:0 /usr/share/sounds/alsa/Front_Center.wav" there is still no sound from speakers when headphones are plugged in. There is sound from headphones if I unmute them and there is sound from speakers if I unplug the headphones.
Comment 4 Tanu Kaskinen 2018-07-27 08:18:46 UTC
If pulseaudio isn't running, and unplugging headphones unmute the speakers, then the kernel is clearly auto-muting the speakers when headphones are plugged in. When you upgraded to PA 12, did you perhaps upgrade the kernel as well? Maybe there's a regression in the kernel, if speakers used to work with headphones plugged in.

(I assume that the "Auto-Mute Mode" in alsa mixer is still set to "Disabled" - if it's set to "Enabled", then that would explain the behaviour.)
Comment 5 GitLab Migration User 2018-07-30 10:09:53 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/251.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.