The output of my inxi -Aa is as follows at the bottom. Recently I had an issue where my speakers connected via optical cable turn themselves off, seemingly because of something with pipewire. I think it’s something to do with something timing out.
My speakers are device 2, my headphones (Device-5) are my primary audio output. It’s becoming a real pain to have to turn the speakers back on, then go into audio settings and press the test button to get the system to provide output again. I’d really appreciate any help, and will provide any further information upon request!
Oh yeah. Forgot to tell you when you reboot the setting might be lost so you need to do it again. I checking out why, perhaps every time Manjaro updates.
The setting works great in Gnome. In KDE the audio mutes and cracks like its trying to fight between headphones out and line out. Keeping it bellow 100% volume seemed to help me to keep it that way. It usually changes when you go from having nothing playing audio to launching a video. That surge/spike in volume caused the mute/cracking to me in KDE.
Keep in mind, that the commands that I suggests to you pw-metadata -n settings 0 node.pause-on-idle = false pw-metadata -n settings 0 node.suspend-on-idle false
Are not permanent; you have to edit/create the config file: /etc/wireplumber/wireplumber.conf
And add the following content on the bottom of the file:
monitor.alsa.rules = [
{
matches = [
# This matches the value of the 'node.name' property of the node.
{
node.name = "~alsa_output.*"
}
]
actions = {
# Apply all the desired node specific settings here.
update-props = {
session.suspend-timeout-seconds = 0
session.idle-timeout-seconds = 0
node.pause-on-idle = false
node.suspend-on-idle = false
}
}
}
]