Reconnecting a bluetooth mouse in Linux Mint upon reboot

Logitech Ultrathin Mouse

I use a bluetooth mouse with my laptop (never could understand manufacturers pushing their proprietary USB wireless peripherals – why take up a USB port when all laptops have bluetooth built-in). When I installed Linux Mint (version 17.3) it has connected to my mouse just fine and I was able to use it with no issues. However the OS would never reconnect with the mouse upon reboot which is a hassle – you have to remove/add the device every time. Clearly not the way to go.

This is what I’ve done to get the OS remember the mouse and it’s settings.

  1. Put your mouse in a discoverable state (there is usually a button on the mouse somewhere for this)
  2. Open terminal and run the following command that should give you a MAC address for your mouse:
    hcitool scan
  3. Once you’ve obtained your mouse MAC address (should look like XX:XX:XX:XX:XX:XX), run the following in terminal:
    bluez-simple-agent hci0 XX:XX:XX:XX:XX:XX
    bluez-test-device trusted XX:XX:XX:XX:XX:XX yes
    bluez-test-input connect XX:XX:XX:XX:XX:XX

Now you should be good to go.

© Copyright Alexander Yermakov. My life. - Designed by Pexeto