26

I have just upgraded my ubuntu to 22.04 but the audio is not working. In the setting, the audio option has only "Dummy Output" and the test fails.

I have tried to do what is reported here and here but both do not work.

Thanks

diedro
  • 413
  • 1
  • 3
  • 8
  • 1
    I've fixed it: Visit https://askubuntu.com/questions/1407616/upgrade-from-21-04-to-22-04-audio-lost-dummy-output-only – user174147 May 28 '22 at 10:45
  • just want to note that so far none of the solutions here have worked, and neither has upgrading to 22.10 (so don't waste your time trying that!!) – ErichBSchulz Apr 14 '23 at 01:21

5 Answers5

26

This looks very similar to No sound output devices listed after upgrade from 21.10 to 22.04

that I could solve with:

sudo touch /usr/share/pipewire/media-session.d/with-pulseaudio
systemctl --user restart pipewire-session-manager

(credits go to https://askubuntu.com/a/1404159/139249)

mike stewart
  • 489
  • 1
  • 5
  • 15
Mossroy
  • 1,096
  • 9
  • 13
1

I have found this solution here.

Firstly, I have kill pulseaudio:

pulseaudio -k

After that, I have check if my laptop uses snd_hda_intel:

lsmod | grep snd_hda_intel

Luckily, it does.

I have, hence, run the following command:

echo "options snd-hda-intel model=generic" | sudo tee -a /etc/modprobe.d/alsa-base.conf

Finally, I have switched off and switched on my laptop. It seems that a simple reboot is not enough.

Best

diedro
  • 413
  • 1
  • 3
  • 8
  • Thanks for the comment. I have edited my previous answer. – diedro May 06 '22 at 07:44
  • Recently, I have found that even what I have done is not enough. I have to reboot each log-in session in a recovery mode. this procedure seems to fix other issues that I am experiencing such as problems with python debug mode and video plays. – diedro May 09 '22 at 08:59
1

Try both pulseaudio --kill then pulseaudio --start

The dummy audio is coming up for me after suspend, and to fix it I needed both:

pulseaudio --kill
pulseaudio --start

Certain applications also needed to be restarted to pick up the new pulseaudio, e.g. VLC.

More details at: No sound on wake, Dummy Output always takes over. 'pulseaudio -k' the fix

Tested on Ubuntu 22.04.1, Lenovo ThinkPad P51.

Ciro Santilli OurBigBook.com
  • 26,663
  • 14
  • 108
  • 107
1

I found the following to fix sound. This is not my fix but it worked because my hardware was Intel Pentium based. So if your hardware is Intel then edit this file:

sudo nano /etc/default/grub

Goto line: GRUB_CMDLINE_LINUX_DEFAULT=""

At the end Add to the following line enter the following: snd_hda_intel.dmic_detect=0

Press CTL+X, type "y" for yes, press enter to exit

Then type the following: sudo update-grub

Now reboot. You should have sound.

David
  • 2,105
  • 13
  • 15
  • 25
0

In my case, I had the same issue after packages update on ubuntu 22.04, and was solved by updating preinstalled PipeWire to use ppa version. You can follow the installation instructions here to see if it helps: https://linuxconfig.org/how-to-install-pipewire-on-ubuntu-linux

UPDATE:

After a few reboots, it stopped working again. New error showed me "org.freedesktop.systemd1 exited with status 1", so I dig deeper and found my /run/user/1000 folder was owned by root (because of docker restart policy). I removed the folder and reboot the system.