[Dell Inspiron 3137] Atheros Bluetooth [0cf3:0036] does not work on this system

Bug #1316921 reported by Po-Hsu Lin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Triaged
Medium
Adam Lee
Nominated for Trusty by Adam Lee
Nominated for Utopic by Adam Lee
Nominated for Vivid by Adam Lee

Bug Description

CID: 201307-13940 Dell Inspiron 3137

The Bluetooth controller, Atheros AR3011 [0cf3:0036], is not working on this system.
(According to bug 1288180 and bug 1219660, this device should work in 12.04.4)

Steps:
1. Install 12.04.4 + update (3.11.0-20), boot to desktop
2. Try to pair with any device

Expected result:
* Bluetooth applet available and working normally.

Actual result:
* The Bluetooth applet is not there, just like there is no such device on this system.
* You could see this device in lsusb, but few minutes later, it will disappear.

Cause:
ath3k's firmware loading function works badly with xHCI.

Debugging information:
ubuntu@201307-13940:~$ dmesg | grep -i blue
[ 7.207764] Bluetooth: Core ver 2.16
[ 7.207792] Bluetooth: HCI device and connection manager initialized
[ 7.207802] Bluetooth: HCI socket layer initialized
[ 7.207804] Bluetooth: L2CAP socket layer initialized
[ 7.207810] Bluetooth: SCO socket layer initialized
[ 10.821070] Bluetooth: Error in firmware loading err = -110,len = 448, size = 4096
[ 10.821127] Bluetooth: Loading patch file failed
[ 14.449564] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 14.449568] Bluetooth: BNEP filters: protocol multicast
[ 14.449579] Bluetooth: BNEP socket layer initialized
[ 14.539419] Bluetooth: RFCOMM TTY layer initialized
[ 14.539435] Bluetooth: RFCOMM socket layer initialized
[ 14.539437] Bluetooth: RFCOMM ver 1.11

ubuntu@201307-13940:~$ lsusb
Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 002: ID 0c45:6703 Microdia
Bus 002 Device 000: ID 0cf3:0036 Atheros Communications, Inc.
Bus 002 Device 004: ID 04f3:016c Elan Microelectronics Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Some error message for usb controller / xhci_hcd after boot could be found in dmesg report.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: linux-image-3.11.0-20-generic 3.11.0-20.35~precise1
ProcVersionSignature: Ubuntu 3.11.0-20.35~precise1-generic 3.11.10.6
Uname: Linux 3.11.0-20-generic x86_64
AlsaVersion: Advanced Linux Sound Architecture Driver Version k3.11.0-20-generic.
ApportVersion: 2.0.1-0ubuntu17.6
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 1: PCH [HDA Intel PCH], device 0: ALC283 Analog [ALC283 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: ubuntu 1721 F.... pulseaudio
 /dev/snd/controlC1: ubuntu 1721 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'MID'/'HDA Intel MID at 0xf0610000 irq 62'
   Mixer name : 'Intel Haswell HDMI'
   Components : 'HDA:80862807,80860101,00100000'
   Controls : 21
   Simple ctrls : 3
Card1.Amixer.info:
 Card hw:1 'PCH'/'HDA Intel PCH at 0xf0614000 irq 61'
   Mixer name : 'Realtek ALC283'
   Components : 'HDA:10ec0283,10280613,00100002'
   Controls : 24
   Simple ctrls : 12
Date: Wed May 7 01:38:10 2014
HibernationDevice: RESUME=UUID=2f225f68-a5b9-49c3-bf87-2e9505439199
InstallationMedia: Ubuntu 12.04.4 LTS "Precise Pangolin" - Release amd64 (20140204)
Lsusb:
 Bus 001 Device 002: ID 8087:8000 Intel Corp.
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
MachineType: Dell Inc. Inspiron 3137
MarkForUpload: True
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.11.0-20-generic.efi.signed root=UUID=b5130251-a222-431e-bc5f-1a30ce6f26a8 ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-3.11.0-20-generic N/A
 linux-backports-modules-3.11.0-20-generic N/A
 linux-firmware 1.79.12
RfKill:
 0: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: no
SourcePackage: linux-lts-saucy
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 09/13/2013
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A02
dmi.board.name: BNE3C2
dmi.board.vendor: Dell Inc.
dmi.board.version: X01
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.chassis.version: 0.1
dmi.modalias: dmi:bvnDellInc.:bvrA02:bd09/13/2013:svnDellInc.:pnInspiron3137:pvr:rvnDellInc.:rnBNE3C2:rvrX01:cvnDellInc.:ct8:cvr0.1:
dmi.product.name: Inspiron 3137
dmi.sys.vendor: Dell Inc.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Here is an external bug report, which indicates that this issue was fixed after upgarde the BIOS
https://bugzilla.kernel.org/show_bug.cgi?id=67991

I will give it a try later.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

After bios upgraded from A02 to A05, this issue still exist

ubuntu@201307-13940:~$ lsusb
Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 003: ID 0c45:6703 Microdia
Bus 002 Device 004: ID 0cf3:0036 Atheros Communications, Inc.
Bus 002 Device 005: ID 04f3:016c Elan Microelectronics Corp.
Bus 003 Device 002: ID 125f:312b A-DATA Technology Co., Ltd.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

ubuntu@201307-13940:~$ lsusb -t
2-7:1.0: No such file or directory
2-7:1.1: No such file or directory
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
    |__ Port 2: Dev 2, If 0, Class=stor., Driver=usb-storage, 5000M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/8p, 480M
    |__ Port 5: Dev 3, If 0, Class='bInterfaceClass 0x0e not yet handled', Driver=uvcvideo, 480M
    |__ Port 5: Dev 3, If 1, Class='bInterfaceClass 0x0e not yet handled', Driver=uvcvideo, 480M
    |__ Port 7: Dev 4, If 0, Class='bInterfaceClass 0xe0 not yet handled', Driver=, 12M
    |__ Port 7: Dev 4, If 1, Class='bInterfaceClass 0xe0 not yet handled', Driver=, 12M
    |__ Port 8: Dev 5, If 0, Class=HID, Driver=usbhid, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/8p, 480M

Output from usb-devices:
T: Bus=02 Lev=01 Prnt=01 Port=06 Cnt=02 Dev#= 4 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=0cf3 ProdID=0036 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=(none)
I: If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=(none)

Changed in linux-lts-saucy (Ubuntu):
assignee: Anthony Wong (anthonywong) → Adam Lee (adam8157)
Revision history for this message
Adam Lee (adam8157) wrote :

Upstream bug mentioned in #2, that user was using a Dell inspiron 3437 laptop, and that laptop's BIOS changelog shows:

Enhancements - Enhance Bluetooth use experience

ref: http://www.dell.com/support/drivers/us/en/19/DriverDetails/Product/inspiron-14-3437?driverId=KC0JW&osCode=W864&fileId=3325826043&languageCode=en&categoryId=BI

Changed in linux-lts-saucy (Ubuntu):
status: New → In Progress
Revision history for this message
Adam Lee (adam8157) wrote :

@Po-Hsu,

Could you please provide output of command "dmesg" and "lsusb -t" on those bluetooth working dell system, like inspiron 3437, Inspiron 5437 or Latitude 3440? Thanks.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Output from 201307-13905 - Dell Latitude 3440

/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/9p, 480M
    |__ Port 2: Dev 2, If 0, Class=stor., Driver=usb-storage, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/8p, 480M
        |__ Port 5: Dev 3, If 0, Class='bInterfaceClass 0x0e not yet handled', Driver=uvcvideo, 480M
        |__ Port 5: Dev 3, If 1, Class='bInterfaceClass 0x0e not yet handled', Driver=uvcvideo, 480M
        |__ Port 6: Dev 5, If 0, Class='bInterfaceClass 0xe0 not yet handled', Driver=btusb, 12M
        |__ Port 6: Dev 5, If 1, Class='bInterfaceClass 0xe0 not yet handled', Driver=btusb, 12M

T: Bus=01 Lev=02 Prnt=02 Port=05 Cnt=03 Dev#= 5 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=0cf3 ProdID=0036 Rev=00.02
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

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Maybe it's the root_hub with xhci driver causing this issue?

Revision history for this message
Adam Lee (adam8157) wrote :

@Po-Hsu,

It's weird your output shows the btusb is being used...

1, please show me the output of "#modinfo btusb" on the working system 201307-13905 - Dell Latitude 3440

2, I built a testing kernel for Bug #1317453, looks like same issue, could you please take a test? http://kernel.ubuntu.com/~adamlee/lp1317453/

Thanks.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

modinfo information from 201307-13905

This system has been transferred to HWE this morning, I will give that kernel a try later.

Revision history for this message
Adam Lee (adam8157) wrote :

This issue's root cause is the ath3k bluetooth module(hardware or software) works badly with USB3, I'm looking into it. Also this kind of issue could be solved by BIOS.

Revision history for this message
Adam Lee (adam8157) wrote :

@Po-Hsu,

Do you have time to install Windows on this system? Check if the bluetooth module works after driver installed and what usb controller it connected with. Thanks.

Revision history for this message
Adam Lee (adam8157) wrote :

@Po-Hsu,

Please ignore #11 if you haven't started yet, but to check this kernel http://kernel.ubuntu.com/~adamlee/lp1316921/, thanks

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Hello Adam,

The kernel you provided in #12 works!

Steps:
1. Install 12.04.4 + kernel from http://kernel.ubuntu.com/~adamlee/lp1316921/
2. Try to pair with a Bluetooth headset

Actual result:
* Bluetooth headset works as expected in both HSP/HFP and A2DP mode

Thanks!

Revision history for this message
Adam Lee (adam8157) wrote :

@Po-Hsu,

I have received some reports that kernel in #12 actually doesn't work, when you have time please test three or more times to confirm, thanks.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Sure, will test it again

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Hi Adam,
It seems that the kernel in #12 is not stable, sometimes it works, but after rebooting the system, it's not working again.
(not working times > working times)

Revision history for this message
Adam Lee (adam8157) wrote :

lts-saucy is eol(for committing), moving to trusty which is OK for certification.

no longer affects: linux-lts-saucy (Ubuntu)
Changed in linux (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Adam Lee (adam8157)
summary: [Dell Inspiron 3137] Atheros Bluetooth [0cf3:0036] does not work on this
- system (Error in firmware loading)
+ system
description: updated
Revision history for this message
Adam Lee (adam8157) wrote :

Our team is working on this bug with vendor, waiting new information.

Changed in linux (Ubuntu):
status: In Progress → Triaged
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.