I'm one of the many people trying to fix Ubuntu 24.04 HDMI audio crackling issues. I've tried several of the solutions. These are my notes trying to fix the issue. My question is: how can I get the audio working.
Secondary question: Having done the snoop change, how would I figure out why the HDMI disappeared?
State after Install:
- Severe crackling playing the file in VLC playing via HDMI output.
- Severe crackling doing other things with audio via HDMI output, including built-in sound tests.
- Built-in speakers plays just fine.
For comparison, I've tried this Mac on two displays, one with a newer Mac Mini where the audio works fine over HDMI and one with a Latte Panda Delta 3 running Lubuntu where the audio also works fine. The Mac in question also worked fine running Mac OS.
Here's everything I've tried so far.
- Web search for intel hdmi driver ubuntu
- https://www.reddit.com/r/linuxquestions/comments/10zto7h/how_to_get_hdmi_to_work_or_how_to_get_intel/?rdt=46274
- But I don't know how to interpret inxi of lshw
- https://www.reddit.com/r/linuxquestions/comments/10zto7h/how_to_get_hdmi_to_work_or_how_to_get_intel/?rdt=46274
- Web search for ubuntu hdmi audio crackling
- Static and crackling in my HDMI audio?
- But I don't have
/etc/pulse/default.pa. - I only have
/etc/pulse/client.conf. - And
client.confis pretty much empty.
- But I don't have
- Why do I hear crackling sounds on Ubuntu 24.04? How can I fix it?
- Made this change:
pulse.min.quantum = 512/48000 # 10.7ms - Ran
systemctl --user restart wireplumber pipewire pipewire-pulse. - Crackling was better but still not good.
- Changed to 2048 with no additional improvement.
- Changed to 1048576 with no additional improvement.
- Looked at https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2091565 : Since the update to Linux 6.8.0-50-generic, HDMI/DP audio output crackles and skips, and is completely unusable. This is via an AMD Radeon RX 550 using the default amdgpu driver.
- Made this change:
- Static and crackling in my HDMI audio?
- Web search check kernel version linux
- Web search changing linux kernel
- Found https://zrruziev.medium.com/how-to-change-linux-kernel-version-2e9d6973d3fe
- Ran
uname -r: got6.8.0-51-genericb. Decided to hold off on changing the kernel.
- Ran
- Found https://zrruziev.medium.com/how-to-change-linux-kernel-version-2e9d6973d3fe
- Added
snd-hda-intel snoop=0per 2091565 that bug report.- But this just caused the HDMI output to disappear entirely as an option.
- Removing /etc/modprobe.d/hdmisoundfix.conf restored the HDMI output.
- Web search for ubuntu install kernal 6.13
- Upgrade kernel to 6.13 on Ubuntu which links to:
- https://sypalo.com/how-to-upgrade-ubuntu
i. Following instructions for "Upgrade Ubuntu kernel version"
ii. Got error messages:
Error! Bad return status for module build on kernel
- Web search for install specific kernel version
- How do I install an old kernel? which links indirectly to https://kernel.ubuntu.com/mainline/v6.12.3/
- (Also, wierdly, amd64 is for intel: https://forums.linuxmint.com/viewtopic.php?t=158669)
- wget'd all the amd64 files.
- Ran $ sudo dpkg -i *.deb
- Same error.
- Tried again to for linux-image-unsigned-6.7.10-060710.
- No errors!
- Rebooting while holding down shift per How can I boot with an older kernel version?
- Got a kernel panic. Tried again. Booted. Ran
uname -r:6.7.10-060710-generic- However, the audio was still bad.
Additional info
Per @lukecyca's suggestion, I tried the snoop setting again:
$ echo "options snd-hda-intel snoop=0" | sudo tee /etc/modprobe.d/hdmisoundfix.conf
[sudo] password for becca:
options snd-hda-intel snoop=0
$ sudo update-initramfs -u -k all
update-initramfs: Generating /boot/initrd.img-6.8.0-51-generic
update-initramfs: Generating /boot/initrd.img-6.7.10-060710-generic
Again, the HDMI output disappeared. Here's a screengrab.
$ sudo lshw -C multimedia -C display
*-display
description: VGA compatible controller
product: Haswell-ULT Integrated Graphics Controller
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
logical name: /dev/fb0
version: 09
width: 64 bits
clock: 33MHz
capabilities: msi pm vga_controller bus_master cap_list rom fb
configuration: depth=32 driver=i915 latency=0 resolution=1920,1080
resources: irq:76 memory:a0000000-a03fffff memory:90000000-9fffffff ioport:2000(size=64) memory:c0000-dffff
*-multimedia:0
description: Audio device
product: Haswell-ULT HD Audio Controller
vendor: Intel Corporation
physical id: 3
bus info: pci@0000:00:03.0
version: 09
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=snd_hda_intel latency=0
resources: irq:16 memory:a0910000-a0913fff
*-usb
description: Video
product: USB 2.0 Camera: USB Camera
vendor: Sonix Technology Co., Ltd.
physical id: 1
bus info: usb@1:2.2.1
logical name: card1
logical name: /dev/snd/controlC1
logical name: /dev/snd/pcmC1D0c
logical name: input16
logical name: /dev/input/event4
version: 1.00
serial: SN0001
capabilities: usb-2.00 usb
configuration: driver=snd-usb-audio maxpower=500mA speed=480Mbit/s
*-multimedia:1
description: Audio device
product: 8 Series HD Audio Controller
vendor: Intel Corporation
physical id: 1b
bus info: pci@0000:00:1b.0
logical name: card0
logical name: /dev/snd/controlC0
logical name: /dev/snd/hwC0D0
logical name: /dev/snd/pcmC0D0c
logical name: /dev/snd/pcmC0D0p
logical name: /dev/snd/pcmC0D1p
version: 04
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=snd_hda_intel latency=0
resources: irq:75 memory:a0914000-a0917fff
$ inxi -SMA
System:
Host: lorem-ipsum Kernel: 6.8.0-51-generic arch: x86_64 bits: 64
Desktop: GNOME v: 46.0 Distro: Ubuntu 24.04.1 LTS (Noble Numbat)
Machine:
Type: Laptop System: Apple product: Macmini7,1 v: 1.0
serial: <superuser required>
Mobo: Apple model: Mac-35C5E08120C7EEAF v: Macmini7,1
serial: <superuser required> UEFI: Apple v: 431.0.0.0.0 date: 02/22/2021
Audio:
Device-1: Intel Haswell-ULT HD Audio driver: snd_hda_intel
Device-2: Intel 8 Series HD Audio driver: snd_hda_intel
Device-3: Microdia USB 2.0 Camera driver: snd-usb-audio,uvcvideo type: USB
API: ALSA v: k6.8.0-51-generic status: kernel-api
Server-1: PipeWire v: 1.0.5 status: active
