Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Howto: Manually pair a bluetooth device (CLI)

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2029
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 139 times
Been thanked: 206 times

Howto: Manually pair a bluetooth device (CLI)

#1 Post by Hallvor »

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. :)
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

Post Reply