Connecting an Ubuntu laptop or desktop to an external television, monitor, or home theatre receiver via HDMI should provide both crystal-clear video and high-definition digital audio. However, many users discover that while the external display displays the desktop perfectly, audio continues playing exclusively through the internal laptop speakers or vanishes altogether. The missing HDMI audio output error in Ubuntu typically stems from unconfigured audio sinks in modern sound servers (such as PipeWire or PulseAudio), muted S/PDIF or HDMI channels in Advanced Linux Sound Architecture (ALSA), proprietary GPU driver mismatches (Nvidia/AMD), or suspended audio controller states. This comprehensive guide details step-by-step procedures to detect hardware sinks, unblock audio profiles, and restore HDMI sound output in Ubuntu.
Common Causes of HDMI Audio Silence in Ubuntu
Linux audio architecture comprises multiple interacting layers: the hardware kernel driver (ALSA), the software sound server (PipeWire or PulseAudio), and the desktop audio manager (GNOME Control Center). The following matrix highlights the common points of failure.
| Layer / Component | Failure Mechanism | Diagnostic Command / Fix |
|---|---|---|
| GNOME Sound Settings | HDMI output sink detected but not selected as the primary output device. | Manually select HDMI / DisplayPort under Settings > Sound. |
| ALSA Hardware Channels | HDMI audio codec muted at the kernel hardware driver level. | Unmute digital channels using alsamixer. |
| PipeWire / PulseAudio Profile | Sound server profile defaulted to “Digital Stereo (HDMI) Output (unplugged)”. | Force profile activation via pavucontrol. |
| Proprietary Nvidia Driver | Open-source Nouveau driver or power-management daemon disables HDMI audio codec. | Install certified proprietary Nvidia drivers and disable audio power-save timeouts. |
| Hardware Handshake / EDID | Display fails to communicate audio capabilities over the HDMI cable. | Hotplug cable while system is active or verify with another high-speed HDMI lead. |
Step 1: Select HDMI Audio Sink in GNOME Sound Settings
The simplest scenario occurs when Ubuntu correctly initialises the digital audio sink but retains the built-in analogue speakers as the default routing target.
- Open Settings from the system application launcher.
- Click on the Sound tab in the left-hand navigation pane.
- Under the Output section, locate the Output Device dropdown menu.
- Look for an entry labelled HDMI / DisplayPort, Digital Output (S/PDIF), or the specific manufacturer brand of your external television/monitor.
- Select the HDMI device and click the Test button. Tap the left and right channel buttons to verify whether audio plays through the external speakers.
Step 2: Unmute Digital Channels in ALSA Mixer
Even if Ubuntu’s desktop settings show the HDMI device, the underlying ALSA hardware driver often leaves the digital audio output channel muted by default.
- Open your Terminal window (press Ctrl + Alt + T).
- Launch the interactive ALSA console interface:
alsamixer - Press F6 to open the Sound Card selection list.
- Select your dedicated graphics card or audio chipset (e.g. HDA Intel PCH, HDA NVidia, or HD-Audio Generic) using the arrow keys and press Enter.
- Use the horizontal arrow keys to navigate across the channels until you highlight the S/PDIF or HDMI columns.
- If you see MM at the base of the column, the channel is muted. Press the M key on your keyboard to unmute it (the label will change to 00 in green).
- Press Esc to exit ALSA Mixer.
- Save the unmuted state permanently so settings persist across system reboots:
sudo alsactl store
Step 3: Configure Output Profiles with PulseAudio Volume Control (Pavucontrol)
The standard GNOME sound interface occasionally hides inactive or misreported audio profiles. Installing the standalone volume control manager provides complete control over audio sinks.
- Install
pavucontrolvia the APT package manager:sudo apt update && sudo apt install -y pavucontrol - Launch the utility from terminal or app launcher:
pavucontrol - Navigate to the Configuration tab located on the far right.
- Locate your graphics card or HDMI audio hardware profile.
- Click the profile drop-down menu and switch it from Off to Digital Stereo (HDMI) Output (or 5.1/7.1 Surround if connected to an AV receiver).
- Switch to the Output Devices tab, ensure the HDMI output is not muted, and set it as the fallback/default device by clicking the green checkmark icon.
Step 4: Restart the Audio Subsystem (PipeWire / PulseAudio)
Modern Ubuntu releases (Ubuntu 22.10, 24.04 LTS, and newer) rely on PipeWire with WirePlumber for session routing, whereas older releases use PulseAudio. Restarting the user-level audio daemons clears stuck buffer locks:
- For PipeWire-based installations, restart the user services:
systemctl --user restart pipewire pipewire-pulse wireplumber - For PulseAudio-based systems, restart the sound server:
pulseaudio -k - Test audio playback with an interactive media clip or terminal test tone:
speaker-test -c 2 -r 48000 -D hdmi:CARD=0,DEV=0
Step 5: Resolve Nvidia Driver and Audio Power-Saving Conflicts
Users operating dedicated Nvidia GPUs often suffer from HDMI audio dropouts because Linux power-saving states automatically suspend the discrete GPU’s integrated audio controller.
- Confirm that you are running the official proprietary Nvidia driver rather than the open-source Nouveau driver by opening Software & Updates > Additional Drivers and selecting the latest tested proprietary driver (e.g.
nvidia-driver-550). - To prevent the kernel from suspending the HDMI audio codec, edit the ALSA base configuration:
sudo nano /etc/modprobe.d/alsa-base.conf - Add the following line at the end of the file to disable audio power-management timeouts:
options snd-hda-intel power_save=0 power_save_controller=N - Save changes (Ctrl + O, then Ctrl + X) and reboot your computer. Your HDMI audio will now remain active continuously without sleep-state disconnects.