[SOLVED] pulsuadio and blutooth auto switch to connected device?

Is there a way to stream audiochannels automatically to a bluetooth speaker when it is connected?
At the moment I have to change manually in pavucontrol Playback section. Otherwise sound is still played via internal speakers..
Any ideas? Thanks!
Last edited by miro279 (2015-02-03 14:03:54)

running:
plasma-framework 5.6.0-2
libbluedevil-frameworks 5.2.0-1
bluedevil-frameworks 5.2.0-1
bluez 5.27-1
bluez-libs 5.27-1
bluez-utils 5.27-1
sbc 1.3-1
pulseaudio 5.0-1
pulseaudio-alsa 2-3
The bluetooth speaker is a Denon Envaya mini, connected in A2DP mode.
The whole setup is not working realy stable at the moment, sometimes the device is connecting just fine and I see it in pulseaudio, sometimes it doesn't and bluetooth is crashing when trying to connect. Same is true for trying with bluetoothctl, so I guess it's not a plasma problem.. I also tried gut versions for most of the packages (at least for pulseaudio, libbluedevil-frameworks and bluedevil-frameworks).
Anyway. even when connecting is successfull, I still have to set the audiostream manually to the speaker with pavucontrol.
I tried to load pulsaudio module-switch-on-connect in default.pa but didn't see a difference.. I'm guessing this should only autoconnect the speaker when present, but what I'd like to do is to automaticly stream audio to the speaker when connected, not to the internal laptop speaker..
Last edited by miro279 (2015-02-03 11:18:03)

Similar Messages

  • [SOLVED]dbus and systemd: "systemctl --user" gets "Connection refused"

    Hi,
    I want to enable some systemd user service. Here is what I get
    $ LANG=C systemctl --user
    Failed to get D-Bus connection: Connection refused
    $ echo $DBUS_SESSION_BUS_ADDRESS
    unix:abstract=/tmp/dbus-RboLZS2wF3,guid=feb8bd85248906d12a826acd54e3c4ad
    I don't believe I've ever touched dbus, so I'm a bit lost. There's the following line in my ~/.xinitrc:
    exec dbus-launch xmonad
    Seems like I'm not the only one with trouble on that topic, but I could not solve my problem.
    Additional resources:
    1. relevant pstree information
    systemd-+-acpid
    |-at-spi-bus-laun-+-dbus-daemon
    | |-{dconf worker}
    | |-{gdbus}
    | `-{gmain}
    |-3*[dbus-daemon]
    |-dbus-launch
    |-login---startx---xinit-+-Xorg
    | `-xmonad-x86_64-l-+-tons
    | |-of
    | |-stuff
    |-polkitd-+-{JS GC Helper}
    | |-{JS Sour~ Thread}
    | |-{gdbus}
    | |-{gmain}
    | `-{runaway-killer-}
    |-systemd---(sd-pam)
    |-systemd-journal
    |-systemd-logind
    |-systemd-udevd
    2.
    $ pgrep -af systemd
    1 /usr/lib/systemd/systemd --system --deserialize 16
    149 /usr/lib/systemd/systemd-journald
    171 /usr/lib/systemd/systemd-udevd
    257 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
    263 /usr/lib/systemd/systemd-logind
    316 /usr/lib/systemd/systemd --user
    3.
    $ pgrep -af dbus
    257 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
    385 dbus-launch --sh-syntax --exit-with-session
    386 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
    459 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
    470 /usr/bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --print-address 3
    4. Playing with processus #1
    - Killing it doesn't change anything
    $ /usr/lib/systemd/systemd --user
    Failed to create root cgroup hierarchy: Permission denied
    Failed to allocate manager object: Permission denied
    $ sudo /usr/lib/systemd/systemd --user
    Trying to run as user instance, but $XDG_RUNTIME_DIR is not set.
    $ echo $XDG_RUNTIME_DIR
    /run/user/1000
    $ sudo -i
    # XDG_RUNTIME_DIR=/run/user/1000 /usr/lib/systemd/systemd
    Startup finished in 41ms. // keeps running
    But I still cannot do "systemctl --user"....
    Last edited by Laugarhraun (2015-02-18 17:03:57)

    Heyyy I'm dumb!
    $ alias systemctl
    alias systemctl='sudo systemctl'
    $ LANG=C /usr/bin/systemctl --user
    Failed to list units: Process org.freedesktop.systemd1 exited with status 1
    New error = progress! yay!

  • [SOLVED]eth1 and eth0 keep switching

    Ok I've got two NIC's in this computer, one refuses to get an IP address from DHCP the other work perfectly fine. However each time I start up the one that previously was eth0 is now eth1 and vise versa.
    eth0="dhcp"
    INTERFACES=(eth0)
    00:0a.0 Bridge: nVidia Corporation CK804 Ethernet Controller (rev f3) # WORKS
    05:0c.0 Ethernet controller: Marvell Technology Group Ltd. 88E8001 Gigabit Ethernet Controller (rev 13) # BORK
    [01:21 AM][desktop:~]# uname -rm
    2.6.30-ARCH x86_64
    Last edited by fumbles (2009-07-01 04:05:07)

    http://wiki.archlinux.org/index.php/Ude … _Each_Boot

  • Question about HP 2311xi - auto-switch source and delay wakeup from sleep

    I recently purchased this monitor and noticed that when it wakes from sleep it will take about 5-10 seconds for it to wake whereas other monitors I've owned they have gone on immediately.  I was just wondering if this is how this monitor is or if I have an issue with it.  
    Secondly, how is the auto-switch source suppose to work?  I have my PC set to DVI and I have the default source set to my 360 through the HDMI connection.  I would assume that when the 360 goes on it would go to the default source and switch over to the hdmi connection.  However, my monitor does nothing.  What does the auto-switch source actually do or is mine just defective?  
    Thanks in advance for any help on this monitor.  
    This question was solved.
    View Solution.

    Auto-switch source only works if there is no signal as it detects the port with a signal and auto switches to that port.  However, the monitor has no way of knowing exactly which port the user wants when two signals are present.
    Default port setting is what the monitor will look for first when being turned on and doesn't necessarily give that port override capabilities. 
    Taking 5-10 seconds can be normal.  My third-party monitor at home generally takes about 5 seconds before displaying a signal, but this may have more to do with the HDMI connection (I haven't tested this with the VGA port).  I don't believe this is a cause for concern. 
    Let me know if I answered your questions. 
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • Torch 9810 Need basics about Wifi auto-switching and tethering, please.

    Concerning my AT&T Data plan:
    1- when i'm using the device by itself, all indicators show that auto-switching is working when wifi is available. ok, bb gurus, i can't afford any surprises on my bill, so...is it really working all by itself, or am i gonna have to play the "disable this, enable that" game to make sure?
    2- when i'm tethered, i see my device is being used as a standard dial-up modem, so clearly there's no wifi to be had. but...during tethering, is there any hardware config that allows my device to become a wifi adapter instead of a modem?
    3- i think i don't have hotspot capabilities, is that correct?
    btw-i absolutely love how easy it is to check service/connection status.
    EDIT: i just noticed that when i have wifi, the ssid shows up next to the "AT&T" on the main screen, i walked back & forth across the street and watched it change...holy-moly i'm digging this phone!

    1- you said "If so, leave it on but be aware that if your phone falls back to the network connection, you won't get any kind of warning from your homescreen." 
    here's what i learned since i last posted:
    as i understand it, BB internet services is something separate from my metered AT&T data (i think bb services is how/why i'm getting my POP mail, "reconciliation" rocks the house). the service has a useful status display showing how it's connected...this auto-switches between network & wifi before my eyes as i walk in & out of range. here's the kicker...in the homescreen 'header' where my active carrier is displayed, a connected ssid is displayed along with it, ie "AT&T - Public Hotspot" which also changes on the fly. huh...yeah...and tapping said header opens up the connection manager, this is one smooth ui.
    none of that says my data-stream is also being auto-switched, but it would be a fair bet to assume if the services has a signal, the data connection would too. i'd like to dig into this a little deeper, i've seen several versions of the right answer in my research.
    2- you saying i get the updated OS?
    3- see question 2
    the rest of this you can totally ignore if you want, i've had one too many java's tonite, heh.
    i'm an old-school hardware freak...i was changing jumpers on 486 motherboards & frying them back in the day. until recently i didn't need more than a phone (that old bullet proof nokia flip) but then i went to traveling on my motorized bicycle and upgraded to messaging & data. got a pantech link, it never failed me, i really like it a lot.
    there's been times i've been out of cell range but sitting at a hotspot, wishing there was a messaging phone with wifi....like 35 miles north of haines alaska. i keep a little personal site if you're interested & if it's not against the rules:
    http://mb-rambler.mysite.com/
    so i decided to get into a smartphone, did a lot of shopping, a total newb...i started by choosing the pantech crossover, and honestly for my minimal needs it looks like a real beaut. we setup the deal and the crossover was shipped but then misrouted. i was told 2 weeks for that to be resolved, and i got mad but remained calm. bottom line is the AT&T rep went to bat for me on customer service, and eventually arranged for me to go to the nearest store and get whatever i wanted. no crossover in stock. well, in real life, there was no denying the blackberry's. it was the torch 2 or the bold, i like a real keyboard. but i'm a total bb newb too, so i closed my eyes and pointed at what i could afford.
    i'm a lucky bubba i know...because since then i've learned a lot about this version and its history, and the hardware inside is blowing my mind. sorry for rambling, it's just i'm getting into this.
    thanks for stepping in to help out. i'm sure i'll have more questions and comments as i move along.

  • Help urgently needed please ! My Iphone 4 is on silent vibration mode, received a call and has frozen with the Iphone unusable and yet vibrating. I have tried switching off, connecting to power, connecting to laptop and removing SIM card ???

    Help urgently needed please ! My Iphone 4 is on silent vibration mode, received a call and has frozen with the Iphone unusable and yet vibrating. I have tried switching off, connecting to power, connecting to laptop and removing SIM card ???

    Problem solved... just saw the answer in another thread... https://discussions.apple.com/message/13110222#13110222

  • M45 S359 laptop auto switch between ethernet and wireless

    Had a HDD failure, replaced the HDD and rebuilt system.  Everything is working with the exception of autoswitching the connecting to the internet.  The machine used to auto switch to wireless if the ethernet cable was removed and connect via wireless or vise versa.  I now have to manually switch to the connection, do a repair before it will connect.  Once the repair is done, the connection is solid. It is probably a simple?? configuration somewhere, but I do not know where.   Need some guidance,  Tx..

    Let's keep things in this thread.
    -Jerry

  • My iPhone 3G auto switch off and I could nt turn on. Hw should I knw what is the problem

    My iPhone 3G auto switch off and I could not turn on it no matter hw I try. Can anyone advise me thank q

    did you try resetting in i tunes?
    connect the iphone with itunes and try to reset it to work seting,s afterwards you can sync your datas...

  • How to stop multiple auto-switching to address bar every time I open a new tab and try to type something anywhere outside of address bar?

    How to stop multiple auto-switching to address bar every time I open a new tab and try to type something anywhere outside of address bar? Like something just wants me to use that embedded search when u type something not-web-address in address bar and hit enter. And the most ridiculous thing is that it happens repeatedly on like every second, like I just move down from address bar and start typing again, but then again it switches me to address bar, and 3, 4 times like that. And the result is also that I can't see the address of that page.
    I think its has something to do with my AVG antivirus, because this started the same time some AVG Nation started to appear in every new tab i open (and thats also irritating me, I read about it here on support.mozilla.org and it seems that the only solution is to completely reinstall Firefox, but I dont want to lose all my settings) but when i type something in address bar and hit enter it opens the search results in Google.
    Please try to help me, I like Firefox but I must switch to Chrome until I fix this problem.
    Thanks in advance

    First, please update to Firefox 32. 22 is no longer support nor is it secure. Then let us know if you still have this problem. [[Update Firefox to the latest version]]

  • I'm having trouble with my Apple ID. I changed my email account, and recently (a month ago) and since I switched is requested every time I open any app to Apple ID password to the old email. How can I solve this? Could it be that my iPhone 4S is in sync w

    I'm having trouble with my Apple ID. I changed my email account, and recently (a month ago) and since I switched is requested every time I open any app to Apple ID password to the old email. How can I solve this? Could it be that my iPhone 4S is in sync with my Ipod???

    If you updated your existing account then try logging out of it on the iPhone by tapping on the id in Settings > iTunes & App Stores and then log back in and see if that 'refreshes' the account on the iPhone. If you created a new account then any content that you purchased/downloaded via the old account will remain tied to that old account, and only that old account can download updates to its apps.

  • I've been having an issue of connecting to wifi. I have restored and set up my phone as a new one and i still can't connect. Also i have restored my network setting also. The wifi button is still grey and i cant switch it on or off.

    I've been having an issue of connecting to wifi. I have restored and set up my phone as a new one and i still can't connect. Also i have restored my network setting also. The wifi button is still grey and i cant switch it on or off.

    Hi _Pchay,
    Accordign to the artcle below, it looks like you have done all the troubleshooting steps and your next step may be to contact Apple Support. 
    iOS: Wi-Fi settings grayed out or dim
    -Griff W. 

  • TS1398 when i update my software to 6.1.3(10B329)to I phone 4s the wifi is not working and not auto join the network that i have already connected to

    when i update my software to 6.1.3(10B329)to I phone 4s the wifi is not working and not auto join the network that i have already connected to

    First, grow up.  Just because YOUR phone isn't working, doesn't mean Apple put out bad software.  I've not had any difficulty, nor has anyone else I know.  And just how is Apple risking lives with Bluetooth kits not working?  It's YOUR decision to talk on the phone or text and drive.  Not Apple's.
    We're users here, volunteering our time to help others.  Posts like yours, which are whiny and ranting, simply means we're likely to ignore you and not provide you with any help.  Not to mention, it makes you look absolutely foolish.
    Further making you look foolish is the fact that you haven't even asked a technical support question, nor have you provided anyone here with any troubleshooting steps you might have taken, including those recommended in the user guide.
    Good luck getting help.
    GDG

  • Iphone not appears at Itunes after updating to ios 6.0.2 and I cannot switch on Iphone - there's only "connect USB to Itunes" icon shown. What should I do?

    iphone not appears at Itunes after updating to ios 6.0.2 and I cannot switch on Iphone - there's only "connect USB to Itunes" icon shown. What should I do?

    See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...

  • What usb auto switch is compatible with OSX and Windows for sharing the same printer

    I just bought a new iMac for myself to replace my old Dell PC.  My husband still has his PC with Windows Vista and our work stations are set up to share the same MFC with a Belkin auto switch.   Unfortunately that software is not compatible with my OSX and I am having trouble searching for another auto switch that is compatible with both computer operating systems.  Can anyone recommend one to me?

    Hmmm, we bought a brand new V300 from Epson and hooked it up it didn't work. We went through all the steps, downloaded all the drivers, and after several days of frustration, it still did not work so we returned it.
    Apple hasn't been able to give us technical advice, Epson couldn't help. The only scanners sold locally are the printer/scanner combos.
    I was looking at the Fujitso ScanSnap 1500M earlier tonight... am wondering if I can get by with this scanner since most of my scanning nowadays has to do with business documents. It sure would be nice to organize clutter and the text said something about compatible with the "cloud" as well.
    I use my iPad all the time to show galleries & collectors the quality of my paintings... type up proposals, etc. Thanks for letting me know about it's compatibility with my iPad, iPhone and Mac.
    Thank you for your input, AppleMan1958. you are wonderful.

  • Hi, my iphone 4s is saying im not connected to the internet, my wifi is on and ive tried switching it off and on and nothing, still cant connect. help!

    hi, my iphone 4s is saying im not connected to the internet, my wifi is on and ive tried switching it off and on and nothing, still cant connect. help! it was working perfectly fine earlier today.

    Try a reset by pressing the home and sleep buttons until you see the Apple logo, ignoring the slider. Takes about 5-15 secs of button holding and you won't lose any data or settings.

Maybe you are looking for