You are not logged in.
I was trying to set up bluetooth on my SO's laptop but I had no luck: SO uses gnome DE and I only installed bluez and bluez-utils packages. As I was unable to use bluetoothctl in a way that I couln't see an agent I had to make priorities in systemctl services. Since laptop has Broadcom chipset I made sure bluetooth.service starts before NetworkManager.service That seemd to fix the issue with bluetoothctl:
[bluetooth]# show 3C:77:E6:FC:78:82
Controller 3C:77:E6:FC:78:82
Name: rozica
Alias: rozica
Class: 0x1c010c
Powered: yes
Discoverable: yes
Pairable: yes
UUID: Headset AG (00001112-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: OBEX File Transfer (00001106-0000-1000-8000-00805f9b34fb)
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: OBEX Object Push (00001105-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
UUID: IrMC Sync (00001104-0000-1000-8000-00805f9b34fb)
UUID: Audio Source (0000110a-0000-1000-8000-00805f9b34fb)
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
UUID: Vendor specific (00005005-0000-1000-8000-0002ee000001)
UUID: Message Notification Se.. (00001133-0000-1000-8000-00805f9b34fb)
UUID: Phonebook Access Server (0000112f-0000-1000-8000-00805f9b34fb)
UUID: Message Access Server (00001132-0000-1000-8000-00805f9b34fb)
Modalias: usb:v1D6Bp0246d052D
Discovering: no
[bluetooth]# scan on
Discovery started
[CHG] Controller 3C:77:E6:FC:78:82 Discovering: yes
systemctl status bluetooth:
● bluetooth.service - Bluetooth service
Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2017-06-20 23:33:44 CEST; 14h ago
Docs: man:bluetoothd(8)
Main PID: 254 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 4915)
CGroup: /system.slice/bluetooth.service
└─254 /usr/lib/bluetooth/bluetoothd
Jun 20 23:34:00 rozica bluetoothd[254]: RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
Jun 21 11:19:36 rozica bluetoothd[254]: Endpoint unregistered: sender=:1.46 path=/MediaEndpoint/A2DPSource
Jun 21 11:19:36 rozica bluetoothd[254]: Endpoint unregistered: sender=:1.46 path=/MediaEndpoint/A2DPSink
Jun 21 11:19:36 rozica bluetoothd[254]: Endpoint unregistered: sender=:1.71 path=/MediaEndpoint/A2DPSource
Jun 21 11:19:36 rozica bluetoothd[254]: Endpoint unregistered: sender=:1.71 path=/MediaEndpoint/A2DPSink
Jun 21 11:19:38 rozica bluetoothd[254]: RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
Jun 21 11:19:38 rozica bluetoothd[254]: Endpoint registered: sender=:1.71 path=/MediaEndpoint/A2DPSource
Jun 21 11:19:38 rozica bluetoothd[254]: Endpoint registered: sender=:1.71 path=/MediaEndpoint/A2DPSink
Jun 21 11:19:38 rozica bluetoothd[254]: Endpoint registered: sender=:1.46 path=/MediaEndpoint/A2DPSource
Jun 21 11:19:38 rozica bluetoothd[254]: Endpoint registered: sender=:1.46 path=/MediaEndpoint/A2DPSink
Don't know what "RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)" mean but I think I first need to make sure I can see any bluetooth devices and be descoverable.
I run journalctl -b | grep bluetooth and this is the output:
un 20 23:33:44 rozica kernel: bluetooth hci0: Direct firmware load for brcm/BCM.hcd failed with error -2
Jun 20 23:33:44 rozica bluetoothd[254]: Bluetooth daemon 5.45
Jun 20 23:33:44 rozica bluetoothd[254]: Starting SDP server
Jun 20 23:33:44 rozica bluetoothd[254]: Bluetooth management interface 1.14 initialized
Jun 20 23:33:46 rozica NetworkManager[250]: <info> [1497994426.2505] Loaded device plugin: NMBluezManager (/usr/lib/NetworkManager/libnm-device-plugin-bluetooth.so)
Jun 20 23:33:49 rozica bluetoothd[254]: Endpoint registered: sender=:1.46 path=/MediaEndpoint/A2DPSource
Jun 20 23:33:49 rozica bluetoothd[254]: Endpoint registered: sender=:1.46 path=/MediaEndpoint/A2DPSink
Jun 20 23:34:00 rozica bluetoothd[254]: Endpoint registered: sender=:1.71 path=/MediaEndpoint/A2DPSource
Jun 20 23:34:00 rozica bluetoothd[254]: Endpoint registered: sender=:1.71 path=/MediaEndpoint/A2DPSink
Jun 20 23:34:00 rozica bluetoothd[254]: RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
Jun 20 23:34:37 rozica sudo[1118]: rozica : TTY=pts/0 ; PWD=/home/rozica ; USER=root ; COMMAND=/usr/bin/bluetoothctl
Jun 21 11:19:36 rozica bluetoothd[254]: Endpoint unregistered: sender=:1.46 path=/MediaEndpoint/A2DPSource
Jun 21 11:19:36 rozica bluetoothd[254]: Endpoint unregistered: sender=:1.46 path=/MediaEndpoint/A2DPSink
Jun 21 11:19:36 rozica bluetoothd[254]: Endpoint unregistered: sender=:1.71 path=/MediaEndpoint/A2DPSource
Jun 21 11:19:36 rozica bluetoothd[254]: Endpoint unregistered: sender=:1.71 path=/MediaEndpoint/A2DPSink
Jun 21 11:19:36 rozica dbus[247]: [system] Rejected send message, 1 matched rules; type="error", sender=":1.71" (uid=1000 pid=691 comm="/usr/bin/pulseaudio --daemonize=no ") interface="(unset)" member="(unset)" error name="org.bluez.MediaEndpoint1.Error.NotImplemented" requested_reply="0" destination=":1.6" (uid=0 pid=254 comm="/usr/lib/bluetooth/bluetoothd ")
Jun 21 11:19:36 rozica dbus[247]: [system] Rejected send message, 1 matched rules; type="error", sender=":1.71" (uid=1000 pid=691 comm="/usr/bin/pulseaudio --daemonize=no ") interface="(unset)" member="(unset)" error name="org.bluez.MediaEndpoint1.Error.NotImplemented" requested_reply="0" destination=":1.6" (uid=0 pid=254 comm="/usr/lib/bluetooth/bluetoothd ")
Jun 21 11:19:36 rozica dbus[247]: [system] Rejected send message, 1 matched rules; type="error", sender=":1.71" (uid=1000 pid=691 comm="/usr/bin/pulseaudio --daemonize=no ") interface="(unset)" member="(unset)" error name="org.bluez.MediaEndpoint1.Error.NotImplemented" requested_reply="0" destination=":1.6" (uid=0 pid=254 comm="/usr/lib/bluetooth/bluetoothd ")
Jun 21 11:19:36 rozica dbus[247]: [system] Rejected send message, 1 matched rules; type="error", sender=":1.71" (uid=1000 pid=691 comm="/usr/bin/pulseaudio --daemonize=no ") interface="(unset)" member="(unset)" error name="org.bluez.MediaEndpoint1.Error.NotImplemented" requested_reply="0" destination=":1.6" (uid=0 pid=254 comm="/usr/lib/bluetooth/bluetoothd ")
Jun 21 11:19:36 rozica dbus[247]: [system] Rejected send message, 1 matched rules; type="error", sender=":1.46" (uid=120 pid=385 comm="/usr/bin/pulseaudio --daemonize=no ") interface="(unset)" member="(unset)" error name="org.bluez.MediaEndpoint1.Error.NotImplemented" requested_reply="0" destination=":1.6" (uid=0 pid=254 comm="/usr/lib/bluetooth/bluetoothd ")
Jun 21 11:19:36 rozica dbus[247]: [system] Rejected send message, 1 matched rules; type="error", sender=":1.46" (uid=120 pid=385 comm="/usr/bin/pulseaudio --daemonize=no ") interface="(unset)" member="(unset)" error name="org.bluez.MediaEndpoint1.Error.NotImplemented" requested_reply="0" destination=":1.6" (uid=0 pid=254 comm="/usr/lib/bluetooth/bluetoothd ")
Jun 21 11:19:36 rozica dbus[247]: [system] Rejected send message, 1 matched rules; type="error", sender=":1.46" (uid=120 pid=385 comm="/usr/bin/pulseaudio --daemonize=no ") interface="(unset)" member="(unset)" error name="org.bluez.MediaEndpoint1.Error.NotImplemented" requested_reply="0" destination=":1.6" (uid=0 pid=254 comm="/usr/lib/bluetooth/bluetoothd ")
Jun 21 11:19:36 rozica dbus[247]: [system] Rejected send message, 1 matched rules; type="error", sender=":1.46" (uid=120 pid=385 comm="/usr/bin/pulseaudio --daemonize=no ") interface="(unset)" member="(unset)" error name="org.bluez.MediaEndpoint1.Error.NotImplemented" requested_reply="0" destination=":1.6" (uid=0 pid=254 comm="/usr/lib/bluetooth/bluetoothd ")
Jun 21 11:19:36 rozica systemd[1]: bluetooth.target: Unit not needed anymore. Stopping.
Jun 21 11:19:36 rozica kernel: bluetooth hci0: Direct firmware load for brcm/BCM.hcd failed with error -2
Jun 21 11:19:38 rozica bluetoothd[254]: RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
Jun 21 11:19:38 rozica bluetoothd[254]: Endpoint registered: sender=:1.71 path=/MediaEndpoint/A2DPSource
Jun 21 11:19:38 rozica bluetoothd[254]: Endpoint registered: sender=:1.71 path=/MediaEndpoint/A2DPSink
Jun 21 11:19:38 rozica bluetoothd[254]: Endpoint registered: sender=:1.46 path=/MediaEndpoint/A2DPSource
Jun 21 11:19:38 rozica bluetoothd[254]: Endpoint registered: sender=:1.46 path=/MediaEndpoint/A2DPSink
Jun 21 13:33:21 rozica sudo[22033]: rozica : TTY=pts/0 ; PWD=/home/rozica ; USER=root ; COMMAND=/usr/bin/bluetoothctl
Line that especially bugs me is "kernel: bluetooth hci0: Direct firmware load for brcm/BCM.hcd failed with error -2" Since I fear this is driver related issue. As I mentioned before bluetooth is on the same chipset as wifi card;
lspci -vnn -d 14e4:
lspci -vnn -d 14e4:
02:00.0 Network controller [0280]: Broadcom Limited BCM43142 802.11b/g/n [14e4:4365] (rev 01)
Subsystem: Foxconn International, Inc. Device [105b:e07e]
Flags: bus master, fast devsel, latency 0, IRQ 17
Memory at 90600000 (64-bit, non-prefetchable) [size=32K]
Capabilities: <access denied>
Kernel driver in use: wl
Kernel modules: wl
lsmod | grep btusb
lsmod | grep btusb
btusb 40960 0
btrtl 16384 1 btusb
btbcm 16384 1 btusb
btintel 16384 1 btusb
bluetooth 487424 41 btrtl,btintel,bnep,btbcm,rfcomm,btusb
usbcore 208896 5 uvcvideo,usbhid,xhci_pci,btusb,xhci_hcd
Since I wasn't sure if I have le device or not I even installed bluez-utils-compat even though hcitool is now deprecated. Still no luck at finding any device... For wlan card I have installed broadcom-dkms-wl since I have the less problems with it. It makes sure wifi stays on after each kernel upgrade. I am not sure if the driver for wlan card relates to bluetooth or not (if I had to I would say it does) but please suggest me how to solve this problem without having too much problems with wlan/bluetooth.
Last edited by frojnd (2017-06-25 21:10:52)
Offline
Many of the Broadcom bluetooth chipsets need firmware, see https://askubuntu.com/a/632348/300665
You will have to look at results for
lsusb
To find the ID for the bluetooth and search the windows inf file to find the .hex file needed to convert to BCM.hcd
Offline
@jeremy31
$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 04f2:b469 Chicony Electronics Co., Ltd
Bus 001 Device 003: ID 04f3:2039 Elan Microelectronics Corp.
Bus 001 Device 004: ID 0489:e055 Foxconn / Hon Hai
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
I dont see any bluetooth there.
Offline
From the lspci output
02:00.0 Network controller [0280]: Broadcom Limited BCM43142 802.11b/g/n [14e4:4365] (rev 01)
Subsystem: Foxconn International, Inc. Device [105b:e07e]
Note the subsystem manufacturer and from the lsusb output
Bus 001 Device 004: ID 0489:e055 Foxconn / Hon Hai
Offline
@loqs Aha that was it
Also @jeremy31 your link was really really helpful! Thank you. The only difference was copying file as BCM.hcd
Great help! I think I have to edit wiki now.
Offline