Bluetooth mouse won’t connect after reboot/sleep on Ubuntu 18.04

By | May 5, 2019

System & hardware:

  • OS: Ubuntu 18.04 LTS
  • Mouse: Logitech M337


After reboot/sleep, Bluetooth mouse won’t get connected again. Need to remove and pair again to make it work again.

Steps to solve this problem:

1. Update bluez.

sudo add-apt-repository ppa:bluetooth/bluez
sudo apt install bluez

2. Remove paired mouse. (If it is paired before)

3. Open terminal, follow the script from:

Please note the 01:23:45:67:89:AB is your Bluetooth controller and 34:88:5D:87:C0:A6 is your mouse, it will be different with your scenario.

[bluetooth]# list
[bluetooth]# select 01:23:45:67:89:AB
[bluetooth]# show
[bluetooth]# power on
[bluetooth]# scan on
[bluetooth]# scan off
[bluetooth]# pair 34:88:5D:87:C0:A6
[bluetooth]# connect 34:88:5D:87:C0:A6
[bluetooth]# trust 34:88:5D:87:C0:A6

Then Bluetooth mouse should automatically connect after reboot/sleep.