34

Installed Ubuntu 20.04 and I do not have sound.

I already tried many ways to solve it but the problem persists. When i run alsa mixer this comes out.

alsa mixer

9 Answers9

35
sudo apt-get remove timidity
sudo shutdown now -r

That's all, problem solved.

Lorenz Keel
  • 9,511
22

I had this same issue a few days back when I updated my system to kubuntu 20.04. All I needed to do was type alsactl restore into my console and my audio jack started functioning again.

Edit: I'd advise you to use a .desktop file or keep it handy another way, because you'll have to run this script whenever you plug in a pair of headphones.

Jake t
  • 383
  • 1
  • 12
16

internal sound card not detected (dummy output) with Ubuntu 20.04. The solution to this "dummy out" regression is:

Form 1

  1. You must add options snd-hda-intel dmic_detect=0 at the end of /etc/modprobe.d/alsa-base.conf. Do not change anything else in this file! Type in your terminal: sudo nano /etc/modprobe.d/alsa-base.conf //then open nano text editor in the same terminal and add at the end options snd-hda-intel dmic_detect=0 ,then press Ctrl+o and press Enter, then Ctrl+x to close the editor.

  2. Edit /etc/modprobe.d/blacklist.conf as root and add the blacklist snd_soc_skl at the end of the file. You can do this with a single command, using (execute this command only once): Type in your terminal: sudo nano /etc/modprobe.d/blacklist.conf //then open nano text editor in the same terminal and add blacklist snd_soc_skl to the end, then press Ctrl+o and press Enter, then Ctrl+x to close the editor.

  3. After making these changes, restart your system with sudo reboot.

Form 2

  1. If the problem persists, you can try to upgrade the kernel to another version. In my case, the 5.6.0 kernel worked for me:

    //This link is for the 5.6.0 version https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.6/ //this link below is for you to download the version of the kernel that is stable and go to the folder https://kernel.ubuntu.com/~kernel-ppa/mainline/

  2. You will get a lot of files, but you will only download 4 deb files if your PC or laptop is 64-bit which are: linux-headers,linux-image,linux-modules and lastly the one that says all.deb for example:

    linux-headers-5.6.0-050600-generic_5.6.0-050600.202003292333_amd64.deb linux-image-unsigned-5.6.0-050600-generic_5.6.0-050600.202003292333_amd64. deb linux-modules-5.6.0-050600-generic_5.6.0-050600.202003292333_amd64.deb linux-headers-5.6.0-050600-generic_5.6.0-050600.202003292333_amd64.deb

    // They don't have to have the same numbers, but at least they have to say the name of the files I told you about and the .deb format

  3. After downloading them, put them in a single folder, if in the downloads folder there are no other files and only the 4 that you downloaded, it is no longer necessary to put them in a folder.

  4. Then in the folder where the downloaded files are, open the terminal in that folder or open the terminal program you have and run sudo -s enter your password then type cd ~/Downloads, then type sudo dpkg -i *.deb.

  5. After that restart and you should have sound.

Zioalex
  • 161
  • 5
14

Can you check your sound settings? If the Output Device and Input Device drop-down lists in Sound Settings are empty then I suggest you do the following:

sudo apt-get remove --purge pulseaudio
sudo apt-get install pulseaudio
mv ~/.config/pulse ~/.config/new_pulse_conf

Reboot your pc!

The 3rd command just changes the pulse directory name. By changing the name you cause the pulse configuration to be reloaded. You have to reboot for the changes to take effect. I had the same issue with 20.04 today, fixed it by doing the same. Hope this helps.

bomben
  • 2,167
ros07d
  • 141
4

Not saying this will work for you but it worked for me (20.04 only):

https://help.ubuntu.com/community/SoundTroubleshootingProcedure

sudo apt-get update; \
sudo apt-get dist-upgrade; \
sudo apt-get install \
  pavucontrol linux-sound-base alsa-base \
  alsa-utils lightdm ubuntu-desktop \
  linux-image-$(uname -r) libasound2; \
sudo apt-get -y --reinstall install \
  linux-sound-base alsa-base alsa-utils \
  lightdm ubuntu-desktop  linux-image-$(uname -r) \
  libasound2; \
killall pulseaudio; \
rm -r ~/.pulse*; \
ubuntu-support-status || ubuntu-security-status; \
sudo usermod -aG $(cat /etc/group | \
  grep -e '^pulse:' -e '^audio:' -e '^pulse-access:' -e '^pulse-rt:' -e '^video:' | \
  awk -F: '{print $1}' | \
  tr '\n' ',' | \
  sed 's:,$::g') $(whoami)

And as one long line:

sudo apt-get update;sudo apt-get dist-upgrade; sudo apt-get install pavucontrol linux-sound-base alsa-base alsa-utils lightdm ubuntu-desktop  linux-image-$(uname -r) libasound2; sudo apt-get -y --reinstall install linux-sound-base alsa-base alsa-utils lightdm ubuntu-desktop  linux-image-$(uname -r) libasound2; killall pulseaudio; rm -r ~/.pulse*; ubuntu-support-status || ubuntu-security-status; sudo usermod -aG (cat /etc/group | grep -e '^pulse:' -e '^audio:' -e '^pulse-access:' -e '^pulse-rt:' -e '^video:' | awk -F: '{print $1}' | tr '\n' ',' | sed 's:,$::g') $(whoami)
tenta4
  • 103
1

Pulseaudio does not start after the last software update. No sound and no readings in the sound setting. You can restart pulseaudio until the next system boot:

pulseaudio --start

I searched the descriptions for the pulseaudio setting.

And in the file:

/etc/pulse/client.conf

I deleted (as root) in the line below semicolon(;):

; autospawn = yes

After restarting Ubuntu, the thanks is detected correctly. Why is it working?

Kevin Bowen
  • 20,055
  • 57
  • 82
  • 84
Ja_pl
  • 41
1

Based on DiosProFortnite v's answer:

# disable dmic_detect
sudo sh -c "grep -q 'dmic_detect=0' /etc/modprobe.d/alsa-base.conf || echo 'options snd-hda-intel dmic_detect=0' >> /etc/modprobe.d/alsa-base.conf"
# blacklist snd_soc_skl
sudo sh -c "grep -q 'blacklist snd_soc_skl' /etc/modprobe.d/blacklist.conf || echo 'blacklist snd_soc_skl' >> /etc/modprobe.d/blacklist.conf"

I cut-n-pasted these in and then rebooted when pulseaudio "lost" my audio card, (that had been working for years) and just presented "Dummy" in pavucontrol under the "Output Devices" tab.

I don't know if these commands helped or if just a reboot would have fixed the problem.

0

I upgraded from 18.04 to 20.04, there was not sound at all after the upgrade.

This solved it for me:

I edited /usr/share/pulseaudio/alsa-mixer/paths/analog-output-lineout.conf, and changed any "Element" section that has switch = off to switch = on (I didn't change those who were mute).

Then I rebooted and the sound restored.

I've found this solution here: https://itectec.com/ubuntu/ubuntu-no-sound-on-ubuntu-20-04/

0

I have tried every answer about this problem on stackoverflow but no one worked.
This is the solution that worked for me:

sudo apt-get update -y
sudo apt-get install -y gnome-alsamixer
alsamixer

Press F6 and find your sound card
By default I have HDA NVidia selected; but Chip is not match with my sound card. HDA NVidia Selected Card Alsamixer If I press F6 and choose another one I will see my Sound Card name after Chip: HD-Audio Generec We have to navigate to the Auto-Mute option by using Left/Right Arrow-Keys and then disable it by using Up/Down arrow key.

Note: This solution worked for me but may not work for you. Try all solutions you see until you repair your sound :)