Pairing a Logitech MX Master Mouse with Ubuntu 16.04 Using Bluetooth

Compared to when I used to download 3.5″ install images to set up Slackware on my machine, Linux has grown by leaps and bounds in terms of usability.  The majority of things seem to “just work” these days.  However, every once in awhile I run into some kind of weird issue.

In this case, I wanted to pair my MX Master Wireless Mouse with my Lenovo laptop running Ubuntu 16.04.  I don’t use the unifying receiver (which, to be honest, I don’t even know if I still have) because I generally just pair with Bluetooth so I have one less dongle to mess with.  That’s even more important in the case of a small laptop that doesn’t have a lot of USB ports to spare.

Adding a bluetooth device is theoretically pretty straightforward.  Go into the bluetooth settings and click ‘Add Device’ while the mouse is in pairing mode.  It actually finds the MX Master just fine, and even claims to complete the pairing process.

However, it still doesn’t recognize the mouse, and the led for the connection is still blinking instead of staying solid.  After a lot of googling, I finally found a solution that worked for me.  Once you have gone through the regular pairing procedure, enter the following commands (as root):

hciconfig hci0 sspmode 1
hciconfig hci0 down
hciconfig hci0 up

Voila, a working mouse!


  1. This solution doesn’t work for me. 🙁 The mouse pairs (I even tried the “do not pair” option under fixed pin), but it doesn’t do anything. Also, it will only show up under “all types” and won’t show up at all when I select “input devices”, e.g. mouse, etc..

    1. This was my situation exactly. I then tried Eric’s solution (ignoring the error message from the first command) and everything worked perfectly! Thanks, Eric!

  2. Thank you! 🙂
    This worked for me.
    I had to fiddle with turning bluetooth on and off.
    Lenovo X1 Carbon Gen 1 – Rubbish laptop & Logitech MX Master.

  3. Hi Eric! I just made the leap from Windows to Linux and am glad you were able to find a solution to this issue! The first couple of websites I visited said that there was no solution and I was almost resigned to having an expensive brick, but then I tried your solution and it worked! Thank you for posting this!

  4. I really thought I would have to be stuck with the trackpad everytime I boot into Ubuntu.
    This solved it!
    (although I ignored the simple pairing part (line 1))

  5. Hey Eric, my computer can’t find mice.. In device search always “searching for devices” but nothing found. my mouse is blinking. But nothin.. I tried your solution but again nothing…

    1. Sorry it didn’t work for you. I’m actually running Fedora now so I can’t really offer any other advice. Hope you find a solution that works for you!

  6. This worked for me- I was beginning to panic because I bought an MX Master just for linux machine at work. Thanks!

  7. I needed also command hcitool to find my Logitech M590 mac address.
    hcitool lescan
    Then gatttool to get mouse visible for blueman graphical tools.
    gatttool -i hci0 FE:25:8C:91:48:CB -I
    Just wanted to share my solution after trying days to get it work.

    1. Sorry. This describes what worked for me at the time. I’m actually not even running Ubuntu anymore so I’m afraid I don’t have any additional suggestions. Best of luck!

  8. This didn’t work for me, but what did was this answer:

    Open `bluetoothctl`, then:

    [bluetooth]# power off
    [bluetooth]# power on
    [bluetooth]# scan on
    [bluetooth]# connect XX:XX:XX:XX:XX:XX
    [Arc Touch Mouse SE]# trust
    [Arc Touch Mouse SE]# connect XX:XX:XX:XX:XX:XX
    [Arc Touch Mouse SE]# pair
    [Arc Touch Mouse SE]# unblock
    [Arc Touch Mouse SE]# power off
    [bluetooth]# power on

  9. Hey Eric,
    Thanks for this post!
    I wanted to check with you if you’ve lost any of the basic features (i.e. thumb button, back-and-forward buttons, infinity scroll, dpi adjustment) of the mouse after getting it to work.
    And also, were you able to get any gestures (e.g. thumb button + up) to work?

    Could you please share?
    Thanks in advance,

    1. Honestly, I never got in the habit of using any of the extra buttons and features that you’re talking about. I’m on my work Mac at the moment, but I’ll try to remember to experiment with that stuff when I get home. But, I’m no longer using Ubuntu; I switched to Fedora, so I’m not sure how relevant my results will be.

  10. Thank you! The commands fixed the problem, even though “hciconfig hci0 sspmode 1” gave me some error message.

    For googlers having the same problem:

    Mouse: Logitech M590
    Computer: HP Pavilion x360 13-s186no
    OS: Ubuntu 16.04.5 LTS (xenial)
    Bluetooth stack: bluez 5.37-0ubuntu5.1

  11. Thanks! It worked on Linux Mint 18.3 by “sudo”-ing your commands in. Threw up some errors, but still worked regardless.

  12. Wanted to add for those on the following Dell Latitude systems:
    E7440: 14.0″ Ultraportable (4th gen Core i3/i5/i7 ULV)
    E6540: 15.6″ Mainstream (4th gen Core i3/i5/i7 Mobile)
    E6440: 14.0″ Mainstream (4th gen Core i3/i5/i7 Mobile)
    E6430: 14.0″ Mainstream (4th gen Core i3/i5/i7 Mobile)
    and a Logitech MX Vertical M-R0074 mouse (the pairing buttons of 1 2 3)… you’ll need to long press the button on the bottom of the MX Vertical mouse to get the light to rapidly flash. Then it’ll show up in the Debian Bluetooth Settings pairing devices window. Tested on Debian 9 Stretch + Debian 10 Buster. Once it shows up, connects successfully, then proceed with the above commands in Terminal. -Trogdor

  13. Hi,

    My laptop with Debian 9 not see my Logitech MX Keys Keyboard, I tried your workaround also this :
    Open `bluetoothctl`, then:

    [bluetooth]# power off
    [bluetooth]# power on
    [bluetooth]# scan on
    [bluetooth]# connect XX:XX:XX:XX:XX:XX
    [Arc Touch Mouse SE]# trust
    [Arc Touch Mouse SE]# connect XX:XX:XX:XX:XX:XX
    [Arc Touch Mouse SE]# pair
    [Arc Touch Mouse SE]# unblock
    [Arc Touch Mouse SE]# power off
    [bluetooth]# power on

    but my keyboard not appears…
    No problem in windows ad android devices.

    Someone can help me?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.