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.
Looks like there is a problem creating the tunnel with the version of pulse used in the ubuntu 9.04 distribution. If I do the following on ubuntu 10.04 it works:
pactl load-module module-tunnel-sink "server=192.168.1.64 sink=alsa_output.pci_8086_293e_sound_card_0_alsa_playback_0
sink_name=sink-DGTM"
pacmd set-default-sink sink-DGTM
Unfortunately this does not work on ubuntu 9.04. The syslog shows:
Nov 13 14:45:33 ubuntu-JMRT pulseaudio[3473]: module-tunnel.c: Stream died.
So I am going to assume that there is a bug in this version of pulse.
Although it does work with padevchooser, I can not get it to work
from the command line. I also tried adding the following
to /etc/pulse/default.pa and got the same results:
load-module module-tunnel-sink server=192.168.1.64
sink=alsa_output.pci_8086_293e_sound_card_0_alsa_playback_0 sink_name=sink-DGTM
set-default-sink sink-DGTM
syslog:
Nov 13 14:45:33 ubuntu-JMRT pulseaudio[3473]: module-tunnel.c: Stream died.
So I am back to trying to figure out where to export PULSE_SERVER so that apps launched from gnome see it when I reboot.
I tried adding:
export PULSE_SERVER=tcp:192.168.1.64:4713
to: ~/.bashrc
This works if I launch apps from the console but does not work if I launch apps from gnome.
I also tried adding this export to:
~/.pulse/client.conf
/etc/pulse/client.conf
/usr/bin/start-pulseaudio-x11
but none of the above worked.