diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-22 14:43:12 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-22 14:43:12 +0100 |
commit | 73c346f13c0d1bfcb1ae82b7a498d657fe80d606 (patch) | |
tree | b64a4efb0575b9bc4bc214e9ad7e2f55aaaa980e | |
parent | 6ceb650cea986d94d7e81c5f685ca0ed46f87bb1 (diff) |
fix pipewire suspend config
-rw-r--r-- | .config/pipewire/pipewire.conf.d/50-bitrate.conf | 6 | ||||
-rw-r--r-- | .config/wireplumber/wireplumber.conf.d/50-disable-suspend.conf | 28 | ||||
-rwxr-xr-x | .local/share/bin/nodisconnect | 17 |
3 files changed, 34 insertions, 17 deletions
diff --git a/.config/pipewire/pipewire.conf.d/50-bitrate.conf b/.config/pipewire/pipewire.conf.d/50-bitrate.conf new file mode 100644 index 0000000..f7c4a93 --- /dev/null +++ b/.config/pipewire/pipewire.conf.d/50-bitrate.conf @@ -0,0 +1,6 @@ +context.properties = { + default.clock.rate = 44100 + default.clock.allowed-rates = [ 44100, 48000, 96000 ] + default.clock.min-quantum = 16 +} + diff --git a/.config/wireplumber/wireplumber.conf.d/50-disable-suspend.conf b/.config/wireplumber/wireplumber.conf.d/50-disable-suspend.conf new file mode 100644 index 0000000..d4eebbf --- /dev/null +++ b/.config/wireplumber/wireplumber.conf.d/50-disable-suspend.conf @@ -0,0 +1,28 @@ +monitor.alsa.rules = [ + { + matches = [ + { node.name = "~alsa_input.*" } + { node.name = "~alsa_output.*" } + ] + actions = { + update-props = { + session.suspend-timeout-seconds = 0 + } + } + } +] + +monitor.bluez.rules = [ + { + matches = [ + { node.name = "~bluez_input.*" } + { node.name = "~bluez_output.*" } + ] + actions = { + update-props = { + session.suspend-timeout-seconds = 0 + } + } + } +] + diff --git a/.local/share/bin/nodisconnect b/.local/share/bin/nodisconnect deleted file mode 100755 index a5819d1..0000000 --- a/.local/share/bin/nodisconnect +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh -# use sox to play very quiet noise for keeping bluetooth headphones connected - -# kill any previously running processes -killall -qu "$LOGNAME" play - -# arguments used: -# -q quiet mode (don't output progress bar) -# -n null input filename (because synth is used as input) -# -r 44100 sample rate (44.1 KHz) -# -b 32 -e signed signed 32-bit -# -c 2 create two channels (ouput stereo) -# synth whitenoise start with white noise -# band -n 650 1300 bandpass filter between 650-1300 Hz -# vol 0.01 very quiet -fork play -q -n -r 44100 -b 32 -e signed -c 2 synth whitenoise band -n 650 1300 vol 0.01 - |