Skip to content

How to connect bluetooth headphones automatically in Ubuntu

Published: December 24th, 2022 | Updated: July 22nd, 2023 Ubuntu Headphones on a yellow background

Step 1

Make sure your Bluetooth is working.

Step 2

Make sure AutoEnable is turned on, which makes sure Bluetooth is turned on after every restart

Check if AutoEnable=true is present in your Bluetooth config in /etc/bluetooth/main.conf. If it isn’t add it at the end of the file.

Step 3

Trust your device. Well, have Ubuntu trust your device to be precise. To do that we have to add the device to the trusted list. We need the MAC address of the Bluetooth device and we can get that by going to the Bluetooth settings, look up your device, and click on it.

Bluetooth settings for the headset.
Bluetooth settings for the headset

There you will find the Address of the device. Now open a Terminal and execute the following, where you replace mac_address with the Address from your Bluetooth settings:

bluetoothctl trust mac_address
shell

To verify it is now trusted, execute the following, again replacing mac_address with the Address from your Bluetooth settings:

sudo bluetoothctl info mac_address
shell

You should see Trusted: yes in the output of the command.

Step 4

Now disconnect your headphones by turning it off. And turn it on again. Your headphones should be connecting automatically now.

Step 5

Enjoy your music, movie, or whatever you are listening to on your headphones.

About Marcel Bootsman

Marcel discovered the web in 1995. Since then he has paid attention to and worked with lots of technologies and founded his own WordPress oriented business nostromo.nl in 2009.

Currently Marcel is Business Development Manager Dutch & DACH Markets at Kinsta where he helps Kinsta's client base grow with Managed WordPress, Application, Database and Static site hosting.

You can contact Marcel on a diverse range of online platforms. Please see the Connect section on the homepage for the details.