Pulseaudio bridge is gone after sleep, KXStudio 14.04
Posted: Sun Sep 28, 2014 1:58 am
Hello, LinuxMusicians and KXStudio users!
I was giving a try to ALSA->PulseAudio->Jack (Plugin) bridge in Cadence. The bridge works nice and seamless, however, sometimes after suspend (usually a long one, like overnight) the bridge is gone and Cadence says:
Pulseaudio is started, but not bridged.
I cannot restore the bridge from Cadence, unless I kill Pulseaudio and then hit 'Start' for Pulseaudio bridge.
I also tried to restore the bridge manually by running the following script:
/usr/bin/cadence-pulse2jack
The script did not restore the bridge and gave the following messages:
Failure: Module initialization failed
Daemon not responding.
I looked at the bash code of cadence-pulse2jack script, looks like the issue is in the initialization command for Pulseaudio (see bottom of the script):
I changed the command to (removed --disallow-module-loading):
and the Pulseaudio bridge is now restored after pressing the corresponding Start button in Cadence. However, the bridge still disappears after a long suspend. I guess I could just set the cadence-pulse2jack script run every time after suspend, but I was wondering if there is a neater solution... Could you please also provide some insight into how exactly the Pulseaudio bridge is made in KXStudio and how it is handled before/after suspend?
Thanks in advance!
I was giving a try to ALSA->PulseAudio->Jack (Plugin) bridge in Cadence. The bridge works nice and seamless, however, sometimes after suspend (usually a long one, like overnight) the bridge is gone and Cadence says:
Pulseaudio is started, but not bridged.
I cannot restore the bridge from Cadence, unless I kill Pulseaudio and then hit 'Start' for Pulseaudio bridge.
I also tried to restore the bridge manually by running the following script:
/usr/bin/cadence-pulse2jack
The script did not restore the bridge and gave the following messages:
Failure: Module initialization failed
Daemon not responding.
I looked at the bash code of cadence-pulse2jack script, looks like the issue is in the initialization command for Pulseaudio (see bottom of the script):
Code: Select all
pulseaudio --daemonize --high-priority --realtime --disallow-module-loading --exit-idle-time=-1 --file=$FILE -nCode: Select all
pulseaudio --daemonize --high-priority --realtime --exit-idle-time=-1 --file=$FILE -nThanks in advance!