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!
Thank you. This helped with my Dell Latitude E7270. I had to re-pair one more time and then it took
Awesome! Glad this helped someone!
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..
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!
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.
Hooray! Glad it helped!
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!
Hooray! Glad it helped!
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))
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…
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!
This worked for me- I was beginning to panic because I bought an MX Master just for linux machine at work. Thanks!
Hooray! Glad it worked for you!
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.
Awesome! Thanks for sharing!
Hi Eric. My mouse isnt even pairing it fails to do so. What can I do?
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!
This didn’t work for me, but what did was this answer: https://askubuntu.com/questions/741330/how-do-i-get-logitech-mx-anywhere-2-to-work-in-16-04-bluetooth-smart/769095#769095
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
Thanks! Hopefully this will help someone else.
This work for me with logitech M585 wireless mouse.
Worked! Thank you from Germany!
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,
Daniel
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.
Hey,
it worked well after I paired one more time.
Thank you very much and greetings from Germany.
Nici
Hooray! Glad it helped!
Wonderful solution, now my Logitech M585 works!! Thanks for the post!!
Just… thanks a lot!.
You’re welcome!
thanks for sharing – this worked!
This is awesome. Thank you very much for this! I’ve been looking everywhere for a fix.
Oooohhh! That’s a great tip, a great solution. Thank you for sharing!
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
hciconfig hci0 sspmode 1
doesn’t work for me.
I found https://askubuntu.com/a/967270/6695 which does work, although I remember that in the past I used something simpler that looked more like your solution.
Thanks! It worked on Linux Mint 18.3 by “sudo”-ing your commands in. Threw up some errors, but still worked regardless.
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
Awesome man – this worked for me.
Small tip – you might want to run the second and third commands together, like so,
hciconfig hci0 down && hciconfig hci0 up