Headphone volume resets itself to 100%

Hi all!

On 20.09, my headphone volume would be remembered indefinitely.

In 21.05, whenever I plug my headphones in the volume becomes 100%.

I have nothing in ~/.config/pulse, and the relevant (I think) part of my configuration.nix is:

    hardware = {
      pulseaudio = {
        enable = true;
        package = pkgs.pulseaudioFull;
        daemon.config = { avoid-resampling = "yes"; };
      }; 
    };

Advice welcome. Thank you!

Not really an answer to your question, but I recommend using Pipewire with Pulseaudio emulation.

{
  hardware.pulseaudio.enable = false;
  security.rtkit.enable = true;
  services.pipewire = {
    enable = true;
    alsa.enable = true;
    alsa.support32Bit = true;
    pulse.enable = true;
  };
}

I do not recommend using the Jack emulation (services.pipewire.jack.enable = true) at this point because it uses LD_LIBRARY_PATH which breaks some applications (Evolution, epiphany: Webkitgtk bubblewrapper crashes when LD_LIBRARY path points into /run/current-system/** (the case on a pipewire system with jack emulation) · Issue #110468 · NixOS/nixpkgs · GitHub).

3 Likes

I’ve been meaning to switch to pipewire anyway, so thank you for showing me the right options.

The only problem with your post is that it does answer my question (it fixes my problem), and you promised it wouldn’t. Shame on you.

1 Like