Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

From the command line I can easily create another pulseaudio sink and switch to that but I have not found a way how to do this using a GUI from the XFCE desktop.

In GNOME I use gnome-volume-control from audio settings to switch to another audio output sink.

Is there anything similar in XFCE?

share|improve this question
1  
are you using pulseaudio? - is pavucontrol the sort of thing you are looking for? –  fossfreedom Feb 24 '12 at 13:17
    
Pavucontrol would do it but it installs such a lot of dependencies. I was wondering if there was something more XFCE inherent (or lean). –  Takkat Feb 24 '12 at 13:38
    
... ummm... but I thought xfce4-mixer also had a similar capability - but I'm depending on my ageing memory ... :) –  fossfreedom Feb 24 '12 at 14:27
    
It looks like it has but it does not show my bluetooth headset or my newly created pulseaudio sink. Feels like it's oriented more to ALSA than to pulseaudio. I may well only just don't know how to operate it (memory mumified by age). –  Takkat Feb 24 '12 at 14:37

3 Answers 3

up vote 8 down vote accepted

Seems like there is not other way than to install pavucontrol Install pavucontrol to get this task working. We can choose our output device by choosing the default output device in the Output Device tab:

enter image description here

A currently playing stream of a given application can also be moved to another device in the Playback tab from the dropdown menu next to Playback Stream on:

enter image description here

share|improve this answer

The pavucontrol answer is correct. However I encountered difficulties to use is out of the box. I had to type the following before using pavucontrol to use my bt headphone:

pactl load-module module-alsa-sink device=btheadset

You can control if this was successful by typing:

pactl list short sinks

Output should look similar to:

0 alsa_output.pci-0000_03_04.0.iec958-stereo module-alsa-card.c s16le 2ch 44100Hz SUSPENDED

2 alsa_output.btheadset module-alsa-sink.c s16le 2ch 44100Hz IDLE

I also have a short script to move sound from alsa/pulseaudio to bt that I called 'toBt.sh':

#!/bin/bash

OCHANNEL=`pactl list modules short | grep btheadset | cut -f 1`
for i in $OCHANNEL; do
        echo "altes module $i"
        pactl unload-module $i
done
CHANNEL=`pactl load-module module-alsa-sink device=btheadset`
echo "neues module $CHANNEL"
if [ $? -ne 0 ]; then
        echo "No bt connection"
        exit -1
fi
SINK=`pactl list sinks short | grep btheadset | cut -f 1`
INPUTS=`pactl list sink-inputs short | cut -f 1`
for i in $INPUTS; do
        echo "Verschiebe in $i nach $SINK"
        pactl move-sink-input $i $SINK
done

To return to alsa/pulseaudio sound I've got 'toAlsa.sh':

#!/bin/bash

SINK=`pactl list sinks short | grep alsa-card | cut -f 1`
INPUTS=`pactl list sink-inputs short | cut -f 1`
for i in $INPUTS; do
        echo "Verschiebe in $i nach $SINK"
        pactl move-sink-input $i $SINK
done
share|improve this answer
    
Thank you for sharing your script. For connecting a Bluetooth headset you may want to install pulseaudio-module-bluetooth package. Automatic connection can be achieved with pactl load-module module-switch-on-connect. You may also be interested in bt-autoconnect for connecting while a stream is playing. –  Takkat Aug 27 '12 at 19:50

I am on Xubuntu and i also faced this problem. I installed pulseaudio's manager and it works fine!

HTH

share|improve this answer
1  
"The two utilities PulseAudio Manager and PulseAudio Device Chooser are obsolete and should not be used" (from PulseAudio Wiki) –  Takkat Feb 29 '12 at 10:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.