FS#63012 - [linux] Bluetooth pairing fails on 5.1.15

Attached to Project: Arch Linux
Opened by Eivind (mokkurkalve) - Wednesday, 26 June 2019, 12:11 GMT
Last edited by Antonio Rojas (arojas) - Wednesday, 10 July 2019, 09:16 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:
After upgrading package linux 5.1.14.arch1-1 to 5.1.15.arch1-1 paring of bluetooth device KLIPSCH KMC 1
http://images.klipsch.com/KMC_1_-_Spec_Sheet_635223699556466000.pdf
stopped working.
Downgrading linux back to 5.1.14.arch1-1 fixes the problem. I don't know anymore, but 5.1.15 changelog have a couple of commits regarding bluetooth; "Bluetooth: Fix regression with minimum encryption key size alignment" commit 693cd8ce3f882524a5d06f7800dd8492411877b3 upstream, and "Bluetooth: Align minimum encryption key size for LE and BR/EDR connections" commit d5bb334a8e171b262e48f378bd2096c0ea458265 upstream.
https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.1.15


Additional info:
* package version(s)
linux 5.1.15.arch1-1
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
This task depends upon

Closed by  Antonio Rojas (arojas)
Wednesday, 10 July 2019, 09:16 GMT
Reason for closing:  Fixed
Comment by Eivind (mokkurkalve) - Thursday, 27 June 2019, 11:48 GMT Comment by Eivind (mokkurkalve) - Monday, 01 July 2019, 12:28 GMT
There's a patch which fixes this problem now:
https://marc.info/?l=linux-bluetooth&m=156197961326737&w=2
I compiled linux 5.1.15.arch1-1 with this patch and I can confirm it fixed the problem I had, introduced in 5.1.15, with paring of bluetooth device KLIPSCH KMC 1.
Comment by André Fettouhi (A.Fettouhi) - Tuesday, 02 July 2019, 05:19 GMT
Can confirm this bug as well. Connecting my AKG YT50BT headset to a Bluetooth 4.0 LE adapter with a broadcom chipset fails on 5.1.15 but works when downgrading to 5.1.14. Just to clarify pairing works on both kernels it is the connecting part that fails on 5.1.15.
Comment by Eivind (mokkurkalve) - Tuesday, 02 July 2019, 08:13 GMT
I'll might be confusing pairing and connecting. But anyway, the patch on the kernel.org bugzilla fixes the issue. Let's hope it makes it into 5.1.16.
Comment by Ashwin Vishnu (jadelord) - Tuesday, 02 July 2019, 13:35 GMT
I am using the linux-lts 4.19.56-1 kernel and I have a similar problem.

EDIT: Downgraded entire system to using the mirror

Server=https://archive.archlinux.org/repos/2019/06/25/$repo/os/$arch

Now I have linux-lts 4.19.55-2 and linux 5.1.14.arch1-1 and it seems to work atleast with the linux-lts kernel. It should probably also work with linux, but I haven't checked it.
Comment by loqs (loqs) - Tuesday, 02 July 2019, 14:16 GMT
@Eivind it can not go into 5.1.16 or any stable tree until after it is accepted into Linus's tree (linux-mainline) which it currently is not.
Commit should show up on [1] then [2]

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/log/net/bluetooth/l2cap_core.c
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/
Comment by Eivind (mokkurkalve) - Tuesday, 02 July 2019, 14:58 GMT
That's right. But right now it's been "forwarded to Linus":
https://marc.info/?l=linux-bluetooth&m=156207814920322&w=2
So, maybe.
Comment by Eivind (mokkurkalve) - Wednesday, 03 July 2019, 12:18 GMT Comment by loqs (loqs) - Wednesday, 03 July 2019, 12:26 GMT Comment by truongan phamnguyen (truongan) - Wednesday, 03 July 2019, 12:28 GMT
Are there chances this patch can get merged into Arch's package. I saw that kernel 5.1.16 was out today but seemed like this patch didn't make it intime. This bug has been tormented me in last few weeks.
Comment by Eivind (mokkurkalve) - Wednesday, 03 July 2019, 17:41 GMT
@truongan: Maybe the Arch devs will do this? But I guess it's rather more likely you'll have to wait for 5.1.17, or do what I did; patch and build yourself. Something like:
asp checkout linux
makepkg -o
patch -p1 < fix.patch
makepkg -e
pacman -U linux-5.1.15.arch1-1-x86_64.pkg.tar.xz
Comment by truongan phamnguyen (truongan) - Wednesday, 03 July 2019, 17:58 GMT
Let's hope that the arch dev in charge of packaging linux kernel use bluetooth heaphone too.
Comment by loqs (loqs) - Wednesday, 03 July 2019, 21:50 GMT Comment by Eivind (mokkurkalve) - Wednesday, 03 July 2019, 22:44 GMT
I installed 5.1.16.arch1-1 from testing. The issue is fixed. Music is playing and no problems. Thanks!

Loading...