User:SigHunter/PipeWire
From Gentoo Wiki
Jump to:navigation
Jump to:search
Disabling or delaying audio sink suspension
By default, audio devices go into standby after 5 seconds of no audio. This can be annoying, because some devices take a few seconds to start up again.
session.suspend-timeout-seconds = 0
disables this completely, the default value is 5 seconds, adjust depeding on your needs.
To make it simple, this config applies to all sources and audio sinks. >=media-video/wireplumber-0.5 is necessary to use this json style wireplumber config
monitor.alsa.rules = [
{
matches = [
{
# Matches all sources
node.name = "~alsa_input.*"
},
{
# Matches all sinks
node.name = "~alsa_output.*"
}
]
actions = {
update-props = {
session.suspend-timeout-seconds = 0
}
}
}
]
# bluetooth devices
monitor.bluez.rules = [
{
matches = [
{
# Matches all sources
node.name = "~bluez_input.*"
},
{
# Matches all sinks
node.name = "~bluez_output.*"
}
]
actions = {
update-props = {
session.suspend-timeout-seconds = 0
}
}
}
]
With systemd
restart pipewire.service
and pipewire-pulse.service
afterwards or alternatively reboot.
user $
systemctl restart --user pipewire.service pipewire-pulse.service