Bluetooth LE pairing fail
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | OEM Priority Project |
Critical
|
Cyrus Lien | ||
| | bluez (Ubuntu) |
High
|
Unassigned | ||
| | Xenial |
Undecided
|
Konrad Zapałowicz | ||
Bug Description
[Impact]
When the Bluetooth adapter is not powered on it is not possible to use
it in normal way. We used to have a hack to force powering on by using
an udev rule but this doe snot work anymore. Luckily the BlueZ has
introduced "AutoEnable" option that makes the stack power on adapters by
itself.
Backporting this to xenial will improve life of the desktop users and
will not require them to hack the solution on their own. The fix itself
uses the well known solution to this problem that is floating around
there for a while.
The upload fixes the bug by enabling the 'AutoEnable' option in the
bluetoothd config file.
[Original Report]
. 15.10 we now have bluez 5 so we can pair BLE devices like the
Microsoft Arc Touch Bluetooth Mouse.
But this pairing doesn't work very well. Mouse is seen but pairing fail.
More information: https:/
This is due to udev rule that use "hcitool" to power on device.
Hopefully, bluez 5.35 has a new parameter "AutoEnable" who can be used
instead of udev rules.
here is a commit with this parameter:
http://
[Test Case]
Edit the /etc/bluetooth/
Remove file 50-bluetooth-
/lib/udev/rules.d. Now reboot the machine. The BT adapter shall be
powered off now.
[Regression Potential]
Cannot think of any
[Other Info]
This fix is included in the development release, see: http://
| summary: |
- BLE pairing failed + BLE pairing fail |
| description: | updated |
| Changed in bluez (Ubuntu): | |
| status: | New → Confirmed |
| Martin Pitt (pitti) wrote : | #2 |
@Mathieu: Is enabling "AutoEnable" something we want to do and is generally safe?
| Guilhem Lettron (guilhem-fr) wrote : | #3 |
@Martin, changelog from 5.35 is quite explicit:
"
A noteworthy new feature is the ability to configure bluetoothd to automatically enable (power on) all new adapters. One use of this is to replace unreliable “hciconfig hci0 up” commands that some distributions use in their init/udev scripts. The feature can be enabled by having AutoEnable=true under the [Policy] section of /etc/bluetooth/
"
http://
But yes more advice are welcome :)
| Simon Fels (morphis) wrote : | #4 |
@pitti: Yes, they implemented it to allow us to replace our hack udev rule (https:/
| Martin Pitt (pitti) wrote : | #5 |
Ah, thanks Simon. As you currently seem to manage bluez (https:/
| Changed in bluez (Ubuntu): | |
| assignee: | nobody → Simon Fels (morphis) |
| Nahum Rozen (nahum) wrote : | #6 |
Hi,
I encountered the very same issue. Followed changing AutoEnable=true, did't helped...
I'm with 15.10 without any mods.
Any ideas?
| Changed in bluez (Ubuntu): | |
| importance: | Undecided → High |
| Guilhem Lettron (guilhem-fr) wrote : | #7 |
@nahum have you try my ppa or you only have modify your main.conf?
you also have to remove udev rules
| Nahum Rozen (nahum) wrote : | #8 |
Hi Guilhem,
I only did the modify my main.conf.
Can you send detailed instructions regarding what to do?
Thanx
| Nahum Rozen (nahum) wrote : | #9 |
Hi Guilhem,
Did what you said:
Add your PPA:
sudo add-apt-repository ppa:guilhem-
sudo apt-get update
sudo apt-get upgrade
modified the main.conf
sudo gvim /etc/bluetooth/
change line 67 from #[Policy] into [Policy]
change line 89 from #AutoEnable=false into AutoEnable=true
remove file 50-bluetooth-
I just changed its name…
rebooted
The BT panel sais that the device is connected. Yet, mouse does not move the cursor....
Any insights?
Maybe I did it wrong?
Thanx
Nahum
| Guilhem Lettron (guilhem-fr) wrote : | #10 |
@nahum, no you did it right.
You may have to remove mouse and redo pairing from scratch.
If it doesn't work, try to move udev rule to another backup dir.
| jimmux (jimmux) wrote : | #11 |
I have followed Nahum's overview of steps and not had much success.
It does at least claim to be paired now, but not actually doing anything. Tried pairing from scratch several times, sometimes it pairs and sometimes doesn't.
In my case there was no 50-bluetooth-
Thanks.
| jimmux (jimmux) wrote : | #12 |
Cancel that.
Rebooted one more time, and of course it works perfectly minutes after calling for help.
Cheers!
| Keith McClelland (zismylaptop) wrote : | #13 |
I have been working with a Microsoft Designer Mouse (also a BLA device). I went to AskUbuntu to try to find out why I could not use it with Ubuntu 15.10. [I have a Microsoft Surface Pro3 and am using a home-built kernel but the kernel does not seem to affect this problem.] I have followed the instructions in comment #9 and find that the mouse works...for 10 minutes. Apparently each use of the mouse resets a 10-minute watchdog timer and the mouse is disconnected if ever this timer expires.
It won't come back on its own. To reconnect it, you must "remove" the mouse using Blueman or the Gnome Bluetooth Manager (I use the former), search it out again, and set it up again. Usually this works the first time but sometimes you have to go through it again. Despite the fact that the mouse works it is reported as of type "unknown" or "All types."
I have attached a chunk of syslog showing the full cycle. I removed the old and reconnected it at 19:19. I used the mouse for about 4 minutes and then turned it upside down at 19:23. It disconnected 10 minutes later at 19:33. This sequence is repeatable and invariant.
Is this the right bug for this our should another be started?
Thanks,
Keith
| Keith McClelland (zismylaptop) wrote : | #14 |
A follow-up. My Android Lollipop phone can connect and knows that the Designer Mouse is a mouse (not an unknown). Unfortunately it too loses connection in 10 minutes so the problem is deeper than I had expected.
| Keith McClelland (zismylaptop) wrote : | #15 |
The 4.4 Linux Kernel series reconnects even after the 10 minutes or (usually) a reboot. My roll-your-own is 4.4-rc2 which has a building problem but that is known and probably will already be fixed in rc3
| no longer affects: | bluez |
| Yung Shen (kaxing) wrote : | #16 |
found a workaround to this:
if you happened to upgrade from vivid(15.04) or you know how to get vivid kernel install properly,
you can boot the system with 3.19 kernel and pairing up the mouse using bluetoothctl manually
then reboot with 4.2, the mouse will still paired and working.
$ bluetoothctl (entering interactive mode)
$ agent on
$ default-agent
$ pairable on
$ scan on
$ devices (to see the device mac that you want to pair)
$ pair <dev mac>
$ trust <dev mac>
$ connect <dev mac>
verified versions(stable while posted):
bluez 5.35-0ubuntu2
linux-image-
linux-image-
Hi Nahum Rozen (nahum),
in Ubuntu 16.04Lts Desktop Edition that ppa doesn't work, it gves this error:
W: The repository 'http://
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: http://
E: Failed to fetch http://
E: Failed to fetch http://
E: Some index files failed to download. They have been ignored, or old ones used instead.
any idea?
| phamdohung161 (phamdohung161) wrote : | #18 |
I've got the problem on Ubuntu 16.04 LTS Desktop :(
I've confirmed this issue on multiple dell platforms including xps 9343, 9350, & 5510 laptops, both broadcom & intel wireless radios, & multiple types of LE devices.
I confirm that Microsoft Arch Tech mouse cannot be paired with Asus Eee PC. I'm using Ubuntu 16.04 Linux earth 4.4.0-22-generic #40-Ubuntu SMP Thu May 12 22:03:15 UTC 2016 i686 i686 i686 GNU/Linux. Bluez version 5.37-0ubuntu5
| ckjavacoder (ckjavacoder) wrote : | #21 |
i confirm that Micosoft Designer mouse cannot work in ubuntu 16.04 at NUC5i7RYH i7-5557U.
The BT panel sais that the device is connected. Yet, mouse does not move the cursor....
| Guilhem Lettron (guilhem-fr) wrote : | #22 |
I try another merge request with AutoEnable parameter here:
https:/
It's based on previous patch submit here.
| Keith McClelland (zismylaptop) wrote : | #23 |
Bluez 5.40 works for me for both Designer keyboard and mouse. At this time Ubuntu has not packaged it up into a DEB but I was able to build and install it myself (search for bluez 5.40 to find how to download the entire large source). I am using Ubuntu 16.04 but a newer kernel made by Ubuntu (4.6.0-
I needed some additional packages to do the build. This is the whole procedure as well as a website that helped me figure this out:
./configure --prefix=/usr --mandir=
sudo apt-get install glib2.0
sudo apt-get install libdbus-1-dev
sudo apt-get install libudev-dev
sudo apt-get install libical-dev
sudo apt-get install libreadline-dev
sudo make
sudo make install
(I got help from http://
They haven't got everything right yet: both devices, though they work fine, are of unknown type, and syslog is still littered with python failures whenever one of these connects or disconnects.
| Nil PARRA (nil-parra) wrote : | #24 |
I'm on ubuntu 16.10 and not works for me for both Designer keyboard and mouse. Do you have any solution before an official fix ?
| Nil PARRA (nil-parra) wrote : | #25 |
On 16.10, if i do :
modified the main.conf
sudo gvim /etc/bluetooth/
change line 67 from #[Policy] into [Policy]
change line 89 from #AutoEnable=false into AutoEnable=true
remove file 50-bluetooth-
My mouse works but not the keyboard.
| Kai-Heng Feng (kaihengfeng) wrote : | #26 |
After removed the udev rule, I can pair & connect both Designer Keyboard and Mouse via bluetoothctl. Both of them works.
Bluez version: 5.37-0ubuntu5
| Robert Liu (robertliu) wrote : | #27 |
I tried to specify the udev rule more precisely, i.e. only power up a host controller.
Is there anybody could give it a try?
#/lib/udev/
# Set bluetooth power up
ACTION=="add", SUBSYSTEM=
| Gyula (gyula) wrote : | #28 |
Hi guys. I am happy about finding this page. I had the same issue with my new Dell Bluetooth Mouse WM615 but after using your suggestions, it's working well now.
What I did are
- editing /etc/bluetooth/
- editing /lib/udev/
I'm on Ubuntu 16.04 LTS and Dell Inspiron 15 7000.
Cheers guys!
Just confirmed that Gyula's notes work for me too. Post #'s 25 & 27 work great to get my Microsoft Arc BTLE Mouse paired. Flawless connect, disconnect, and general usage. Thanks guys!
What I did:
- editing /etc/bluetooth/
- editing /lib/udev/
| Xin YAO (yaoxin) wrote : | #30 |
Hi Guys, thank you all for the effort, I can confirm that post #25 & #27 works as expected! (including the step of removing/renaming file 50-bluetooth-
Many thanks!
| Reuben Thomas (rrt) wrote : | #31 |
Thanks for this. I managed to get my Arc Touch SE mouse to work with an otherwise stock 16.04 system by changing the setting as mentioned in #25, COMMENTING OUT the rule in #27 (merely changing it didn't seem to work) and then connecting as in #16.
Very grateful, as the mouse was a Christmas present that I asked for and I felt bad that I wasn't able to use it!
| Roger Binns (ubuntu-rogerbinns) wrote : | #32 |
Based on comments here I can get the Microsoft Arc Touch Bluetooth to pair. But the Bluetooth manager doesn't think it is a mouse, or offer connecting it to the input service. How does one get an actual working mouse?
| Júlio Maranhão (julio-maranhao) wrote : | #33 |
I made the same as #25 and I got the following:
1) the following dmesg error desappeared. The BT controller is an internal usb device.
[ 17.566030] usb 2-6: device descriptor read/64, error -110
2) M$ Bluetooth Mobile Mouse 3600 works. I removed any traces of it with bluetoothctl and I started a new setup only with GUI. Left/right clicks, movement and scroll (up/down/
So #25 solved my problem. My M$ mouse 3600 now works with xenial.
| tags: | added: papercuts2017 |
| LEYGUES (aurelien-leygues) wrote : | #34 |
Finally both keyboard and mouse Microsoft Designer are working perfectly!
- I used #25 (maybe #27 can work, I didn't try)
- then #23 worked perfectly using this script: https:/
- I removed all BT devices using bluetoothctl (command line interface) and reboot
- then I paired properly both mouse (1st) and keyboard (2nd) using #16
- both stopped working after a while (cursor not moving anymore), just switch off / on Bluetooth and TADAA: both auto-reconnect and now working without any problem!
Thanks a lot.
| tags: | added: xenial |
| tags: | added: yakkety |
| Mosh (moshikoy) wrote : | #35 |
Thanks to you,
Got both Designer keyboard and Mouse working on Ubuntu 16.04
comment #34 solves the issue.
notice: without upgrading to v5.40 only the designer mouse will work
| Konrad Zapałowicz (kzapalowicz) wrote : | #36 |
@All
FYI: the fix discussed here is on it's way to zesty [currently being tested]. Moreover we are making efforts on getting it as an update to xenial.
| grafviktor (grafviktor) wrote : | #37 |
#23 resolved my problem, I haven't changed any other files, like 25 and 26 suggested.
| grafviktor (grafviktor) wrote : | #38 |
Apologize, not 26, but 27. Haven't found how to edit my previous comment.
| Jack Daniels (unoexperto) wrote : | #39 |
I don't know guys. None of the above helped me. I initially had Killer 1535 card on my DELL XPS 13. Today I replaced it with Intel 8260 ant it still doesn't see Mobile Bluetooth 3600 mouse. Oddly it worked on another laptop with Intel 7260 card. Go figure :(
| Chris J Arges (arges) wrote : | #40 |
I see this was uploaded to Xenial as well as an SRU. It would be helpful to fill out the template in order to make reviewing easier:
https:/
In addition we must ensure it is fixed in the development release before it gets fixed in stable versions so please confirm this.
Thanks
| Brian Murray (brian-murray) wrote : | #41 |
Additionally, were these changes intended? They are not documented in the changelog.
1 diff -Nru bluez-5.
2 --- bluez-5.
3 +++ bluez-5.
4 @@ -1,2 +0,0 @@
5 -# Set bluetooth power up
6 -ACTION=="add", SUBSYSTEM=
7 diff -Nru bluez-5.
8 --- bluez-5.
9 +++ bluez-5.
10 @@ -25,7 +25,6 @@
11 lib/udev/hid2hci
12 lib/udev/
13 attrib/gatttool usr/bin
14 -debian/
15 #-- for systemd
16 lib/systemd/
17 etc/dbus-
| Changed in bluez (Ubuntu): | |
| status: | Confirmed → Incomplete |
| Robie Basak (racb) wrote : | #42 |
Rejecting from the Xenial queue due to the lack of response.
If this still needs fixing in Xenial, please see https:/
| Kai-Heng Feng (kaihengfeng) wrote : | #43 |
The change is intended - please check comment #3.
| Daniel van Vugt (vanvugt) wrote : | #44 |
| summary: |
- BLE pairing fail + Bluetooth LE pairing fail |
| Changed in bluez (Ubuntu): | |
| assignee: | Simon Fels (morphis) → nobody |
| status: | Incomplete → In Progress |
| status: | In Progress → Incomplete |
| description: | updated |
| description: | updated |
| Changed in bluez (Ubuntu): | |
| status: | Incomplete → Fix Released |
| Robie Basak (racb) wrote : | #45 |
Adding a task for Xenial as requested on IRC. But note that I haven't looked into the details of the proposed fix - in particular checking for and understanding any proposed change in behaviour for Xenial users. So please don't take this as a +1 from ~ubuntu-sru. Before accepting this SRU, please consider whether the proposed fix is appropriate from scratch.
| Changed in oem-priority: | |
| importance: | Undecided → Critical |
| status: | New → Confirmed |
| Launchpad Janitor (janitor) wrote : | #46 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in bluez (Ubuntu Xenial): | |
| status: | New → Confirmed |
| Changed in bluez (Ubuntu Xenial): | |
| assignee: | nobody → Konrad Zapałowicz (kzapalowicz) |
| Changed in oem-priority: | |
| assignee: | nobody → Cyrus Lien (cyruslien) |
| Konrad Zapałowicz (kzapalowicz) wrote : | #47 |
Testing::
1. using the bluez without the patch
- reboot
- try to pair and connect
2. using bluez with patch
- reboot
- try to pair and connect
In some cases pairing and connecting works better with the patch applied. There is no negative behavior observed with patch applied compared to w/o the patch.
| tags: | added: risk |
| tags: | added: sru |
| tags: | removed: risk |


Status changed to 'Confirmed' because the bug affects multiple users.