I'm using Pipewire in Arch Linux there seems to be an annoying problem with loud popping whenever the sound card is activated and deactivated. Is there a value that can be set to extend the suspend time to like 24 hours or something. Which file would I access to apply this?
1 Answer
After researching various posts online, I came across a suggestion that the file should be edited.
As of the time of writing this, the stock value for the local timeout was set to 5 seconds, which is quite low. Whenever a sound is created, the sound card is activated with a loud pop and deactivated with the same.
My solution wasn’t very elegant and may look intimidating to "normal" users.
I changed the line in this file:
/usr/share/wireplumber/scripts/node/suspend-node.lua
From:
tonumber(node.properties["session.suspend-timeout-seconds"]) or 5
To:
tonumber(node.properties["session.suspend-timeout-seconds"]) or 18000
I then reloaded the service:
systemctl --user restart pipewire wireplumber
The problem then went away (at least for me).