[pulseaudio-discuss] pax11publish -e -S

Colin Guthrie gmane at colin.guthr.ie
Sun Oct 24 00:01:18 PDT 2010


'Twas brillig, and Tanu Kaskinen at 24/10/10 07:08 did gyre and gimble:
> On Sat, 2010-10-23 at 21:49 -0500, Matt Zagrabelny wrote:
>> Greetings,
>>
>> I am having an issue regarding pax11publish. I followed a tcp howto
>> for PA from the following site:
>> http://wiki.archlinux.org/index.php/PulseAudio
>>
>> and am looking to have my localhost be the default PA server in my
>> audio environment with the option to route audio through the speakers
>> attached a computer called, zombie, on my network.
>>
>> If I set a server up in /etc/pulse/client.conf like so:
>>
>> default-server = zombie  (zombie is the name of my system)
>>
>> and use pax11publish to toggle between the two systems, localhost and zombie:
>>
>> pax11publish -e -r  (set audio to zombie)
>> pax11publish -e -S localhost (set audio to localhost)
>>
>> Things work as expected.
>>
>> However, if I comment out the default-server line in the config file:
>>
>> ; default-server =
>>
>> and use the following pax11publish command:
>>
>> pax11publish -e -S zombie (set audio to zombie - DOESN'T WORK)
>>
>> it doesn't work to route audio to zombie.
>>
>> I have all the cookie magic and networking stuff working correctly (or
>> so it seems from my first working example, above, I gave.)
>>
>> Is pax11publish not supposed to work this way?
> 
> AFAIK pax11publish is supposed to work that way. The only user error I
> can see is "pax11publish -e -r", which doesn't make too much sense - the
> "-e" and "-r" switches are conceptually mutually exclusive, but the
> option parser implementation just overwrites the EXPORT mode with the
> REMOVE mode when "-r" is encountered after "-e", which happens to do
> what you want.
> 
> Does "xprop -root | grep PULSE_SERVER" print PULSE_SERVER(STRING) =
> "foo" after you have run "pax11publish -e -S zombie"? If not, then the
> problem is in your version of pax11publish (it works for me). If yes,
> then the problem is probably in the libpulse code that decides where to
> connect. If that's the case, what happens if you run "paplay
> some-wav-file"? Does that connect to the local server, or does it fail
> completely? Does it print error messages?

For what it's worth, when you first log into X11, PA loads the modules
module-x11-publish (via start-pulseaudio-x11), which should export the
properties you need and not require pax11publish to be run manually.

Make sure you are not using padevchooser as it's messes about with the
x11 properties and the default setup should be sufficient for your needs.

Don't forget to enable network support in paprefs tho' :)

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