How to Fix PipeWire Audio Crackling and Popping in Ubuntu

Modern Ubuntu installations (including Ubuntu 22.10, 23.04, 23.10, and 24.04 LTS) replace the legacy PulseAudio sound server with PipeWire and the WirePlumber session manager. While PipeWire provides ultra-low latency and superior Bluetooth codec handling, users frequently experience audio crackling, static popping sounds, and intermittent audio micro-stutters when streaming media, gaming, or playing sound after periods of silence.

This distortion is almost always caused by aggressive audio hardware power-saving states (causing hardware DACs to sleep and wake abruptly), mismatched audio buffer quantum sizes, or sample rate resampling latency. Follow these practical configuration steps to achieve clean, studio-grade sound playback on Ubuntu.

Disable Audio Hardware Power-Saving in WirePlumber

By default, WirePlumber suspends inactive audio endpoints after five seconds of silence to conserve battery. When audio resumes, the hardware amplifier wakes with an audible “pop” or crackling noise.

  1. Open the Terminal application (Ctrl + Alt + T).
  2. Create a custom local WirePlumber configuration directory to override system defaults safely:
    mkdir -p ~/.config/wireplumber/wireplumber.conf.d/
  3. Create a new configuration override file:
    nano ~/.config/wireplumber/wireplumber.conf.d/51-disable-suspension.conf
  4. Paste the following configuration block into the file:
    monitor.alsa.rules = [
      {
        matches = [
          {
            node.name = "~alsa_input.*"
          },
          {
            node.name = "~alsa_output.*"
          }
        ]
        actions = {
          update-props = {
            session.suspend-timeout-seconds = 0
          }
        }
      }
    ]
  5. Save the file by pressing Ctrl + O, press Enter, and exit nano with Ctrl + X.
  6. Setting the timeout to 0 disables idle suspension completely, eliminating power-cycle pops.

Increase PipeWire Buffer Quantum Size

If crackling and popping occur during active playback (especially under high CPU load or when watching video in web browsers), the default audio buffer quantum (1024 samples) is too small, causing buffer underruns (xruns).

  • Create a PipeWire configuration directory:
    mkdir -p ~/.config/pipewire/pipewire.conf.d/
  • Create a buffer size override file:
    nano ~/.config/pipewire/pipewire.conf.d/10-rates.conf
  • Paste the following parameters to lock the buffer size to 2048 samples and standardize the clock rate:
    context.properties = {
        default.clock.rate = 48000
        default.clock.allowed-rates = [ 44100, 48000, 96000 ]
        default.clock.quantum = 2048
        default.clock.min-quantum = 1024
        default.clock.max-quantum = 4096
    }
  • Save and exit nano (Ctrl + O, Enter, Ctrl + X).

Disable ALSA Kernel Module Power-Saving States

In addition to PipeWire, the low-level Linux ALSA kernel sound driver applies independent power-saving to Intel High Definition Audio (snd_hda_intel) and Realtek chips.

  1. Open the ALSA modprobe configuration in a root text editor:
    sudo nano /etc/modprobe.d/audio-powersave.conf
  2. Add the following lines:
    options snd_hda_intel power_save=0
    options snd_hda_intel power_save_controller=N
  3. Save the file and exit the editor.
  4. This prevents the physical audio chipset from powering down its digital-to-analogue converter (DAC).

Restart PipeWire and WirePlumber Services

Unlike classic system daemons, PipeWire and WirePlumber run entirely within your active user session. You do not need to reboot your entire operating system to apply audio configuration updates.

  • Restart the user-space audio daemons simultaneously:
    systemctl --user restart pipewire pipewire-pulse wireplumber
  • Verify that all three services are actively running without syntax errors:
    systemctl --user status pipewire pipewire-pulse wireplumber

Monitor Real-Time Audio Performance with pw-top

To verify that buffer underruns have ceased, inspect live streaming metrics directly.

  1. In Terminal, launch the PipeWire process viewer:
    pw-top
  2. Play audio through Spotify, YouTube, or your media player.
  3. Inspect the column labelled ERR (Errors).
  4. With the new buffer quantum and disabled power-saving, the error count will remain at zero, confirming clean, distortion-free sound reproduction.
  5. Press Q to exit pw-top.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.