Bluetooth does not connect to device(s)

Asked by ToineM on 2015-01-17

With my Dell inspirion laptop i noticed some strange behaviour:

When i turn on my laptop and start ubuntu 14.04 (also experienced this with 12.04 and previous versions)
My Bluetooth never could connect to any device.

But when i first turn on my laptop in windows 7 (i have a dualboot)
then close Windows 7 and restart (not shut off) but restart in Ubuntu 12.04 or 14.04 my bluetooth adapter works fine..
When i then again shut off and turn back on my laptop the problem persists...

I don’t know how i can, or should report this awkward problem to the Ubuntu community. Can you do this for me please?

Many thanks,
Toine
Netherlands

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-bluetooth Edit question
Assignee:
No assignee Edit question
Solved by:
ToineM
Solved:
2015-04-02
Last query:
2015-04-02
Last reply:
2015-04-02

I suggest you report a bug. Sounds like a firmware issue.

Jeremy (wa113y3s) said : #2

What bluetooth device is installed on your system? The results from the following commands in terminal would be helpful
lspci -nnk | grep -iA2 net
lsusb
rfkill list all

ToineM (toinemeijvis-msn) said : #3

Hi, Jeremy,

t@t-Inspiron-3521:~$ lspci -nnk | grep -iA2 net
01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10ec:8136] (rev 05)
 Subsystem: Dell Device [1028:0597]
 Kernel driver in use: r8169
02:00.0 Network controller [0280]: Broadcom Corporation BCM43142 802.11b/g/n [14e4:4365] (rev 01)
 Subsystem: Dell Wireless 1704 802.11n + BT 4.0 [1028:0016]
 Kernel driver in use: wl

t@t-Inspiron-3521:~$ lsusb
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 0c45:649a Microdia
Bus 001 Device 004: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 003: ID 0a5c:21d7 Broadcom Corp. BCM43142 Bluetooth 4.0
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

t@t-Inspiron-3521:~$ rfkill list all
0: phy0: Wireless LAN
 Soft blocked: no
 Hard blocked: no
1: brcmwl-0: Wireless LAN
 Soft blocked: no
 Hard blocked: no
3: hci0: Bluetooth
 Soft blocked: no
 Hard blocked: no
The problem only occurs with the Bluetooth module, wireless lan always works.

ToineM (toinemeijvis-msn) said : #4

This is also part of the problem (at the bottom:)

nspiron-3521:/usr/share/doc/bluez/examples$ dmesg|tail
[ 87.518217] cfg80211: Disabling freq 6060 MHz
[ 87.518219] cfg80211: Disabling freq 6080 MHz
[ 87.518225] cfg80211: Regulatory domain changed to country: NL
[ 87.518226] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 87.518229] cfg80211: (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[ 87.518231] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[ 87.518233] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[ 87.518235] cfg80211: (5490000 KHz - 5710000 KHz @ 40000 KHz), (N/A, 2700 mBm)
[ 88.317514] eth1: IPv6 duplicate address fe80::fa2f:a8ff:fecf:9607 detected!
[ 358.371671] [drm:gen6_sanitize_pm] *ERROR* Power management discrepancy: GEN6_RP_INTERRUPT_LIMITS expected 00070000, was 16000000

ToineM (toinemeijvis-msn) said : #6

Hello Jeremy,
Thanks again, for your time and effort helping me with this problem.

So far i successfully have been able to implement all the suggested code / and or instructions mentioned by you (http://ubuntuforums.org/showthread.php?t=2254661&p=13198718#post13198718), without getting any system errors. But it did not solve my problem. Still my BT adapter does not function. First starting windows closing it, starting ubuntu is still a workaround...

any way thanks for your support!
Toine
Netherlands

Jeremy (wa113y3s) said : #7

I see the source code for 12.04 now includes patchram support, so

wget https://www.dropbox.com/s/9ryy3ir1tby6wrf/fw-0a5c_21d7.hcd
sudo cp fw-0a5c_21d7 /lib/firmware/brcm
sudo cp fw-0a5c_21d7 /lib/firmware/brcm/BCM43142A0-0a5c-21d7.hcd

Reboot and see if it works

ToineM (toinemeijvis-msn) said : #8

Hi again Jeremy!
getting the file from dropbox works without an error. But by executing the command: sudo cp fw-0a5c_21d7 /lib/firmware/brcm
i get a message status unkown fw-0a5c_21d7 file or map not found.

But i am sure it is in t@t-Inspiron-3521:~$ (i can see the name of that file in this map)

Sorry that i am such a rooky at ubuntu... i am not used to use terminal commands
Thanks again for your patients! It is truly hartwarming getting help from a compleet stranger!
Toine

Jeremy (wa113y3s) said : #9

Should have been

sudo cp fw-0a5c_21d7.hcd /lib/firmware/brcm/
sudo cp fw-0a5c_21d7.hcd /lib/firmware/brcm/BCM43142A0-0a5c-21d7.hcd

Then reboot

ToineM (toinemeijvis-msn) said : #10

Sad to say it didn´t solve it.

Greetz and thanks for your time and effort!

Toine

Jeremy (wa113y3s) said : #11

What kernel do you have?

uname -a

ToineM (toinemeijvis-msn) said : #12

Kernel is: 3.13.0-48-generic

Jeremy (wa113y3s) said : #13

What does

dmesg | grep -i firmware

show?

ToineM (toinemeijvis-msn) said : #14

3521:~$ dmesg | grep -i firmware
[ 20.355409] usb 1-1.1: Direct firmware load failed with error -2
[ 20.551843] Bluetooth: can't load firmware, may not work correctly

Jeremy (wa113y3s) said : #15

Maybe this will work as it isn't saying what folder it is looking in
sudo cp fw-0a5c_21d7.hcd /lib/firmware/

ToineM (toinemeijvis-msn) said : #16

Jeremy,

You are awarded the ¨annual Harry Potter trophy¨ because of the outstanding piece of magic you performed on my laptop!

IT WORKED!

Thanks a lot for your kind help!
Toine

Jeremy (wa113y3s) said : #17

Great

Don't delete the ones from /lib/firmware/brcm/ as they are likely to be needed in a kernel update as that is where btusb looks for firmware in 3.16.0-32 and 3.13.0 will likely be updated to the same