46

This is on a machine I upgraded from 18.04 to 20.04 a few days ago. No issues at all getting sound to play out of headphones on 18.04.

The headphones are paired with Bluetooth. I unpaired and repaired them just to be sure. The settings panel for sound has them as an output option and I can select it without issue. However, no sound ever comes out of the headphones. I've even adjusted the volume both in the settings panel, in alsamixer and in pavucontrol. Nothing changes.

I see no errors in the bluetooth service log.

Output of:

{ sudo lshw | grep product | head -n1 && sudo lspci -knn | grep Net -A3 && lsusb -v; } >output.txt 2>&1

https://pastebin.com/VJ5EQcFb

4
  • 1
    You could try option # 3 here – Raffa Apr 27 '20 at 21:53
  • 1
    @K7AAY: there is a huge amount of information in the output, far more than I can put in here. I put it in a pastebin: pastebin.com/VJ5EQcFb – siride Apr 27 '20 at 22:36
  • 1
    @Raffa: already done, along with uninstalling and reinstalling Alsa and such (option #2). I try to do my homework before ever asking questions. – siride Apr 27 '20 at 22:38
  • 1
    @Raffa, option 3 worked for me on Ubuntu 20.04LTS : I could connect to my bluetooth speaker but even though I chose it as sound output, the sound would still come out of my HDMI screen. Now it works : thank you ! – Polypheme Nov 5 '20 at 23:13
92

This is a bug (pulseaudio #832, launchpad #1866194) with new version of pulseaudio in Ubuntu 20.04 where old config values have not been cleared and it is not routing to the correct device. The solution is to delete the old config and restart pulseaudio:

Open a terminal (Ctrl+Alt+T) and run the following commands:

mv ~/.config/pulse/ ~/.config/pulse.old
systemctl --user restart pulseaudio

A pulseaudio fix #298 is currently in progress.

7
  • 4
    +1 this is the only solution that worked for me. – begumgenc Jun 8 '20 at 11:13
  • 1
    Work for me on Kubuntu. – Erich Jul 12 '20 at 4:57
  • 1
    nice, worked for me also, and if want to remove the old pulse config once you succeed restarting it, just: rm -rf ~/.config/pulse.old – Amine M Jul 21 '20 at 9:07
  • thanks. this command plus askubuntu.com/a/1238076/867994. worked – Adil Saju Aug 17 '20 at 10:28
  • 1
    In my case there was no sound from one bud, this solution worked in that case too. – Ashwani Aug 18 '20 at 7:15
24

It's not a fix, only a workaround; I installed pulse audio volume control utility:

sudo apt-get install pavucontrol

The problem seems that Ubuntu doesn't change all the audio sources to the Bluetooth device, in the volume control utility you will see this more clearly, the Bluetooth device is connected but not used as audio playback device. (see pulse audio volume control utility).

Find your audio source; mine was firefox since I was playing some videos from YouTube, and select the Bluetooth playback device (mine was a Xiaomi speaker) (XMFHZ02) and change it. Your device should start outputting audio.

Hope it helps

6
  • thanks! It was clear as you mentioned after opening the pulseaudo volume control what the problem is. Worked for QuietComfort 35 II Headphone. It is even switching back to headphone as output after turn the headphone off and on again. – baris May 1 '20 at 17:02
  • 2
    doesn't seem to work for me – Grateful May 7 '20 at 2:50
  • for me working selecting the bluetooth – Jonathan Rodriguez May 18 '20 at 15:03
  • Does not work for me (Tzumi earbuds). Pavucontrol only shows plugged in audio. The a2dp driver does not load. I have to connect/reconnect. Not a big deal. – ross minet Jun 6 '20 at 11:15
  • This worked well for me. You can also select the application using sound. – NixMan Oct 6 '20 at 16:33
8

I reinstalled, and it worked, without having to reboot:

sudo apt install --reinstall pulseaudio pulseaudio-module-bluetooth
1
  • I know this is somehow not completely relevant BUT it saved me from a problem that I had for quite long time... So. I couldn't change audio profiles (in order to use the headsets microphone) and I could only use A2DP Sink (only for listening) – kostia Jan 5 at 10:57
2

Option #3 as described here worked for me.

Additionally info:

  • I upgraded from 19.10 to 20.04

  • When adjusting the volume via the volume up/down hotkeys the feedback sound would play through the headphones. They were also detected in the settings. The audio stream from other applications would still play through the laptop speakers.

  • The packages @Mirek mentioned, pulseaudio and pulseaudio-module-bluetooth were already installed

0

After a few reboots, it seems to be working. I'm not sure specifically which thing worked, but here are the things I tried.

  1. Everything in this answer: Ubuntu 18.04: Audio doesn't work unless I switch between outputs
  2. Un-pairing and re-pairing my BlueTooth headphones. I am using blueman-applet.
  3. Muting and unmuting the sound in AlsaMixer across all devices.
  4. Selecting, deselecting and reselecting the headphones output in the configuration panel for sound.
2
  • I just upgraded to ubuntu 20... And it doesn't seem to be working for me! Anyone have any suggestions? – Grateful Apr 29 '20 at 7:28
  • Same here - installed from scratch 20.04 and no sound. Actually, Bluetooth "tester" in Settings works well. But none of the applications can emit sound. – Piotr Czekalski Apr 29 '20 at 19:26
0

I had a similar problem, this worked for me.

Install Pulse Audio with Bluetooth module:

$ sudo apt install pulseaudio pulseaudio-module-bluetooth

Open it and select the desired output channel in Playback tab.

The tool allows tweaking also other sound settings.

Not the answer you're looking for? Browse other questions tagged or ask your own question.