## Overview

Sometimes you might hear a pop/click from the speakers, usually when audio starts/stops, or around suspend/shutdown.

We have upstreamed a runtime adjustment to improve this, but while that change trickles down to different distributions, you can use the workaround below.

## What you will do

You will:

- Create a small configuration file for the audio driver.
- Rebuild the initramfs (on some distributions).
- Reboot.

## Step 1: Open a Terminal

Open the Terminal app.

Common shortcuts:

- On many distributions: press `Ctrl` + `Alt` + `T`
- Or open your app launcher and search for `Terminal`

## Step 2: Create the config file

Copy and paste this command into the Terminal, then press `Enter`:

```bash
sudo tee /etc/modprobe.d/sls-eapd.conf >/dev/null <<'EOF'
options snd_hda_intel power_save=0
EOF
```

Notes:

- You may be prompted for your password. When typing your password, you will not see any characters appear. This is normal.
- This change can slightly increase idle power usage (battery life).

## Step 3: Rebuild initramfs (pick your distribution)

Some distributions bundle driver options into an initramfs (an early-boot image). Rebuilding it ensures the change is picked up.

Run the command that matches your distribution:

### Ubuntu / Debian (and derivatives)

```bash
sudo update-initramfs -u
```

### Fedora (and derivatives)

```bash
sudo dracut -f
```

### Arch / Manjaro

```bash
sudo mkinitcpio -P
```

## Step 4: Reboot

Reboot your system. The change takes effect after reboot.

```bash
sudo reboot
```

## Verify (optional)

After reboot, you can check the setting with:

```bash
cat /sys/module/snd_hda_intel/parameters/power_save
```

It should output `0`.

## Undo (revert the change)

1. Remove the config file:

```bash
sudo rm -f /etc/modprobe.d/sls-eapd.conf
```

2. Rebuild initramfs again (same command as in Step 3 for your distribution).
3. Reboot.
