Bluetooth mouse not auto-reconnecting to laptop

Try to use different tool to pair your Bluetooth device, e.g. blueman-manager (probably Bluetooth device is not "trusted").

I'm using Ubuntu 14.04 and have Microsoft Sculpt Comfort Mouse. When pairing mouse in Ubuntu's Bluetooth settings dialog, mouse doesn't reconnect after suspend/resume and even after some time of idle.

I unpaired mouse, paired and "trusted" it in blueman-manager and now it works like a charm.


It works on Ubuntu 17.10 I think every distro with bluetoothctl is supported:

  1. Run in terminal bluetoothctl In $bluetooth command line type devices. You will see list of available devices.
  2. Type trust 00:XX:XX:XX:XX:XX Where number started with 00: is a divice you wish to connect.
  3. Type ctrl+d or quit to exit.
  4. If You want to automatically connect Your device on startup, open Startup Applications and add new one.

    • Press Add
    • Name launcher like My startup BT connection
    • In command type bash -c 'echo -e "connect 00:XX:XX:XX:XX:XX \nquit" | bluetoothctl'

You can also setup a keyboard shortcut with same command to lunch, and connect You device with press of a button.

Have fun :)


Try it again but remove this part name="Microsoft Sculpt Comfort Mouse"

If it's not that then you probably have the wrong OUI.

I believe it's the first half of your bluetooth mouse's address.

OUI stands for Organizational Unique Identifier. Basically the first half of your MAC address says it's made by Microsoft, though mice from the same company may have different OUIs for whatever reason.

For this step start from scratch and lets start the process of elimination.

Uninstall/purge blueman-manager or any extra bluetooth software. Go vanilla and just leave the original Ubuntu bluetooth software to rule out any conflicts.

  1. Press the bluetooth mouse's discovery mode.

  2. Open a terminal and type the command hcitool scan

  3. Then paste the first half of your bluetooth address as the OUI.

Make sure to include the last colon like so oui="xx:xx:xx:"

So if your bluetooth mouse's address is AB:CD:EF:GH:IJ:KL

It would look like this:

<device oui="AB:CD:EF:" type="mouse" name="Microsoft Sculpt Comfort Mouse" pin="0000"/>

Insert that line with the rest of the entries in

/usr/share/gnome-bluetooth/pin-code-database.xml

IMPORTANT: Insert at the beginning of the file, just below the starting <devices> tag - because the entries match in the order of appearance!

I'd restart after this just to make sure everything's in order.

This should solve most reconnection issues because Ubuntu doesn't know or store the PIN # when you pair the first time when it tries to reconnect.

NOTE: In other Linux distros, the path of the file pin-code-database.xml may be different!


I am sure if you are pairing your mouse incorrectly it wont work. I was having the exact same issue. My Microsoft Sculpt Comfort Mouse paired fine and then I left the computer for the day. The screensaver came on and a few hours later I came back to use my computer and my mouse was not working. I probably paired it incorrectly the first time as well. So, I searched through the internet and tried multiple things from the Ubuntu community including removing and repairing my mouse at which point it would not repair. I figured out that I was not actually pairing it correctly each time I paired. The correct steps to pair this mouse that worked are below:

  1. Open Bluetooth manager (should work with any manager, but I used specifically Bluetooth manager)
  2. Press and hold down the pairing button on the bottom of the mouse until you get a solid flashing blue light (slowly flashing about 1 flash per second)
  3. Click search in Bluetooth manager

    • Click the Microsoft Sculpt Comfort Mouse, and then click the key icon (pairing icon)
    • Once the mouse pairs, click the golden star icon within the Bluetooth Manager so the mouse is trusted.
    • Now that the mouse is paired and trusted, click setup, choose input service and then click "forward". When you see "Device added and connected successfully" click close.

None of the answers listed here worked for me, but I paired the device using the commandline tool bluetoothctl and it reconnected automatically. What I did was:

  • Set the mouse to discoverable
  • run bluetoothctl (list the Mac addess of my mouse)
  • run pair <MAC> (within bluetoothctl which paired the device)