First, we have to check that the Bluetooth device is not blocked:
rfkill list
We should see something like this:
0: ideapad_wlan: Wireless LAN
Soft blocked: no
Hard blocked: no
1: ideapad_bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
2: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
If we want to unblock all, run:
rfkill unblock all
We need to enter into the Bluetooth tool to scan devices:
sudo bluetoothctl
Once we’re in the Bluetooth CLI, we need to run the scan command:
[bluetooth]# scan on
Discovery started
[CHG] Controller 44:2C:05:B6:BD:FF Discovering: yes
[NEW] Device 00:18:00:09:B8:3C BTKB-B83C
[NEW] Device 7C:C5:37:6A:A6:F8 Raxy-iOs-61
We have to identify the MAC address of the device we want to connect to:
[bluetooth]# pair 00:18:00:09:B8:3C
Attempting to pair with 00:18:00:09:B8:3C
[CHG] Device 00:18:00:09:B8:3C Connected: yes
[agent] PIN code: 233649
[CHG] Device 00:18:00:09:B8:3C Modalias: usb:v0DC6p3752d1001
[CHG] Device 00:18:00:09:B8:3C UUIDs: 00001124-0000-1000-8000-00805f9b34fb
[CHG] Device 00:18:00:09:B8:3C UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Device 00:18:00:09:B8:3C Paired: yes
Pairing successful
[CHG] Device 00:18:00:09:B8:3C Connected: no
Then, we need to connect to the Bluetooth device:
[bluetooth]# connect 00:18:00:09:B8:3C
Attempting to connect to 00:18:00:09:B8:3C
[CHG] Device 00:18:00:09:B8:3C Connected: yes
Connection successful
[CHG] Device 7C:C5:37:6A:A6:F8 RSSI: -71
[CHG] Device 7C:C5:37:6A:A6:F8 RSSI: -60
Finally, we want to trust the device, so we can connect to it every time, even after reboot the machine:
[BTKB-B83C]# trust 00:18:00:09:B8:3C
[CHG] Device 00:18:00:09:B8:3C Trusted: yes
Changing 00:18:00:09:B8:3C trust succeeded
Sources: