OPINIONATED OMARCHY
TROUBLESHOOTING CORPUS
790
RECORDS
790
AUDITED
0
UNCHECKED
2388
SOURCES
LIVE
audio-input medium very-common DISPUTE

Stop the loud pop or crack every time audio starts or stops

omarchyarchendeavouroscachyosmanjarohyprlandwaylandpipewirelaptopdesktopintelamd
CORRECTED An auditor found the fix wrong or incomplete and rewrote it.
AUDIT NOTE

The WirePlumber suspend-timeout config is verbatim-correct against Arch PipeWire/Troubleshooting lines 695-750, and the modprobe option string matches the ALSA/Troubleshooting page exactly. Two defects: (1) sudo mkinitcpio -P does nothing here, because snd_hda_intel is not in the initramfs, and the record gives no step that actually applies the module option, so the user reboots-less and concludes it failed. (2) The dither block is a mid-file fragment (trailing commas, no enclosing structure) presented as if it were a standalone conf file. Pasted as-is it is a parse error.

The cause above was not rewritten and may still contain the error described. The fix below is the corrected version.
RISK

Disabling snd_hda_intel power saving measurably shortens laptop battery life. mkinitcpio -P rebuilds every preset. If it errors out, do not reboot until it succeeds.

Symptom

A loud click, pop or crack out of the speakers/headphones every time a sound starts or stops: notification sounds, a YouTube video starting, or the first half-second of audio being clipped off. Often described as "the first word of every notification is cut off".

Cause

WirePlumber suspends idle nodes to save power (session.suspend-timeout-seconds, default 5s). Resuming the ALSA device re-powers the codec and produces the pop, and the ramp-up eats the start of the stream. Separately, snd_hda_intel runtime power saving powers the whole controller down.

Fix

Keep the disable-suspension.conf as written, then restart:


systemctl --user restart pipewire.service wireplumber.service

If it still pops, the HDA controller is power-gating:


# /etc/modprobe.d/audio_disable_powersave.conf
options snd_hda_intel power_save=0 power_save_controller=N

Do NOT run mkinitcpio -P for this. snd_hda_intel is not in the initramfs and regenerating it changes nothing. Apply the option by reloading the module (stop the audio stack first or it will be busy) or simply reboot:


systemctl --user stop pipewire.socket pipewire-pulse.socket pipewire.service pipewire-pulse.service wireplumber.service
sudo modprobe -r snd_hda_intel && sudo modprobe snd_hda_intel
systemctl --user start pipewire.service wireplumber.service pipewire-pulse.service

Verify it took:


cat /sys/module/snd_hda_intel/parameters/power_save   # must print 0

For the dither workaround, the three lines are NOT a separate file. They go inside the existing update-props = { ... } block of disable-suspension.conf, alongside session.suspend-timeout-seconds:


      update-props = {
        session.suspend-timeout-seconds = 0
        dither.method = "wannamaker3"
        dither.noise = 2
      }

Verify

Play a short sound twice in a row with a 30s gap. There is no click on either. wpctl status shows the sink staying in a non-suspended state. Battery drain increases slightly, which is expected.

Sources

audio-pop-crack-when-playback-starts