On Mon, 14 Apr 2014, Max wrote:
I'm running PulseAudio on top of Jack and
I'm satisfied with the
experience
http://trac.jackaudio.org/wiki/WalkThrough/User/PulseOnJack
One exception is that i need to restart PulseAudio (pulseaudio -k)
and the application using it (for ex. Chromium or Firefox) after
every suspend. Is there a way to solve this little annoyance?
First thing is to make sure you have a current PA as there has been
a lot of work on it in the past few years. Things that didn't work
or not right in 2012 have been fixed and work now. [edit, this does
not seem to be fixed lp:#1232295 is not closed] I don't personally
know about suspend because I don't happen to need/use it. Once PA
gets restarted though, I don't think there is much you can do about
chromium/firefox although just reloading the page should bring it
back because the pulse port is not opened by gstream until/unless
the web page needs it. It should be the same with many other
desktop apps (which is why PA-jack is so useful). Many of them shut
the port just with a pause and certainly with a stop/play (but that
would loose the place you were if part way through a movie). This
page:
https://wiki.archlinux.org/index.php/PulseAudio#No_sound_after_resume_from_…
Suggests that pulseaudio -k is not the best thing to do and that
using pasuspender will not break running applications like the
browser. The script on the same page will only work if you have
systemd running the system... so not debian or derivatives (just
yet).
It sounds like jackdbus has made it through the suspend ok anyway.
IIRC, older Firefox versions used to not let go of the audio system
(if Flash was installed) until you closed Firefox. I have a friend
who up to a few years ago had a script he ran (after closing Firefox)
to kill the remaining Flash process that it would leave behind.