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
devices


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. :)
HP Elitebook 2570p, Intel Core i5 3320-M CPU @ 2.60 GHz, 6 GB RAM, Intel HD 4000 graphics, 240 GB SSD, Debian Stretch (KDE)
User avatar
Hallvor
 
Posts: 840
Joined: 2009-04-16 18:35
Location: Norway

Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 1 guest

fashionable