9

On my fully updated Ubuntu 18.04.3 system, audio doesn't work unless I switch between outputs. When I boot my PC, the right output (stereo speakers) is already selected by default, but there is no audio from Chromium, Firefox, VLC or any other program. However, the GNOME speakers test works. I can hear "front left" and "front right" from there, but no audio from other programs. In order to fix that, I can simply switch to another audio output (e.g. HDMI out) and then switch back to the stereo speakers, and the audio will magically work. Any idea why? It's not a big deal because it takes a couple of seconds to switch between outputs, but it's kind of annoying to do that after every reboot.

Raffa
  • 32,237
otpabu
  • 133
  • Is this something new that append lately or it was like this since you first installed Ubuntu on your machine? – Raffa Aug 14 '19 at 07:59
  • It started happening yesterday. My Ubuntu install is a few months old and is quite minimal, as I only have a few essential programs installed. I didn't change anything, only updated the system as I do every 2-3 days or so. – otpabu Aug 14 '19 at 08:07
  • I found that this solution worked - seems to be fine now https://askubuntu.com/questions/963756/installing-google-chrome-remote-desktop-messed-up-my-box – Robert Miller Aug 17 '19 at 15:50

1 Answers1

23

Option 1

Please, run in the terminal:

sudo alsa force-reload

This will reload ALSA sound driver modules in case they were modified by an upgrade, reinstall or install for example and the old ones are still in use as users tend to avoid reboots sometimes or do not think a reboot is needed after such upgrades.

Option 2

Please, run in the terminal:

alsamixer

You will then be presented with a screen like this:

screenshot

Please, check if the speakers or any audio output is muted and unmute it.

MM means mute and OO means unmute.

Then exit when done by pressing Esc

Option 3

Old pulseaudio configuration files can sometimes get corrupted or conflict with newer versions of pulseaudio after package / system upgrades. To fix this please follow the steps below:

  • Back up ~/.config/pulse/ configuration directory to ~/.config/pulse_old/ by running the following command in the terminal:

    mv  ~/.config/pulse/ ~/.config/pulse_old/
    
  • After that, reboot your system to build new pulseaudio configuration files. A new ~/.config/pulse/ directory will be created automatically.

  • Test your audio now.

If, somehow, after applying this fix you decide to go back to the previous state before applying the fix, please follow the steps below:

  1. Run the following command in the terminal:

    rm -r  ~/.config/pulse/
    
  2. Run the following command in the terminal:

    mv  ~/.config/pulse_old/ ~/.config/pulse/
    
  3. Reboot your system.

However, if all is okay and the problem is fixed, you can remove the backed up old configuration directory ~/.config/pulse_old/ to free space ( if you wish ) by running the following command in the terminal:

rm -r  ~/.config/pulse_old/
Pablo Bianchi
  • 15,657
Raffa
  • 32,237
  • 3
    Option #3 worked for me! Thank you! – ivizot Apr 28 '20 at 12:08
  • This disabled my previously working bluetooth audio in Ubuntu 20.04. – Bhaskar May 04 '20 at 08:21
  • 1
    Wait, wouldn't with method 2 you end up losing all the packages that depend on alsa-base and pulseaudio, like ubuntu-desktop metapackage? It seems to me that you would. – Alexey May 04 '20 at 08:34
  • 1
    @Alexey Yes, that's what happened in my case and the pulseaudio-module-bluetooth package got uninstalled. – Bhaskar May 04 '20 at 08:52
  • @Alexey Thank you, I removed that option. @bhaskar These packages can be reinstalled with sudo apt install alsa-base libcanberra-pulse pulseaudio pulseaudio-module-bluetooth ubuntu-desktop ubuntu-desktop-minimal – Raffa May 04 '20 at 18:58
  • Would you mind sharing why you think these methods can work, or where you got this information? – Alexey May 04 '20 at 21:39
  • @Alexey sudo alsa force-reload will reload ALSA sound driver modules in case they were modified by an upgrade/reinstall/install for example and the old ones are still in use as users tend to avoid reboots sometimes or do not think a reboot is needed after such upgrades. The other two methods are well explained in the answer I think. It is basic sound troubleshooting no more and no less. Again thank you. – Raffa May 04 '20 at 22:26
  • 1
    @raffa you're the man! Option #3 did it for me (updgrade 18.04 => 20.04) – undefinederror Jun 05 '20 at 10:31
  • 1
    option 3 worked for me on Ubuntu 20.04LTS : I could connect to my bluetooth speaker but even thoug I chose it as sound output, the sound would still come out of my HDMI screen. Now it works : thank you ! – Polypheme Nov 05 '20 at 23:12
  • 1
    Worked for me on ubuntu 20.04, thank you! Now music comes out of my bluetooth device again :-) – Stefan Mar 12 '21 at 18:40