Bluetooth 04ca:3018 not working correctly

Bug #1653843 reported by david
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Medium
Pilot6

Bug Description

The bluetooth device is unable to discover any devices and when visible it cannot be discovered by any device.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-4.4.0-57-generic 4.4.0-57.78
ProcVersionSignature: Ubuntu 4.4.0-57.78-generic 4.4.35
Uname: Linux 4.4.0-57-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.4
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/pcmC0D0p: david 3259 F...m pulseaudio
 /dev/snd/controlC0: david 3259 F.... pulseaudio
CurrentDesktop: Unity
Date: Wed Jan 4 03:07:28 2017
HibernationDevice: RESUME=UUID=53d59b56-5824-4ede-8752-62ef2e227c18
InstallationDate: Installed on 2016-12-22 (12 days ago)
InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
MachineType: ASUSTeK COMPUTER INC. X556UAK
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-57-generic.efi.signed root=UUID=5eed2705-b031-466b-8c03-d40f6ccfc133 ro quiet splash
RelatedPackageVersions:
 linux-restricted-modules-4.4.0-57-generic N/A
 linux-backports-modules-4.4.0-57-generic N/A
 linux-firmware 1.157.6
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 09/05/2016
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: X556UAK.302
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: X556UAK
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: 1.0
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK COMPUTER INC.
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrX556UAK.302:bd09/05/2016:svnASUSTeKCOMPUTERINC.:pnX556UAK:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnX556UAK:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0:
dmi.product.name: X556UAK
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK COMPUTER INC.

Revision history for this message
david (david-k42f) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Pilot6 (hanipouspilot)
Changed in linux (Ubuntu):
assignee: nobody → Pilot6 (hanipouspilot)
Pilot6 (hanipouspilot)
summary: - Bluetooth not working correctly
+ Bluetooth 04ca:3018 not working correctly
Revision history for this message
Pilot6 (hanipouspilot) wrote :

Run in a terminal (the module will appear in 15-30 minutes.

wget https://launchpad.net/~hanipouspilot/+archive/ubuntu/bluetooth/+files/btusb-lp1653843-dkms_0.1_all.deb

sudo dpkg -i btusb-lp1653843-dkms_0.1_all.deb

Then turn the computer off, then turn it on. The BT device should be working.
If it does not work, post the output of

dmesg | grep -i blue

Revision history for this message
david (david-k42f) wrote :

Hello , thank you for the effort.

I'm sorry but it didn't work, now the bluetooth appears as disabled.

As you requested here is the output you asked for:

dmesg | grep -i blue
[ 3.287544] Bluetooth: Core ver 2.21
[ 3.287559] Bluetooth: HCI device and connection manager initialized
[ 3.287562] Bluetooth: HCI socket layer initialized
[ 3.287565] Bluetooth: L2CAP socket layer initialized
[ 3.287570] Bluetooth: SCO socket layer initialized
[ 3.293584] Bluetooth: HCI UART driver ver 2.3
[ 3.293586] Bluetooth: HCI UART protocol H4 registered
[ 3.293588] Bluetooth: HCI UART protocol BCSP registered
[ 3.293589] Bluetooth: HCI UART protocol LL registered
[ 3.293590] Bluetooth: HCI UART protocol ATH3K registered
[ 3.293591] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 3.293618] Bluetooth: HCI UART protocol Intel registered
[ 3.293631] Bluetooth: HCI UART protocol BCM registered
[ 3.293632] Bluetooth: HCI UART protocol QCA registered
[ 5.076376] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 5.076379] Bluetooth: BNEP filters: protocol multicast
[ 5.076383] Bluetooth: BNEP socket layer initialized

Revision history for this message
Pilot6 (hanipouspilot) wrote :

You need to disable Secure Boot in BIOS. It looks like the module did not install.

Revision history for this message
Pilot6 (hanipouspilot) wrote :

I made a typo in the source code. It was late at night. I am building another version.

Revision history for this message
Pilot6 (hanipouspilot) wrote :
Revision history for this message
david (david-k42f) wrote :

This new module seems to have fully solved the problem.
I was able to detect , pair and connect to an iphone through bluetooth , I was unable though to pair from the iphone to the laptop all though the laptop was visible, I need to test further with another phone , maybe that iphone was somewhat faulty. Anyway the new module seems to have solved the problem fully, I'll update further when I'm able to pair to the laptop from another device. Thank you for your efforts. Will this fix will be inputed in the newest kernel, meaning that next versions of ubuntu won't have this problem?

Revision history for this message
ramas (slocascio) wrote :

Ehi Pilot6, I have the same hardware and problem; I tried your second module and it works as a charm regarding discovery (before, the list was always empty!) and is really fast on connecting with my bt mouse.

I am still unable to get it working with a brand new bt headset I got today: it works with my android device, but with your module it get detected without problems, it get paired but the connection fails, here it is a brief bluetoothctl session:

[bluetooth]# pair B6:1A:DF:0A:45:4B
Attempting to pair with B6:1A:DF:0A:45:4B
[CHG] Device B6:1A:DF:0A:45:4B Connected: yes
[CHG] Device B6:1A:DF:0A:45:4B UUIDs: 00001108-0000-1000-8000-00805f9b34fb
[CHG] Device B6:1A:DF:0A:45:4B UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
[CHG] Device B6:1A:DF:0A:45:4B UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Device B6:1A:DF:0A:45:4B UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device B6:1A:DF:0A:45:4B UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
[CHG] Device B6:1A:DF:0A:45:4B Paired: yes
Pairing successful

<5 seconds pause...>

[CHG] Device B6:1A:DF:0A:45:4B Connected: no
[bluetooth]# connect B6:1A:DF:0A:45:4B
Attempting to connect to B6:1A:DF:0A:45:4B
Failed to connect: org.bluez.Error.Failed

are there other logs I can examine to see what is going on in this case?

Many thanks for your work!

Revision history for this message
Pilot6 (hanipouspilot) wrote :

I will send a patch upstream and it should get into Ubuntu stable kenels after a while.

The headset problem must be related to some user space issue. I do not use BT sound, so I can't help. Anyway this issue looks to be solved. You can search bluez bug reports, or create a new one. But in most cases it is being solved by some sound settings.

Changed in linux (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
ramas (slocascio) wrote :

Pilot6, awesome, the headset one was a problem with PulseAudio, solved here: http://askubuntu.com/questions/366032/pulseaudio-not-detecting-bluetooth-headset-automatically

for me this issue is solved, many thanks!

Revision history for this message
Pilot6 (hanipouspilot) wrote : [PATCH] Bluetooth: Add another AR3012 04ca:3018 device

T: Bus=01 Lev=01 Prnt=01 Port=07 Cnt=04 Dev#= 5 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=04ca ProdID=3018 Rev=00.01
C: #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
I: If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb

Signed-off-by: Dmitry Tunin <email address hidden>
Cc: <email address hidden>
---
 drivers/bluetooth/ath3k.c | 2 ++
 drivers/bluetooth/btusb.c | 1 +
 2 files changed, 3 insertions(+)

diff --git a/drivers/bluetooth/ath3k.c b/drivers/bluetooth/ath3k.c
index fadba88..b793853 100644
--- a/drivers/bluetooth/ath3k.c
+++ b/drivers/bluetooth/ath3k.c
@@ -94,6 +94,7 @@ static const struct usb_device_id ath3k_table[] = {
  { USB_DEVICE(0x04CA, 0x300f) },
  { USB_DEVICE(0x04CA, 0x3010) },
  { USB_DEVICE(0x04CA, 0x3014) },
+ { USB_DEVICE(0x04CA, 0x3018) },
  { USB_DEVICE(0x0930, 0x0219) },
  { USB_DEVICE(0x0930, 0x021c) },
  { USB_DEVICE(0x0930, 0x0220) },
@@ -162,6 +163,7 @@ static const struct usb_device_id ath3k_blist_tbl[] = {
  { USB_DEVICE(0x04ca, 0x300f), .driver_info = BTUSB_ATH3012 },
  { USB_DEVICE(0x04ca, 0x3010), .driver_info = BTUSB_ATH3012 },
  { USB_DEVICE(0x04ca, 0x3014), .driver_info = BTUSB_ATH3012 },
+ { USB_DEVICE(0x04ca, 0x3018), .driver_info = BTUSB_ATH3012 },
  { USB_DEVICE(0x0930, 0x0219), .driver_info = BTUSB_ATH3012 },
  { USB_DEVICE(0x0930, 0x021c), .driver_info = BTUSB_ATH3012 },
  { USB_DEVICE(0x0930, 0x0220), .driver_info = BTUSB_ATH3012 },
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index 2f633df..dd220fa 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -209,6 +209,7 @@ static const struct usb_device_id blacklist_table[] = {
  { USB_DEVICE(0x04ca, 0x300f), .driver_info = BTUSB_ATH3012 },
  { USB_DEVICE(0x04ca, 0x3010), .driver_info = BTUSB_ATH3012 },
  { USB_DEVICE(0x04ca, 0x3014), .driver_info = BTUSB_ATH3012 },
+ { USB_DEVICE(0x04ca, 0x3018), .driver_info = BTUSB_ATH3012 },
  { USB_DEVICE(0x0930, 0x0219), .driver_info = BTUSB_ATH3012 },
  { USB_DEVICE(0x0930, 0x021c), .driver_info = BTUSB_ATH3012 },
  { USB_DEVICE(0x0930, 0x0220), .driver_info = BTUSB_ATH3012 },
--
2.7.4

Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Marcel Holtmann (holtmann) wrote :

Hi Dmitry,

> T: Bus=01 Lev=01 Prnt=01 Port=07 Cnt=04 Dev#= 5 Spd=12 MxCh= 0
> D: Ver= 1.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1
> P: Vendor=04ca ProdID=3018 Rev=00.01
> C: #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=100mA
> I: If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
> I: If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
>
> Signed-off-by: Dmitry Tunin <email address hidden>
> Cc: <email address hidden>
> ---
> drivers/bluetooth/ath3k.c | 2 ++
> drivers/bluetooth/btusb.c | 1 +
> 2 files changed, 3 insertions(+)

patch has been applied to bluetooth-next tree.

Regards

Marcel

Revision history for this message
Matteo Lucca (luccamatteo) wrote :

Hello Pilot6,

after using

wget https://launchpad.net/~hanipouspilot/+archive/ubuntu/bluetooth/+files/btusb-lp1653843-dkms_0.2_all.deb
sudo dpkg -i btusb-lp1653843-dkms_0.2_all.deb

I get the output

ERROR (dkms apport): unable to determine source package for btusb-lp1653843-dkms
Error! Bad return status for module build on kernel: 4.10.0-32-generic (x86_64)
Consult /var/lib/dkms/btusb-lp1653843/0.2/build/make.log for more information.

do you know how to solve the problem?

Thanks

Revision history for this message
Pilot6 (hanipouspilot) wrote :

@Matteo,

This module has been built for the 4.4 kernel. It is not compatible with the 4.10 one.

And you don't need it, because the patch is already there. It is in Ubuntu kernel 4.10.0-32

So remove this package.

Changed in linux (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Pilot6 (hanipouspilot) wrote :
Revision history for this message
Pilot6 (hanipouspilot) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.