My bluetooth mouse Logitech M535 stopped working suddenly in Ubuntu 20.04 LTS and I can't connect to it anymore. I removed it from a list of Bluetooth devices in blueman and tried to search for it and add again back in hope it will help to solve the issue. Unfortunately, each time I click a mouse button to make it discoverable by operating system it appears in the list of available devices and then disappears immediately like shown in the picture:
I also tried to pair the mouse on another PC with Ubuntu 20.04 LTS — the same result. Another interesting thing that after the issue occurred I booted into Windows 10 where my mouse hadn't worked previously and...it started to work there. Not sure that it might be related but it seems very weird.
I don't know what I can do and which logs to check in order to state what the problem is. Looking for similar questions on bluetooth mouse issues wasn't not really helpful. That's why I am asking for help.
These are outputs of a couple commands related to bluetooth adapters, I guess:
$ rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
$ hciconfig --all
hci0: Type: Primary Bus: USB
BD Address: BC:17:B8:CB:91:8D ACL MTU: 1021:4 SCO MTU: 96:6
UP RUNNING PSCAN ISCAN
RX bytes:49836 acl:128 sco:0 events:4404 errors:0
TX bytes:781983 acl:128 sco:0 commands:3696 errors:0
Features: 0xbf 0xfe 0x0f 0xfe 0xdb 0xff 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH SNIFF
Link mode: SLAVE ACCEPT
Name: 'merisa'
Class: 0x1c010c
Service Classes: Rendering, Capturing, Object Transfer
Device Class: Computer, Laptop
HCI Version: 5.1 (0xa) Revision: 0x100
LMP Version: 5.1 (0xa) Subversion: 0x100
Manufacturer: Intel Corp. (2)
UPDATE: 2022-01-04
I started the system from live USB (Kubuntu 20.04.3 LTS), installed Blueman:
sudo apt install blueman
and was able to discover the mouse on the third attempt and pair it. So now I am updating the answer from live session with working mouse:
Does it mean that something is broken in Bluetooth configuration of my existing operating system?
This is what I've got from live session:
$ sudo cat /var/lib/bluetooth/BC\:17\:B8\:CB\:91\:8D/34\:88\:5D\:AF\:FB\:85/info
[General]
Name=Bluetooth Mouse M336/M337/M535
Class=0x002580
SupportedTechnologies=BR/EDR;
Trusted=true
Blocked=false
Services=00001000-0000-1000-8000-00805f9b34fb;00001124-0000-1000-8000-00805f9b34fb;00001200-0000-1000-8000-00805f9b34fb;
[LinkKey]
Key=87BEA06887EA46DE046A3B25ABF1F9BF
Type=4
PINLength=0
[DeviceID]
Source=2
Vendor=1133
Product=45078
Version=4611