LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Bluetooth adaptor fails to come up (https://www.linuxquestions.org/questions/linux-hardware-18/bluetooth-adaptor-fails-to-come-up-4175636383/)

RandomTroll 08-14-2018 05:35 PM

Bluetooth adaptor fails to come up
 
Code:

hciconfig -a
returns:

Quote:

hci0: Type: Primary Bus: USB
BD Address: 00:1F:81:00:02:50 ACL MTU: 1021:4 SCO MTU: 180:1
DOWN
RX bytes:322 acl:0 sco:0 events:7 errors:0
TX bytes:21 acl:0 sco:0 commands:19 errors:12
Features: 0xff 0x3e 0x0d 0x76 0x80 0x01 0x00 0x80
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy:
Link mode: SLAVE ACCEPT
Code:

hciconfig hci0 up
returns:
Quote:

Can't init device hci0: Connection timed out (110)
Unplugging then plugging back in, unloading then reloading the modules,
Code:

rc.bluetooth restart
makes no difference. Any guesses?

It's not blocked by rfkill. hcidump detects no activity.

I just noticed that 0 in regular and 'code'd text has a dot in its middle, but not in 'quote'd text on this forum.

Pedroski 08-14-2018 08:16 PM

also no bluetooth adaptor
 
1 Attachment(s)
Hope you don't mind, but I'm having much the same problem, so I'd like to put it here in this thread

A sad story: home from holiday in Spain, I want to send some photos from my mobile to this laptop. Worked before the holiday. Bluetooth won't switch on on the laptop.

I followed these instructions, which worked for me previously:

Quote:

1. Start the bluetooth daemon

Go to your terminal and type :
sudo /etc/init.d/bluetooth start

2. Reinstall packages

If this doesn't work, go to your terminal and type :
sudo apt-get purge blueman bluez-utils bluez bluetooth
sudo apt-get install blueman bluez-utils bluez bluetooth

Then run :
sudo /etc/init.d/bluetooth start
Purging bluetooth had a strange effect: System Settings was lost! The Ubu 16.05 install was broken, though still running

I decided to upgrade to 18.04 from the software manager. Took a while, but it got there.

Seems now, the reason bluetooth will not start is because there is no bluetooth adaptor (see screenshot). Maybe it broke while I was on holiday, but the the laptop was unplugged and off.

Is there any way to get the bluetooth adaptor going again?

RandomTroll 08-14-2018 08:27 PM

Hmmm... we updated at the same time. I found my other Bluetooth adaptor, which comes up at least. I chalked up the failure I report in this message to bad hardware.

I had to load the bluetooth modules explicitly. If yours are modular you can check whether they are loaded. I have to run
Code:

modprobe bluetooth
    modprobe bnep
    modprobe hidp
    modprobe rfcomm

You can also check
Code:

rfkill list
for a block.

Pedroski 08-14-2018 10:50 PM

Should modprobe throw up something??

Quote:

pedro@pedro-school2:~$ modprobe bluetooth
pedro@pedro-school2:~$ rfkill list
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no

RandomTroll 08-15-2018 07:33 AM

Quote:

Originally Posted by Pedroski (Post 5891846)
Should modprobe throw up something??

No.
Code:

lsmod
should list these modules if Bluetooth is enabled. Running
Code:

modprobe
on them again can't hurt. I've added those commands to /etc/rc.d/rc.bluetooth's start.

That
Code:

rfkill list
reports that Bluetooth is unblocked tells us that Bluetooth is loaded and unblocked. Run
Code:

hcidump
in another terminal then try to connect: that will report what's happening.

Pedroski 08-15-2018 07:10 PM

lsmod throws up a lot, including: bluetooth 548864 13 btrtl,btintel,bnep,btbcm,ath3k,btusb

Couldn't run hcidump, it wanted me to use snap to install bluez, but when I did that, even the bluetooth icon I had disappeared, so I undid that.

As for bluez-hcidump:

Quote:

pedro@pedro-school2:~$ hcidump

Command 'hcidump' not found, but can be installed with:

sudo snap install bluez # version 5.47-3, or
sudo apt install bluez-hcidump

See 'snap info bluez' for additional versions.

pedro@pedro-school2:~$ sudo snap install bluez-hcidump
[sudo] password for pedro:
error: snap "bluez-hcidump" not found

I'm going to buy a bluetooth dongle, see it that works!

RandomTroll 08-15-2018 07:49 PM

Quote:

Originally Posted by Pedroski (Post 5892146)
lsmod throws up a lot, including: bluetooth 548864 13 btrtl,btintel,bnep,btbcm,ath3k,btusb

We already found out that Bluetooth was loaded from the
Code:

rfkill list
return

Quote:

Originally Posted by Pedroski (Post 5892146)
Couldn't run hcidump, it wanted me to use snap to install bluez, but when I did that, even the bluetooth icon I had disappeared, so I undid that.

? The bluez package is the Bluetooth stack for Linux - you had to have it installed already. hcidump is in bluez. What does
Code:

whereis hcidump
return?
Code:

man hcidump
?

Quote:

Originally Posted by Pedroski (Post 5892146)
As for bluez-hcidump

No such thing.

Quote:

Originally Posted by Pedroski (Post 5892146)
I'm going to buy a bluetooth dongle, see it that works!

Seems premature, but you can get 1 cheap.

Pedroski 08-15-2018 08:38 PM

hcidump aint nowhere!


Quote:

pedro@pedro-school2:~$ whereis hcidump
hcidump:
pedro@pedro-school2:~$

RandomTroll 08-16-2018 06:40 AM

Quote:

Originally Posted by Pedroski (Post 5892170)
hcidump aint nowhere!

If I didn't have the package that includes hcidump installed I wouldn't have Bluetooth support.

Pedroski 08-16-2018 06:03 PM

This is from my newer laptop, running Ubu 16.05. Bluetooth works fine on this laptop, as it did on my other laptop before my holiday!

Quote:

pedro@pedro-dodgySSD:~$ hcidump
The program 'hcidump' is currently not installed. You can install it by typing:
sudo apt install bluez-hcidump
pedro@pedro-dodgySSD:~$

RandomTroll 08-16-2018 09:17 PM

Your distribution does it differently. Sorry. I suspect bluez-hcidump will work the same.

Pedroski 08-16-2018 10:56 PM

Got this, says I have bluetooth 4.0

Quote:

pedro@pedro-school2:~$ lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 0c45:64e0 Microdia
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 0cf3:3004 Atheros Communications, Inc. AR3012 Bluetooth 4.0
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
pedro@pedro-school2:~$

Pedroski 08-16-2018 10:57 PM

And this:

Quote:

pedro@pedro-school2:~$ dmesg | grep Bluetooth
[ 3.221457] usb 4-3: Product: Bluetooth USB Host Controller
[ 20.766777] Bluetooth: Core ver 2.22
[ 20.766831] Bluetooth: HCI device and connection manager initialized
[ 20.766841] Bluetooth: HCI socket layer initialized
[ 20.766846] Bluetooth: L2CAP socket layer initialized
[ 20.766860] Bluetooth: SCO socket layer initialized
[ 20.962597] Bluetooth: hci0: don't support firmware rome 0x1020200
[ 37.831536] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 37.831544] Bluetooth: BNEP filters: protocol multicast
[ 37.831559] Bluetooth: BNEP socket layer initialized
pedro@pedro-school2:~$

ondoho 08-17-2018 01:38 AM

are you perchance trying to connect with the device mentioned here?

Pedroski 08-17-2018 02:33 AM

no,

Quote:

Bus 004 Device 002: ID 0cf3:3004 Atheros Communications, Inc. AR3012 Bluetooth 4.0
AND: it worked about a month ago, before my holiday. Something in an update rocked the boat. However, I did the same updates on the newer laptop and it still works.

It's a mystery! Someday, some update will make it work again!


All times are GMT -5. The time now is 07:54 AM.