From 80554e5acffbd2d36f46f4b21d3ccfd319968f41 Mon Sep 17 00:00:00 2001 From: Andreas Lutro Date: Wed, 19 Jun 2024 13:07:33 +0200 Subject: [PATCH] convert configs --- configs/wireplumber/main.lua.d/99-user.lua | 21 ------------------- .../51-disable-suspension.conf | 19 +++++++++++++++++ 2 files changed, 19 insertions(+), 21 deletions(-) delete mode 100644 configs/wireplumber/main.lua.d/99-user.lua create mode 100644 configs/wireplumber/wireplumber.conf.d/51-disable-suspension.conf diff --git a/configs/wireplumber/main.lua.d/99-user.lua b/configs/wireplumber/main.lua.d/99-user.lua deleted file mode 100644 index 3bff08c..0000000 --- a/configs/wireplumber/main.lua.d/99-user.lua +++ /dev/null @@ -1,21 +0,0 @@ -table.insert (alsa_monitor.rules, { - matches = { - { - -- Matches all sources. - { "node.name", "matches", "alsa_input.*" }, - }, - { - -- Matches all sinks. - { "node.name", "matches", "alsa_output.*" }, - }, - }, - apply_properties = { - ["node.pause-on-idle"] = false, - ["session.suspend-timeout-seconds"] = 0, -- 0 disables suspend - --["audio.rate"] = 48000, - --["audio.allowed-rates"] = "44100,48000", - --["api.alsa.headroom"] = 1024, - --["api.alsa.period-num"] = 1, - --["api.alsa.period-size"] = 2048, - }, -}) diff --git a/configs/wireplumber/wireplumber.conf.d/51-disable-suspension.conf b/configs/wireplumber/wireplumber.conf.d/51-disable-suspension.conf new file mode 100644 index 0000000..0984b18 --- /dev/null +++ b/configs/wireplumber/wireplumber.conf.d/51-disable-suspension.conf @@ -0,0 +1,19 @@ +monitor.alsa.rules = [ + { + matches = [ + { + # Matches all sinks + node.name = "~alsa_output.*" + } + ] + actions = { + update-props = { + session.suspend-timeout-seconds = 0, + node.pause-on-idle = false, + "api.alsa.headroom" = 1024, + "api.alsa.period-num" = 1, + "api.alsa.period-size" = 2048, + } + } + } +]