[pulseaudio-discuss] Odd behaviour on killing and starting PA

Colin Guthrie gmane at colin.guthr.ie
Sat Nov 3 09:01:28 PDT 2012


'Twas brillig, and Richard Bown at 08/10/12 14:02 did gyre and gimble:
> Hi ,
> Anyone got a hunce as to why this happens ?
> 
> If I log into the machine remotely with ssh as user "richard" I can kill pa
> with pulseaudio --kill
> and restart with pulseaudio --start
> 
> AND it restarts loading all the modules for all of the ALSA devices..
> 
> BUT If I'm logged in directly to the same machine as the same user
> it does not reload all the modules, it restarts in exactly the same state as
> killed.
> Ideally I want to reload all alsa modules the same as running remotely.

That sounds very odd. I can't think of a reason why this would happen.

When logging in remotely do you log in from another machine running PA
with X11 forwarding? If so, then this might have some bearing as the
pulseaudio client library will initially look at the X11 root window
properties to find PA.

Even still this shouldn't have much bearing on the issue.

Are you sure PA is even being killed. If you load e.g. a null sink, does
it still exist?

> I'm running a script to start an application that uses Jack, by getting the
> Alsa card number finding the PA module for that card and unloading it.
> It would be nice to restore PA to the state before I unload the module
> afterwards.
> 
> however, it maybe be a superfluous problem as for some reason I cant find , I
> can route audio to PA module-jack-source but the app using pulse is not getting
> the incoming audio.
> Yet with the card selected in paprefs and the module loaded for the card in
> use, without jack running it works OK.
> 
> Are there are parameters that need to be passed to the jack-source module for
> gain or anything similar ?


In theory David's work on jackdbus-detect should magically do everything
you need but I'm sure there are a few remaining issues on this fron. I'm
afraid I don't know enough about jack to really advise in this area :(

Col


-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/


More information about the pulseaudio-discuss mailing list