I've finally gotten my Logitech MX Anywhere 2 to work via Bluetooth on my XPS 15 9550 with DW1830 wifi/BT card. The mouse is pretty stable now, everything works, including back/forward navigation buttons. The mouse is detected and connected automatically at boot now. Tested with kernel 4.2 and 4.3 both on Wily (15.10).
These are the steps I took. They're a bit hacky, suggestions for improvement welcome.
1) enable bluetoothd experimental features with -E parameter. To make the -E parameter permanent across boots, I did this:
Code:
sudo nano /etc/init.d/bluetooth
and around line 39 replace
with
Code:
NOPLUGIN_OPTION="-E"
CTRL-X to save and exit
(The NOPLUGIN_OPTION is abused a bit here to exec "/usr/sbin/bluetoothd -E")
reboot, and see if you can pair now.
You may need to pair manually using bluetoothctl, put mouse in pairing mode (Logitech MX Anywhere 2: press connect button)
Code:
$ bluetoothctl
[NEW] Controller 18:4F:32:F7:F2:E8 steady-XPS-15-9550 [default]
[NEW] Device D8:C2:11:ED:57:26 MX Anywhere 2
[bluetooth]# power off
Changing power off succeeded
[CHG] Controller 18:4F:32:F7:F2:E8 Powered: no
[CHG] Controller 18:4F:32:F7:F2:E8 Discovering: no
[CHG] Controller 18:4F:32:F7:F2:E8 Class: 0x000000
[bluetooth]# power on
[CHG] Controller 18:4F:32:F7:F2:E8 Class: 0x0c010c
Changing power on succeeded
[CHG] Controller 18:4F:32:F7:F2:E8 Powered: yes
[bluetooth]# scan on
Discovery started
[CHG] Controller 18:4F:32:F7:F2:E8 Discovering: yes
[NEW] Device D8:C2:11:ED:57:28 MX Anywhere 2
[bluetooth]# trust D8:C2:11:ED:57:28
[CHG] Device D8:C2:11:ED:57:28 Trusted: yes
Changing D8:C2:11:ED:57:28 trust succeeded
[bluetooth]# pair D8:C2:11:ED:57:28
Attempting to pair with D8:C2:11:ED:57:28
[CHG] Device D8:C2:11:ED:57:28 Connected: yes
[CHG] Device D8:C2:11:ED:57:28 UUIDs: 00001800-0000-1000-8000-00805f9b34fb
[CHG] Device D8:C2:11:ED:57:28 UUIDs: 00001801-0000-1000-8000-00805f9b34fb
[CHG] Device D8:C2:11:ED:57:28 UUIDs: 0000180a-0000-1000-8000-00805f9b34fb
[CHG] Device D8:C2:11:ED:57:28 UUIDs: 0000180f-0000-1000-8000-00805f9b34fb
[CHG] Device D8:C2:11:ED:57:28 UUIDs: 00001812-0000-1000-8000-00805f9b34fb
[CHG] Device D8:C2:11:ED:57:28 UUIDs: 00010000-0000-1000-8000-011f2000046d
[CHG] Device D8:C2:11:ED:57:28 Paired: yes
Pairing successful
[CHG] Device D8:C2:11:ED:57:28 Modalias: usb:v046DpB013d0007
[MX Anywhere 2]#
Paring/trusting only has to be done once.
2) If connecting still fails, update the DW1830 Bluetooth firmware by downloading this zip, and copying the firmware file to your Ubuntu installation (see included README).
Reboot and try again. dmesg should now contain something like
Code:
[ 2.221830] Bluetooth: hci0: BCM (001.001.005) build 0422
repeat 1) if pairing/connecting didn't work the first time.
After these steps, if mouse is not connecting try switching off and on the BT device:
Code:
$ bluetoothctl
[bluetooth]# power off
Changing power off succeeded
[bluetooth]# power on
The Logitech MX anywhere 2 mouse has support for multiple devices, and has a button on the bottom to activate one of them. I'm using this mouse in a dual boot config, and it seems the mouse thinks that the BT adapter has a different ID under Windows than under Linux (or at least some of the time). You sometimes need to re-pair because of that, but during re-pairing the mouse chooses a new BT ID itself, despite it using the same mouse profile (1, 2 or 3) as before. You then need to re-pair under the other OS again too. Long story short: you're probably best off selecting 1 mouse profile on the mouse for Ubuntu (pairing with that profile active), and a second one for Windows (pairing with the second profile). So when you switch OS, switch profile on your mouse too.
Something unrelated to Bluetooth and Logitech mouse:
I'm attempting to tune power management under 15.10, and I'm seeing strange numbers when using powertop:
When running with Intel graphics (1.2.1 drivers from 01.org) power usage is about 15-20 W when idle, with wifi and bluetooth on, brightness at 50% (FHD panel). My 56kWh battery lasts only about 3 hours that way. When using the 960M GPU (nvidia 358.16 driver), power consumption drops to 9-10W.
It's supposed to be the other way around, Intel should be the power saving option of the two. Anyone else notice this?
Bookmarks