# Automatically switch to bluetooth speaker once connected

**URL:** <https://forum.endeavouros.com/t/automatically-switch-to-bluetooth-speaker-once-connected/31286>\
**Category:** Newbie\
**Created:** [September 4, 2022, 2:51am UTC](https://forum.endeavouros.com/t/automatically-switch-to-bluetooth-speaker-once-connected/31286 "2022-09-04T02:51:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rcht](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/r/e8c25b/32.png) [@rcht](https://forum.endeavouros.com/u/rcht)\
**Post date:** [September 4, 2022, 2:51am UTC](https://forum.endeavouros.com/t/automatically-switch-to-bluetooth-speaker-once-connected/31286/1 "2022-09-04T02:51:07Z")

</div>

My bluetooth headphones do connect automatically once I turn them on, however I always need to manually switch the speaker to the headphones through the audio plugin in the panel.

Is there a way to prevent this so that the speakers are automatically switched to my headphones once they are connected? Thanks

DE: XFCE  
Sound server: Pipewire with wireplumber  
Bluetooth Headphones: Samsung Galaxy Buds

[eos-sendlog just in case](https://clbin.com/CAxUy)

---

<div class="post-metadata">

**Author:** ![Scotty\_Trees](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/scotty_trees/32/29792_2.png) [@Scotty\_Trees](https://forum.endeavouros.com/u/Scotty_Trees)\
**Post date:** [September 4, 2022, 3:08am UTC](https://forum.endeavouros.com/t/automatically-switch-to-bluetooth-speaker-once-connected/31286/2 "2022-09-04T03:08:23Z")

</div>

1. Get bluetooth support (`pipewire` is default, generally speaking `pipewire` is preferred):

Please read this for full details:  
https://discovery.endeavouros.com/bluetooth/bluetooth/2021/03/

For pipewire: `sudo pacman -S --needed bluez bluez-utils`

`sudo systemctl enable --now bluetooth`

^you must run this command for Gnome (will work for other DE’s too) to even turn Bluetooth ON^

Reboot and test before trying Step 2 please.

1. IF you’ve already done the above steps before, the next option is to adjust the AutoEnable Policy:

Fix bluetooth issues on reboot for Gnome 42: Auto power-on after boot/resume:

Please read this for full details:  
https://wiki.archlinux.org/title/Bluetooth#Auto\_power-on\_after\_boot/resume

`sudo nano /etc/bluetooth/main.conf` and look for AutoEnable and uncomment it (remove the # in front of it, so that it becomes enabled) so that it looks like this:

```auto
[Policy]

AutoEnable=true

```

Then make sure your save the file and exit nano.

Reboot and test before trying Step 3 please.

1. This is taking it one step even further, but in my opinion you generally shouldn’t need to go this far, but it’s easy to try:

If the device should always be visible and directly connectable:

`sudo nano /etc/bluetooth/main.conf` and look for this line and remove the # to enable DiscoverableTimeout so it looks like this:

```auto
[General]

DiscoverableTimeout = 0

```

I would try each step one at a time, reboot, see if it fixes your problem, if not, then go on to the next step. For most users Steps 1 and 2 should be all you need to really do to get bluetooth to automatically turn on and connect to your device during login, but some hardware (aka very old or very new bluetooth protocols) can be a bit hard to troubleshoot, so you’re experience may vary. Good Luck and hope this was helpful!

---

<div class="post-metadata">

**Author:** ![anon11595408](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/f1d935/32.png) [@anon11595408](https://forum.endeavouros.com/u/anon11595408)\
**Post date:** [September 7, 2022, 5:01pm UTC](https://forum.endeavouros.com/t/automatically-switch-to-bluetooth-speaker-once-connected/31286/3 "2022-09-07T17:01:31Z")

</div>

> [@rcht](#):
>
> Sound server: Pipewire with wireplumber

No, there is no way. It is [a known issue](https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/579) between wireplumber and pavuctrl. You may try switching to pipewire-media-session, but the issue is likely to persist, I would guess.

Installing easy-effects (former pulse-effects) only makes it much worse, as then there are many more audio-sinks to be set manually.

Keeping the last settings of pulse-audio doesn’t seem to be implemented in pipewire, at all yet, as I have followed some discussions on the web, so far. It seems to be a matter of incompatibility between pipewire and pulse-related sessions, and both are blaming a “potential issue” on each other.

YMMV, so please correct me, should I be wrong, people, as I’ve been seeking for a solution to this for months now myself.

---

<div class="post-metadata">

**Author:** ![rcht](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/r/e8c25b/32.png) [@rcht](https://forum.endeavouros.com/u/rcht)\
**Post date:** [September 8, 2022, 5:37am UTC](https://forum.endeavouros.com/t/automatically-switch-to-bluetooth-speaker-once-connected/31286/4 "2022-09-08T05:37:55Z")

</div>

Thanks for the info. It’s not a huge problem, just slightly inconvenient.

---

<div class="post-metadata">

**Author:** ![system](https://forum.endeavouros.com/uploads/default/original/2X/9/9ea52f9fd5ef8e609e593c362d61a36295f48be8.png) [@system](https://forum.endeavouros.com/u/system)\
**Post date:** [September 10, 2022, 5:38am UTC](https://forum.endeavouros.com/t/automatically-switch-to-bluetooth-speaker-once-connected/31286/5 "2022-09-10T05:38:27Z")

</div>

Closed on September 10, 2022, 5:38am UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
