From af17f103153b20c483c1b749b9f10744d8cc629d Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 15 Dec 2024 21:14:57 -0500 Subject: [PATCH] try to fix bluetooth --- hosts/ytnix/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/hosts/ytnix/default.nix b/hosts/ytnix/default.nix index f9a5df6..b714bd6 100644 --- a/hosts/ytnix/default.nix +++ b/hosts/ytnix/default.nix @@ -77,6 +77,21 @@ "bluez5.roles" = ["a2dp_sink" "a2dp_source"]; }; }; + # https://wiki.archlinux.org/title/Bluetooth_headset#Connecting_works,_sound_plays_fine_until_headphones_become_idle,_then_stutters + wireplumber.extraConfig.disableSuspend = { + "monitor.bluez.rules" = { + matches = [ + { + "node.name" = "bluez_output.*"; + } + ]; + }; + actions = { + update-props = { + "session.suspend-timeout-seconds" = 0; + }; + }; + }; }; services.libinput.enable = true;