Many Ubuntu 24.04 users, myself included, have been experiencing sound problems. After browsing Ask Ubuntu for solutions, I finally found a fix! I'm sharing the steps here in case it helps others facing the same frustrating silence.
PROBLEM
After updating my Ubuntu to version 24.04, my desktop PC (Gigabyte H510M-K DDR4) can't detect audio drivers. Headphones work, but external speakers are not recognized.
~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC897 Analog [ALC897 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [PHL 271V8]
Subdevices: 0/1
Subdevice #0: subdevice #0
In the Sound Settings, it only shows 'Dummy Output'. I have attempted various troubleshooting steps, including:
sudo apt install --reinstall pulseaudiosudo apt install --reinstall alsa-base alsa-utilssudo apt install pulseaudiosudo apt install pavucontrolpulseaudio -k && sudo alsa force-reloadsudo touch /usr/share/pipewire/media-session.d/with-pulseaudiosystemctl --user restart pipewire-session-managersystemctl --user restart wireplumber pipewire pipewire-pulsesudo apt install pipewire-audio-client-libraries pipewire-pulse itsudo nano /etc/modprobe.d/alsa-base.confsudo nano /etc/modprobe.d/blasklist.confsudo modprobe snd-hda-intel- Trying different options such as options
snd-hda-intel model=autoandblacklist snd_soc_avs
But it did not work:
~$ sudo modprobe snd-hda-intel
~$ sudo alsa force-reload
Unloading ALSA sound driver modules: snd-seq-dummy snd-seq-midi snd-seq-midi-event snd-rawmidi snd-sof-pci-intel-tgl snd-sof-intel-hda-common snd-sof-intel-hda snd-sof-pci snd-sof-xtensa-dsp snd-sof snd-sof-utils snd-soc-hdac-hda snd-soc-acpi-intel-match snd-soc-acpi snd-hrtimer snd-seq snd-seq-device snd-sof-intel-hda-mlink snd-hda-codec-realtek snd-hda-codec-generic snd-hda-ext-core snd-soc-core snd-hda-codec-hdmi snd-compress snd-pcm-dmaengine snd-hda-intel snd-intel-dspcfg snd-intel-sdw-acpi snd-hda-codec snd-hda-core snd-hwdep snd-pcm snd-timer (failed: modules still loaded: snd-hrtimer snd-seq snd-seq-device snd-sof-intel-hda-mlink snd-hda-codec-realtek snd-hda-codec-generic snd-hda-ext-core snd-soc-core snd-hda-codec-hdmi snd-compress snd-pcm-dmaengine snd-hda-intel snd-intel-dspcfg snd-intel-sdw-acpi snd-hda-codec snd-hda-core snd-hwdep snd-pcm snd-timer).
Loading ALSA sound driver modules: snd-seq-dummy snd-seq-midi snd-seq-midi-event snd-rawmidi snd-sof-pci-intel-tgl snd-sof-intel-hda-common snd-sof-intel-hda snd-sof-pci snd-sof-xtensa-dsp snd-sof snd-sof-utils snd-soc-hdac-hda snd-soc-acpi-intel-match snd-soc-acpi snd-hrtimer snd-seq snd-seq-device snd-sof-intel-hda-mlink snd-hda-codec-realtek snd-hda-codec-generic snd-hda-ext-core snd-soc-core snd-hda-codec-hdmi snd-compress snd-pcm-dmaengine snd-hda-intel snd-intel-dspcfg snd-intel-sdw-acpi snd-hda-codec snd-hda-core snd-hwdep snd-pcm snd-timer
~$ pulseaudio --kill
~$ journalctl --user -u pulseaudio.service | awk '{print $5 "\t" $6}'
systemd[3097]: Starting
pulseaudio[14920]: Daemon
pulseaudio[14920]: pa_pid_file_create()
systemd[3097]: pulseaudio.service:
systemd[3097]: pulseaudio.service:
systemd[3097]: Failed
systemd[3097]: pulseaudio.service:
SOLUTION
Thanks to iirekm from this Ask Ubuntu post, I found an excellent solution to my problem.
Downgrade Kernel from 6.8. - 6.5. **
Due to the latest Ubuntu update, I will revert to my previously installed kernel without any new downloads.
- List available kernels:
sudo apt list --installed | grep linux-image - Install the kernel version 6.5.* (if not already installed):
sudo apt install linux-image-6.5.0-35-generic linux-headers-6.5.0-35-generic - Open the GRUB configuration file:
sudo nano /etc/default/grub - Set
GRUB_DEFAULTto the desired kernel:GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 6.5.0-35-generic - Save the file and exit (press
Ctrl + Oto save andCtrl + Xto exit). - Update GRUB and reboot:
sudo update-grub,sudo reboot - Verify the running kernel version:
uname -r
By following these steps, you should be able to downgrade your kernel version successfully and select it as the default in GRUB.
Downgrading the kernel is a temporary fix; monitor for updates addressing the issue in newer kernels. Please try the shared solutions before resorting to downgrade, as I did.
Thanks to everyone who shared many helpful ways for non-experts like me to know how to fix my computer!