Home Connect a bluetooth headset automatically in Linux
Post
Cancel

Connect a bluetooth headset automatically in Linux

I can never remember how to automatically connect to my bluetooth headset so here is a very short recipe.

Make sure your bluetooth headphones are already paired and trusted. Then proceed according to the sound server system you’re using (PulseAudio or PipeWire).

PulseAudio

Assuming you are using PulseAudio, edit /etc/pulse/default.pa as explained here and add the following to it:

1
2
### Automatically switch to newly-connected devices
load-module module-switch-on-connect

PipeWire

See this post for the equivalent PipeWire configuration.

Conclusion

Now, the next time you switch on your bluetooth headphones, they will automatically connect and become the default device.

This post is licensed under CC BY 4.0 by the author.

How to stop a Python thread cleanly

How to return a result from a Python thread

Comments powered by Disqus.