From 63531c4bc68520da1bb89eb5f91e87ec03d2e8cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Tue, 2 Jul 2024 18:34:22 +0200 Subject: [PATCH] audio: Attempt at keeping speakers on --- os/desktop/default.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/os/desktop/default.nix b/os/desktop/default.nix index fe79de6..469f1c9 100644 --- a/os/desktop/default.nix +++ b/os/desktop/default.nix @@ -7,7 +7,6 @@ blueman.enable = true; displayManager.defaultSession = "none+i3"; udev.packages = with pkgs; [ ddcutil ]; # TODO Doesn't seem to help - # Audio pipewire = { enable = true; alsa = { @@ -15,6 +14,20 @@ support32Bit = true; }; pulse.enable = true; # Required for a lot of apps, probably + wireplumber.extraConfig = { + # Using mains-powered speakers + # https://wiki.archlinux.org/title/PipeWire#Noticeable_audio_delay_or_audible_pop/crack_when_starting_playback + preventGetTogetherDuoFromShuttingDown."monitor.bluez.rules" = [ + { + matches = [{ "node.name" = "~bluez_output.41_42_D2_B5_13_72.*"; }]; + actions.update-props = { + "session.suspend-timeout-seconds" = 0; + "dither.method" = "wannamaker3"; + "dither.noise" = 2; + }; + } + ]; + }; }; # Video xserver = {