No audio on Ubuntu 18.04

The audio on everything is gone, nothing in browsers or viewers. I just downloaded 18.04, but it didn't work on 16.04 either. I can watch videos fine but only with missing sound.

These are my specifications:

  • Details: Memory-3.8 Gib
  • Processor-Intel® Atom™ x5-Z8350 CPU @ 1.44GHz × 4
  • Graphics-Intel® HD Graphics (Cherrytrail)
  • GNOME- 3.28.1
  • OS Type-64bit
  • Disk-61.3Gib

This worked just fine for me :

  1. Open a terminal :

    sudo apt-get install pavucontrol
    pavucontrol
    
  2. Go to configuration and set the Profile to: Analog Stereo Out

Then enjoy :)


This tutorial worked for me when I had 16.04. It also worked for me with 18.04, but I didn't do all of the steps.

What I did was to skip all of the steps, tried this in terminal that I saw in another posting.

pulseaudio --start

and then went straight to step 6.

sudo apt-get install pavucontrol

then run

pavucontrol

With this opened, I went to the Output Devices tab and changed the Port to Line Out (unplugged). And then I saved the icon in the launcher to add to favorites. Whenever you restart or start up your system, you might need to set this setting. I wish there was an automated setting where it is always set. I also changed my configuration to analog stereo output and then moved the slider under the port setting in the Output Devices tab from Silence to 100% (0dB).

To automate it, after setting volumes through pavucontrol, from terminal:

alsactl store

and autorun at login the restore command (probably both by sudo, whitelisting the command on sudoers to not ask password)

alsactl restore

Let me know if this helps.