If you have no sound in Ubuntu, the fix usually involves checking the output device, unmuting the audio, and reinstalling or updating the sound drivers. This guide walks you through the most common causes and solutions, from simple settings checks to more advanced driver reinstallation.
Quick Checks: Volume and Output Device
Before diving into terminal commands, verify the basics. Click the speaker icon in the top-right corner of your screen and ensure the volume slider is not at zero and the mute button is not active. Then, check if the correct output device is selected—if you have HDMI, USB, or Bluetooth audio devices connected, Ubuntu might be sending sound to the wrong one.
- Test with a different app: Play a video on YouTube or a local music file to see if sound works in one app but not another.
- Try a different port: If using a headphone jack, try the rear panel audio jack on a desktop, or a different USB port for USB headphones.
- Check external speakers: Ensure they are powered on and the volume knob is turned up.
Restart PulseAudio or PipeWire
Ubuntu uses PulseAudio (on older versions) or PipeWire (on newer versions, such as 22.04 and later) as its sound server. A common fix is to restart the sound server, which can clear glitches and re-route audio correctly.
- Open a terminal (Ctrl+Alt+T).
- For PulseAudio, run:
pulseaudio -kthenpulseaudio --start. - For PipeWire, run:
systemctl --user restart pipewire pipewire-pulse. - Alternatively, you can simply log out and log back in, or restart your computer, which often resolves the issue.
Check and Unmute Audio Sinks
Sometimes the audio channel is muted at the ALSA (Advanced Linux Sound Architecture) level, which is the low-level kernel sound system. The amixer command can show and change these settings.
- Run
amixerin the terminal to see the current mixer controls. - Look for a line that says
[off]or[mute]for your sound card. - To unmute the master channel, run:
amixer set Master unmute. - If you have a headphone or speaker channel, unmute those as well:
amixer set Headphone unmute.
Install or Reinstall ALSA and PulseAudio/PipeWire
If the above steps fail, the audio packages may be corrupted or missing. Reinstalling them can restore default configuration files and fix broken dependencies.
- Open a terminal.
- Update your package list:
sudo apt update. - Reinstall ALSA and PulseAudio (or PipeWire):
sudo apt install --reinstall alsa-base pulseaudio(orpipewire-pulseon newer versions). - Reboot your system after the reinstall.
Check Kernel Modules and Hardware
If your sound card is not detected at all, the kernel module may not be loaded. You can check with the lspci and aplay commands.
- Run
lspci | grep -i audioto see if your sound card is listed. - Run
aplay -lto list all playback devices. If nothing appears, the driver is not loaded. - If your card is not listed, try loading the module manually:
sudo modprobe snd-hda-intel(for most Intel and Realtek cards). - For some laptops, you may need to add options to the module configuration file (e.g.,
/etc/modprobe.d/alsa-base.conf) to set the correct model. This is advanced and hardware-specific.
Frequently Asked Questions
Why does my HDMI audio not work?
HDMI audio often requires the graphics driver to be properly installed. If you have an NVIDIA or AMD GPU, install the proprietary driver from “Software & Updates” > “Additional Drivers”. Then, select the HDMI output in the sound settings.
Why is there no sound after a kernel update?
Kernel updates can sometimes break audio drivers. The quickest fix is to boot into the previous kernel from the GRUB menu (hold Shift at boot) and then reinstall the latest kernel once you have sound again. Also, check if a newer driver package is available.
Can I use a USB sound card as a workaround?
Yes, a USB sound card (often called a USB audio adapter) is a reliable workaround if your internal sound card is not recognized. Plug it in, and Ubuntu will typically detect it as a new output device, which you can select in sound settings.
How do I reset all audio settings to default?
You can reset the user-level PulseAudio configuration by deleting the ~/.config/pulse directory and then restarting the sound server. Run: rm -r ~/.config/pulse and then pulseaudio -k. For PipeWire, delete ~/.local/state/wireplumber and restart.
Why is my microphone not working, but speakers are?
This is often a separate issue. Check the input device in sound settings and ensure it is not muted. Also, check the ALSA mixer with alsamixer and press F4 to view capture devices—make sure the mic is not muted (MM at the bottom).
What if the sound is crackling or stuttering?
This is usually a buffer size or sample rate issue. In PulseAudio, you can edit /etc/pulse/daemon.conf and change default-sample-rate to 48000 or 44100, and set default-fragments and default-fragment-size-msec to higher values. Then restart PulseAudio.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Fix Error 0x8007025d in Windows 10
- Fix Alexa App Stuck on Setup
- Android Camera for 7 Office Tasks: Step-by-Step
- Pair Phone to Pioneer Stereo After Bluetooth Reset
- Fix Windows Not Saving Remote Desktop Credentials
- Essential Tips for macOS Users Switching to Windows