[pulseaudio-discuss] Choose remote default sink from command line?

Colin Guthrie gmane at colin.guthr.ie
Sun Nov 7 10:56:26 PST 2010

'Twas brillig, and Dave at 07/11/10 14:48 did gyre and gimble:
> I use the Pulseaudio Device Chooser to set the default sink (on a
> laptop) to a remote server. This works fine. When i reboot my laptop,
> the default sink reverts back to "default" (the laptop sound card).
> Is there a way to get the laptop to continue to use the remote server
> after a reboot? Is there a command that I can run in a script on
> startup to change the default sink back to the remote server?
> I am running Ubuntu 9.04 on this machine.

padevchooser doesn't work in the nicest way possible. We've been openly
telling people it's deprecated for some years now!

Anyway, you can do something like: "export PULSE_SERVER=remotemachine"
in your .bashrc file.

This will bypass your local PA completely on any ever use a remote server.

That said, as you are using a laptop this is not likely the best
approach. Better to use tunnels (with avahi for auto detection) as when
you resume your laptop from suspend when away from your "home network"
then you'll still have working sound. Basically just tick all the
relevant boxes in paprefs and things work by themselves. Make sure you
set up both sides tho'.



Colin Guthrie

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