Howto: Manually pair a bluetooth device (CLI)

Share your own howto's etc. Not for support questions!

Howto: Manually pair a bluetooth device (CLI)

Postby Hallvor » 2018-05-26 09:11

Why manual pairing?
Sometimes GUIs will fail. If you have trouble, this may work.

What you need
If you are trying to connect a Bluetooth loudspeaker, you must install the Bluetooth pulseaudio module

Code: Select all
# apt install pulseaudio-module-bluetooth

Connecting to your device

Fortunately, Bluez has a nice command line client. Bluez should be installed by default. (If not, you must install it.)

Start the Bluez command line client:

Code: Select all
$ bluetoothctl

This should list your client and available devices.

From the command line client, type
Code: Select all

to just list the available Bluetooth devices.

You will now get output like this:

Code: Select all
Device 05:FA:A3:62:23:F1 ACTON BLUETOOTH

Copy the MAC address of the device (in my case 05:FA:A3:62:23:F1) and pair the device. (Replace 05:FA:A3:62:23:F1 with your own.)

Code: Select all
pair 05:FA:A3:62:23:F1

Trust the device for future connections:

Code: Select all
trust 05:FA:A3:62:23:F1

Almost done. Now connect to your device:

Code: Select all
connect 05:FA:A3:62:23:F1

Thats it. It should work now. :)
Lenovo ThinkPad T440S, Intel Core i7-4600U CPU @ 2.10GHz, 8 GB RAM, 256 GB SSD, Debian Buster (KDE)
Lenovo ThinkPad X240, Intel Core i5-4300U CPU @ 2.90GHz, 8 GB RAM, 120 GB SSD, Debian Buster (KDE)
User avatar
Posts: 1086
Joined: 2009-04-16 18:35
Location: Norway

Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: hack3rcon and 4 guests