audio: Attempt at keeping speakers on

This commit is contained in:
Geoffrey Frogeye 2024-07-02 18:34:22 +02:00
parent 77ec4574f1
commit 63531c4bc6
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8

View file

@ -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 = {