Bluetooth pairing with MAC address

Jolla Care -

Sometimes Bluetooth pairing keeps failing, particularly between Sailfish and cars.
Pairing from Sailfish command line may help.

This advice is for advanced users.  It can be attempted on all Sailfish OS devices but not on Jolla Phone or on Jolla tablet (as the commands below require bluez5). Some Bluetooth tools need be installed. The actual pairing command relies on the so-called MAC address of the device to-be-paired.

You will need to enable the developer mode for this. Once done, give the following commands in Terminal app (or use a computer via SSH - Windows / Linux ):

[nemo@Sailfish ~] devel-su                 ### type your SSH password
[root@Sailfish nemo] ssu ar qa ### enable quality assurance repository
[root@Sailfish nemo] pkcon refresh
[root@Sailfish nemo] pkcon install bluez5-tools ### install the tools
[root@Sailfish nemo] pkcon install bluez5-tracing
[root@Sailfish nemo] bluetoothctl ### start this tool

[bluetoothctl] scan on ### find nearby Bluetooth devices
### Find your device name in the list. Write down its MAC address.
### MAC addresses are of type xx:xx:xx:xx:xx:xx
[bluetoothctl] pair xx:xx:xx:xx:xx:xx ### Write the real MAC address

[agent] Confirm passkey nnnnnn (yes/no): yes ### type yes
### You will need to accept pairing at the other device, too.

[CHG] Device xx:xx:xx:xx:xx:xx Paired: yes
Pairing successful

[CHG] exit
[bluetoothctl] exit

### Clean up
[root@Sailfish nemo] pkcon remove bluez5-tracing
[root@Sailfish nemo] pkcon remove bluez5-tools
[root@Sailfish nemo] ssu rr qa
[root@Sailfish nemo] pkcon refresh

[root@Sailfish nemo] exit
[nemo@Sailfish ~]
Have more questions? Submit a request
Powered by Zendesk