Ever since I’ve switched from Gnome to DWM on my main laptop, I have to perform most things on command line now. I know, right? :P

Anyway, I need to pair a bluetooth mouse, Logi MX Anywhere 2S, with this Fedora laptop. I had a similar post a while back about connecting Bose QC35 to Fedora 29. So this is quite similar to that post.

First, ensure that bluetooth.service is running:

➜ sudo systemctl status bluetooth
[sudo] password for kenno:
● bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; disabled; vendor preset: enabled)
     Active: inactive (dead)
       Docs: man:bluetoothd(8)
➜ ^status^start
sudo systemctl start bluetooth

Next, confirm that the bluetooth device is not blocked:

➜ rfkill
ID TYPE      DEVICE              SOFT      HARD
 0 bluetooth hci0           unblocked unblocked
 1 wlan      dell-wifi      unblocked unblocked
 2 bluetooth dell-bluetooth unblocked unblocked
 3 wlan      phy0           unblocked unblocked

According to the above output, the bluetooth device is not blocked.

Ensure that the connecting button is pressed on the mouse itself, then run the scan on the laptop.

➜ bluetoothctl
Agent registered
[CHG] Controller 08:71:90:15:37:B2 Pairable: yes
[bluetooth]# scan on
Discovery started
[CHG] Controller 08:71:90:15:37:B2 Discovering: yes
[NEW] Device 49:56:0A:70:AC:11 49-56-0A-70-AC-11
[NEW] Device F9:37:4E:xx:xx:xx MX Anywhere 2S
[NEW] Device 88:C6:26:B2:12:EF 88-C6-26-B2-12-EF
[NEW] Device 4E:E9:8E:54:30:50 4E-E9-8E-54-30-50
...
[bluetooth]# scan off
Discovery stopped
[CHG] Controller 08:71:90:15:37:B2 Discovering: no
[CHG] Device 4E:97:C1:41:DA:42 TxPower is nil
[CHG] Device 4E:97:C1:41:DA:42 RSSI is nil
[CHG] Device 7C:7E:42:88:E0:1E RSSI is nil
...

My Logi mouse is identified as F9:37:4E:xx:xx:xx MX Anywhere 2S, so let’s pair it.

[bluetooth]# pair F9:37:4E:xx:xx:xx
Attempting to pair with F9:37:4E:xx:xx:xx
[CHG] Device F9:37:4E:xx:xx:xx Connected: yes
[CHG] Device F9:37:4E:xx:xx:xx UUIDs: 00001800-0000-1000-8000-00805f9b34fb
[CHG] Device F9:37:4E:xx:xx:xx UUIDs: 00001801-0000-1000-8000-00805f9b34fb
[CHG] Device F9:37:4E:xx:xx:xx UUIDs: 0000180a-0000-1000-8000-00805f9b34fb
[CHG] Device F9:37:4E:xx:xx:xx UUIDs: 0000180f-0000-1000-8000-00805f9b34fb
[CHG] Device F9:37:4E:xx:xx:xx UUIDs: 00001812-0000-1000-8000-00805f9b34fb
[CHG] Device F9:37:4E:xx:xx:xx UUIDs: 00010000-0000-1000-8000-011f2000046d
[CHG] Device F9:37:4E:xx:xx:xx ServicesResolved: yes
[CHG] Device F9:37:4E:xx:xx:xx Paired: yes
...

After this step, the mouse is paired and working as expected.

Reference: