[Solved] Identify, enable BT, pair with BT enabled Loudspkr

Getting your soundcard to work, using Debian on non-i386 hardware, etc

[Solved] Identify, enable BT, pair with BT enabled Loudspkr

Postby bkpsusmitaa » 2020-04-05 13:39

The details about my newer laptop is here.

What is the bluetooth device that I have?
I use 9.11.0 lxde. Installed most relevant BT packages.
The following code:
Code: Select all
# sudo service bluetooth status

yields:
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset
Active: active (running) since Sat 2020-04-04 14:17:41 IST; 1 day 5h ago
Docs: man:bluetoothd(8)
Main PID: 509 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 4915)
CGroup: /system.slice/bluetooth.service
└─509 /usr/lib/bluetooth/bluetoothd

Apr 04 14:17:39 RajibHP systemd[1]: Starting Bluetooth service...
Apr 04 14:17:41 RajibHP bluetoothd[509]: Bluetooth daemon 5.43
Apr 04 14:17:41 RajibHP systemd[1]: Started Bluetooth service.
Apr 04 14:17:41 RajibHP bluetoothd[509]: Starting SDP server
Apr 04 14:17:41 RajibHP bluetoothd[509]: Bluetooth management interface 1.14 ini
Apr 05 18:18:39 RajibHP bluetoothd[509]: Failed to obtain handles for "Service C
Apr 05 18:18:39 RajibHP bluetoothd[509]: Sap driver initialization failed.
Apr 05 18:18:39 RajibHP bluetoothd[509]: sap-server: Operation not permitted (1)
lines 1-18/18 (END)


I have read the Debian BT Wiki.

Searched all posts on BT, but didn't find anything relevant to my needs. The search parameter is here.

Of course, there is one post that asks to de-activate the Bluetooth card with a near-identical card number, here:
[SOLVED] boot message"firmware:failed to load brcm/BCM43142"
However, this deactivating bluetooth device card is not an option for me, as I like to use the BT device like I use it with my Android Smartphone.

Code: Select all
$ lspci -knn | grep Net -A2; lsusb
04:00.0 Network controller [0280]: Broadcom Limited BCM43142 802.11b/g/n [14e4:4365] (rev 01)
   Subsystem: Hewlett-Packard Company BCM43142 802.11b/g/n [103c:804a]
   Kernel driver in use: wl
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 04f2:b509 Chicony Electronics Co., Ltd
Bus 001 Device 003: ID 0a5c:216d Broadcom Corp. BCM43142A0 Bluetooth 4.0
Bus 001 Device 002: ID 03f0:0641 HP, Inc X1200 Optical Mouse
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


So, the Bluetooth card details is here:
Code: Select all
Bus 001 Device 003: ID 0a5c:216d Broadcom Corp. BCM43142A0 Bluetooth 4.0


Question is: Is this card compatible with Debian Stretch 9.11.0?

So this appears to be a firmware issue:
Searched with the string:
debian stretch 9.11.0 Broadcom Corp. BCM43142A0 Bluetooth 4.0


The answers thrown up are:
Code: Select all
bcm43xx - Debian Wikiwiki.debian.org › ...
Aug 24, 2017 - There are multiple drivers supporting Broadcom wireless LAN chips. ... Debian 9 "stretch" deb http://deb.debian.org/debian/ stretch main contrib ...
Missing: 9.11.0 ‎4.0

https://askubuntu.com/questions/1043171/broadcom-bcm43242a0-bluetooth-adapter-not-detected-in-ubuntu-18-04

https://askubuntu.com/questions/1071030/bcm43142a0-broadcom-bluetooth-doesnt-work-with-ubuntu-18-04


So, the solution seems to be (courtesy Taron Saribekyan):
Steps to fix:
Go to repo winterheart/broadcom-bt-firmware and download file BCM43142A0-0a5c-216c.hcd (according your Bluetooth chipset).
Move that file to /lib/firmware/brcm with name BCM.hcd
Turn off and turn on pc
P.S. This can work for other broadcom adapters as well, only need to get correct .hcd file: grep Bluetooth Device and ID with command lsusb | grep Bluetooth.


The output of my root terminal:
Code: Select all
$ lspci -knn | grep Net -A2; lsusb
04:00.0 Network controller [0280]: Broadcom Limited BCM43142 802.11b/g/n [14e4:4365] (rev 01)
   Subsystem: Hewlett-Packard Company BCM43142 802.11b/g/n [103c:804a]
   Kernel driver in use: wl
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 04f2:b509 Chicony Electronics Co., Ltd
Bus 001 Device 003: ID 0a5c:216d Broadcom Corp. BCM43142A0 Bluetooth 4.0
Bus 001 Device 002: ID 03f0:0641 HP, Inc X1200 Optical Mouse
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Code: Select all
$ lsusb | grep Bluetooth
Bus 001 Device 003: ID 0a5c:216d Broadcom Corp. BCM43142A0 Bluetooth 4.0


Code: Select all
sudo service bluetooth status

● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset
Active: active (running) since Sun 2020-06-21 18:33:28 IST; 1h 56min ago
Docs: man:bluetoothd(8)
Main PID: 532 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 4915)
CGroup: /system.slice/bluetooth.service
└─532 /usr/lib/bluetooth/bluetoothd

Jun 21 18:33:28 RajibHP systemd[1]: Starting Bluetooth service...
Jun 21 18:33:28 RajibHP bluetoothd[532]: Bluetooth daemon 5.43
Jun 21 18:33:28 RajibHP systemd[1]: Started Bluetooth service.
Jun 21 18:33:28 RajibHP bluetoothd[532]: Starting SDP server
Jun 21 18:33:29 RajibHP bluetoothd[532]: Bluetooth management interface 1.14 ini


My Bluetooth package Bluetooth Manager earlier worked without any result. The Bluetooth Devices window (launched by System Tray Bluetooth Icon and Devices ... Option) was active, but yielded no search results, even with other BT devices active in the surroundings.

Now the Bluetooth Devices window (launched by System Tray Bluetooth Icon and Devices ... Option) doesn't seem to work and has become deactivated. Therefore, something positive has happened, and the rest needs to be sorted out. Gradually, it shall be, with some help.

Yes, the solution to the Last Mile of the current issue was incredibly simple: Just had to rename the long name BCM43142A0-0a5c-216c.hcd to the shorter bcm.hcd, rebooted the system and the BT device works and pairs with other devices.

Viola!

Code: Select all
$ sudo service bluetooth status

● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset
Active: active (running) since Wed 2020-06-24 20:10:44 IST; 5h 2min left
Docs: man:bluetoothd(8)
Main PID: 378 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 4915)
CGroup: /system.slice/bluetooth.service
└─378 /usr/lib/bluetooth/bluetoothd

Jun 24 20:11:16 RajibHP bluetoothd[378]: Endpoint registered: sender=:1.38 path=
Jun 24 20:11:16 RajibHP bluetoothd[378]: Endpoint registered: sender=:1.38 path=
Jun 24 14:50:44 RajibHP bluetoothd[378]: /org/bluez/hci0/dev_01_01_01_01_01_51/f
Jun 24 14:50:55 RajibHP bluetoothd[378]: Suspend: Connection timed out (110)
Jun 24 14:50:56 RajibHP bluetoothd[378]: Transaction label doesn't match
Jun 24 14:51:34 RajibHP bluetoothd[378]: connect error: Host is down (112)
Jun 24 14:51:48 RajibHP bluetoothd[378]: /org/bluez/hci0/dev_01_01_01_01_01_51/f
Jun 24 14:51:59 RajibHP bluetoothd[378]: Suspend: Connection timed out (110)
Jun 24 14:52:01 RajibHP bluetoothd[378]: Abort: Connection timed out (110)
Jun 24 14:58:22 RajibHP bluetoothd[378]: /org/bluez/hci0/dev_01_01_01_01_01_51/f


Code: Select all
$ lspci -knn | grep Net -A2; lsusb

Code: Select all
04:00.0 Network controller [0280]: Broadcom Limited BCM43142 802.11b/g/n [14e4:4365] (rev 01)
   Subsystem: Hewlett-Packard Company BCM43142 802.11b/g/n [103c:804a]
   Kernel driver in use: wl
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 04f2:b509 Chicony Electronics Co., Ltd
Bus 001 Device 003: ID 0a5c:216d Broadcom Corp. BCM43142A0 Bluetooth 4.0
Bus 001 Device 002: ID 03f0:0641 HP, Inc X1200 Optical Mouse
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Thanks to the debian-user List where participants are more active. I shall post this information there too.
Freedom is impossible to conceive.
Books that help:
Dale Carnegie's How To Win Friends And Influence People and Emilie Post's Etiquette In Society, In Business, In Politics, And At Home
bkpsusmitaa
 
Posts: 377
Joined: 2009-07-04 06:32
Location: Home: Barrackpore and Mysore

ADDITIONAL CODES THAT MIGHT HELP ...

Postby bkpsusmitaa » 2020-06-24 10:19

Code: Select all
hwinfo --netcard --wlan --bluetooth | grep -Ei "model\:|driver\:|status\:|cmd\:|file\:|detected\:" | grep -v "Config Status"

My query is:
Why doesn't Bluetooth device display itself on the output of the above code?

Code: Select all
rfkill list all
Freedom is impossible to conceive.
Books that help:
Dale Carnegie's How To Win Friends And Influence People and Emilie Post's Etiquette In Society, In Business, In Politics, And At Home
bkpsusmitaa
 
Posts: 377
Joined: 2009-07-04 06:32
Location: Home: Barrackpore and Mysore


Return to Hardware

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable