Skip to main content

Linux Sound Card Audio Popping

Disable Power Saving
#

To disable sound card power management in Linux, you can run the command

echo 0 | sudo tee /sys/module/snd_hda_intel/parameters/power_save

to temporarily turn it off. For a permanent change, add

options snd-hda-intel power_save=0

to a configuration file like /etc/modprobe.d/hda.conf.

Also keep volume at max 97% for best quality

Disable node suspension
#

nano ~/.config/wireplumber/wireplumber.conf.d/disable-suspension.conf
monitor.alsa.rules = [
  {
    matches = [
      {
        # Matches all sources
        node.name = "~alsa_input.*"
      },
      {
        # Matches all sinks
        node.name = "~alsa_output.*"
      }
    ]
    actions = {
      update-props = {
        session.suspend-timeout-seconds = 0
      }
    }
  }
]
# bluetooth devices
monitor.bluez.rules = [
  {
    matches = [
      {
        # Matches all sources
        node.name = "~bluez_input.*"
      },
      {
        # Matches all sinks
        node.name = "~bluez_output.*"
      }
    ]
    actions = {
      update-props = {
        session.suspend-timeout-seconds = 0
      }
    }
  }
]

Restart systemctl --user restart pipewire.service and systemctl --user restart wireplumber.service to apply changes.

Notes
#

None for now.