1

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.

  1. Web search for intel hdmi driver ubuntu
    1. https://www.reddit.com/r/linuxquestions/comments/10zto7h/how_to_get_hdmi_to_work_or_how_to_get_intel/?rdt=46274
      1. But I don't know how to interpret inxi of lshw
  2. Web search for ubuntu hdmi audio crackling
    1. Static and crackling in my HDMI audio?
      1. But I don't have /etc/pulse/default.pa.
      2. I only have /etc/pulse/client.conf.
      3. And client.conf is pretty much empty.
    2. Why do I hear crackling sounds on Ubuntu 24.04? How can I fix it?
      1. Made this change: pulse.min.quantum = 512/48000 # 10.7ms
      2. Ran systemctl --user restart wireplumber pipewire pipewire-pulse.
      3. Crackling was better but still not good.
      4. Changed to 2048 with no additional improvement.
      5. Changed to 1048576 with no additional improvement.
      6. 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.
  3. Web search check kernel version linux
  4. Web search changing linux kernel
    1. Found https://zrruziev.medium.com/how-to-change-linux-kernel-version-2e9d6973d3fe
      1. Ran uname -r: got 6.8.0-51-generic b. Decided to hold off on changing the kernel.
  5. Added snd-hda-intel snoop=0 per 2091565 that bug report.
    1. But this just caused the HDMI output to disappear entirely as an option.
    2. Removing /etc/modprobe.d/hdmisoundfix.conf restored the HDMI output.
  6. Web search for ubuntu install kernal 6.13
    1. Upgrade kernel to 6.13 on Ubuntu which links to:
    2. 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
  7. Web search for install specific kernel version
    1. How do I install an old kernel? which links indirectly to https://kernel.ubuntu.com/mainline/v6.12.3/
    2. (Also, wierdly, amd64 is for intel: https://forums.linuxmint.com/viewtopic.php?t=158669)
    3. wget'd all the amd64 files.
    4. Ran $ sudo dpkg -i *.deb
    5. Same error.
    6. Tried again to for linux-image-unsigned-6.7.10-060710.
      1. No errors!
    7. Rebooting while holding down shift per How can I boot with an older kernel version?
    8. Got a kernel panic. Tried again. Booted. Ran uname -r: 6.7.10-060710-generic
      1. 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.

enter image description here

$ 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
Becca
  • 133

1 Answers1

1

I had exactly the same problem.

Fixed it with:

$ sudo vim /etc/default/grub

GRUB_CMDLINE_LINUX="intel_iommu=igfx_off"

$ sudo update-grub

https://www.kernel.org/doc/Documentation/Intel-IOMMU.txt

Hope it helps!

gonzaru
  • 11