[pulseaudio-discuss] Choose remote default sink fromcommandline?
Dave
DaveM at Mich.Com
Tue Nov 9 07:42:01 PST 2010
At 05:31 AM 11/9/2010, you wrote:
> > I tried adding each of the following (one at a time of course) to
> > ~/.bashrc and none of these variations worked:
> >
> > export PULSE_SERVER=192.168.1.64
>
>This is the only form you need. I presume you logged out and back in
>again after setting this env var?
>
>Try this on the command line and post the results:
>
>export PULSE_SERVER=192.168.1.64
>export PULSE_LOG=99
>paplay -vvv /usr/share/sounds/startup3.wav
jmrt at ubuntu-JMRT:~$ export PULSE_SERVER=192.168.64
jmrt at ubuntu-JMRT:~$ export PULSE_LOG=99
jmrt at ubuntu-JMRT:~$ paplay /usr/share/sounds/purple/logout.wav
D: memblock.c: Using shared memory pool with 1024 slots of size 64.0
KiB each, total size is 64.0 MiB, maximum usable slot size is 65472
D: context.c: Trying to connect to 192.168.64...
Connection failure: Connection refused
jmrt at ubuntu-JMRT:~$
- No sound was played
- Rebooted
- Used padevchooser to change default sink to remote server
jmrt at ubuntu-JMRT:~$ export PULSE_LOG=99
jmrt at ubuntu-JMRT:~$ paplay /usr/share/sounds/purple/logout.wav
D: memblock.c: Using shared memory pool with 1024 slots of size 64.0
KiB each, total size is 64.0 MiB, maximum usable slot size is 65472
D: context.c: Trying to connect to tcp:192.168.1.64:4713...
D: context.c: SHM possible: no
D: context.c: Protocol version: remote 14, local 14
D: context.c: Negotiated SHM: no
jmrt at ubuntu-JMRT:~$
- Sound was played through remote sound card
- Rebooted
jmrt at ubuntu-JMRT:~$ export PULSE_SERVER=tcp:192.168.1.64:4713
jmrt at ubuntu-JMRT:~$ export PULSE_LOG=99
jmrt at ubuntu-JMRT:~$ paplay /usr/share/sounds/purple/logout.wav
D: memblock.c: Using shared memory pool with 1024 slots of size 64.0
KiB each, total size is 64.0 MiB, maximum usable slot size is 65472
D: context.c: Trying to connect to tcp:192.168.1.64:4713...
D: context.c: SHM possible: no
D: context.c: Protocol version: remote 14, local 14
D: context.c: Negotiated SHM: no
jmrt at ubuntu-JMRT:~$
- Sound was played through remote sound card (looks like we need the
tcp: and the port number)
- Rebooted
jmrt at ubuntu-JMRT:~$ export PULSE_SERVER=tcp:ubuntu-DGTM.gateway.2wire.net:4713
jmrt at ubuntu-JMRT:~$ export PULSE_LOG=99
jmrt at ubuntu-JMRT:~$ paplay /usr/share/sounds/purple/logout.wav
D: memblock.c: Using shared memory pool with 1024 slots of size 64.0
KiB each, total size is 64.0 MiB, maximum usable slot size is 65472
D: context.c: Trying to connect to tcp:ubuntu-DGTM.gateway.2wire.net:4713...
D: context.c: SHM possible: no
D: context.c: Protocol version: remote 14, local 14
D: context.c: Negotiated SHM: no
jmrt at ubuntu-JMRT:~$
- Sound was played through remote sound card (DNS works OK too)
- Once a sound is played through the remote server, I can change the
export back to the one that did not work and it continues to work.
jmrt at ubuntu-JMRT:~$ export PULSE_SERVER=192.168.1.64
jmrt at ubuntu-JMRT:~$ paplay /usr/share/sounds/purple/logout.wav
D: memblock.c: Using shared memory pool with 1024 slots of size 64.0
KiB each, total size is 64.0 MiB, maximum usable slot size is 65472
D: context.c: Trying to connect to 192.168.1.64...
D: context.c: SHM possible: no
D: context.c: Protocol version: remote 14, local 14
D: context.c: Negotiated SHM: no
jmrt at ubuntu-JMRT:~$
- Sound was played through remote sound card (not sure why this happens)
- But if I play a file using totem launched from gnome it still plays
through the local speakers.
- If I play a file using totem launched from the command line it
plays them through the remote sound card
jmrt at ubuntu-JMRT:~$ export PULSE_SERVER=tcp:ubuntu-DGTM.gateway.2wire.net:4713
jmrt at ubuntu-JMRT:~$ export PULSE_LOG=99
jmrt at ubuntu-JMRT:~$ totem
D: memblock.c: Using shared memory pool with 1024 slots of size 64.0
KiB each, total size is 64.0 MiB, maximum usable slot size is 65472
D: context.c: Trying to connect to tcp:ubuntu-DGTM.gateway.2wire.net:4713...
D: context.c: SHM possible: no
D: context.c: Protocol version: remote 14, local 14
D: context.c: Negotiated SHM: no
/var/lib/python-support/python2.6/gdata/tlslite/utils/cryptomath.py:9:
DeprecationWarning: the sha module is deprecated; use the hashlib
module instead
import sha
D: memblock.c: Using shared memory pool with 1024 slots of size 64.0
KiB each, total size is 64.0 MiB, maximum usable slot size is 65472
D: context.c: Trying to connect to tcp:ubuntu-DGTM.gateway.2wire.net:4713...
D: context.c: SHM possible: no
D: context.c: Protocol version: remote 14, local 14
D: context.c: Negotiated SHM: no
jmrt at ubuntu-JMRT:~$
- Sound was played through remote sound card
- It looks like the problem is with getting the export in the right
place before pulse starts up after login?
- I put "export PULSE_SERVER=tcp:ubuntu-DGTM.gateway.2wire.net:4713"
back into my ~/.bashrc file
- I Rebooted
- I tried running totem from the command line
jmrt at ubuntu-JMRT:~$ totem
/var/lib/python-support/python2.6/gdata/tlslite/utils/cryptomath.py:9:
DeprecationWarning: the sha module is deprecated; use the hashlib
module instead
import sha
jmrt at ubuntu-JMRT:~$
- Sound was played through remote sound card
- I tried running totem from the desktop and the sound came out of
the local speakers.
So it sounds like I need to know where to put the export so that
applications launched from the desktop will use the remote server.
Dave
More information about the pulseaudio-discuss
mailing list