Bluetooth not working with rtl8723bs_bt

Hi, I have a rtl8723bs_bt, trying to get it to work. The rtl8723bs found in the AUR is for WiFi (it is a combo card, WiFi is working properly with rtl8723bs out-of-the-box). Using https://github.com/lwfinger/rtl8723bs_bt to try and get Bluetooth component working.
While it isn’t too important, would you for headphones, game-pad and communicate with phone, it is an interesting puzzle to solve (in computer science, not taking courses this summer).

The instructions use hciattach, which doesn’t work and has been depreciated in newer kernels.
So, tried with btattach. The recommended protocol is 3wire which fails earlier (might be order of initialisation) so trying with h4 and whatever the default is. With 3wire, included -N: sudo btattach -N --bredr /dev/ttyS2 -S 115200 -P 3wire

Any help is appreciated :slight_smile:

$sudo btattach --bredr /dev/ttyS2 -S 115200
Attaching Primary controller to /dev/ttyS2
Switched line discipline from 0 to 15
Device index 0 attached
$ dmesg | grep Bluetooth
[  539.906372] Bluetooth: Core ver 2.22
[  539.906441] Bluetooth: HCI device and connection manager initialized
[  539.906451] Bluetooth: HCI socket layer initialized
[  539.906461] Bluetooth: L2CAP socket layer initialized
[  539.906476] Bluetooth: SCO socket layer initialized
[  539.933854] Bluetooth: HCI UART driver ver 2.3
[  539.933859] Bluetooth: HCI UART protocol H4 registered
[  539.933861] Bluetooth: HCI UART protocol BCSP registered
[  539.933904] Bluetooth: HCI UART protocol LL registered
[  539.933906] Bluetooth: HCI UART protocol ATH3K registered
[  539.933907] Bluetooth: HCI UART protocol Three-wire (H5) registered
[  539.934081] Bluetooth: HCI UART protocol Intel registered
[  539.934273] Bluetooth: HCI UART protocol Broadcom registered
[  539.934275] Bluetooth: HCI UART protocol QCA registered
[  539.934276] Bluetooth: HCI UART protocol AG6XX registered
[  539.934278] Bluetooth: HCI UART protocol Marvell registered
[  540.157208] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[  540.157215] Bluetooth: BNEP filters: protocol multicast
[  540.157229] Bluetooth: BNEP socket layer initialized
$ sudo rfkill list
0: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
1: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no
$ sudo btmgmt power on
[sudo] password for sheldon: 
Set Powered for hci0 failed with status 0x11 (Invalid Index)
$ sudo btmgmt -i hci1 power on
Set Powered for hci1 failed with status 0x11 (Invalid Index)
$ sudo btmgmt -i hci1 power off
Set Powered for hci1 failed with status 0x11 (Invalid Index)
$ bluetoothctl
Agent registered
[bluetooth]# show
No default controller available
$ journalctl | grep Bluetooth
Jul 05 22:49:58 sheldon-pc kernel: Bluetooth: Core ver 2.22
Jul 05 22:49:58 sheldon-pc kernel: Bluetooth: HCI device and connection manager initialized
Jul 05 22:49:58 sheldon-pc kernel: Bluetooth: HCI socket layer initialized
Jul 05 22:49:58 sheldon-pc kernel: Bluetooth: L2CAP socket layer initialized
Jul 05 22:49:58 sheldon-pc kernel: Bluetooth: SCO socket layer initialized
Jul 05 22:50:11 sheldon-pc systemd[1]: Starting Bluetooth service...
Jul 05 22:50:11 sheldon-pc bluetoothd[1933]: Bluetooth daemon 5.50
Jul 05 22:50:11 sheldon-pc systemd[1]: Started Bluetooth service.
Jul 05 22:50:11 sheldon-pc kernel: Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Jul 05 22:50:11 sheldon-pc kernel: Bluetooth: BNEP filters: protocol multicast
Jul 05 22:50:11 sheldon-pc kernel: Bluetooth: BNEP socket layer initialized
Jul 05 22:50:11 sheldon-pc bluetoothd[1933]: Bluetooth management interface 1.14 initialized
Jul 05 22:50:35 sheldon-pc systemd[653]: Starting Bluetooth OBEX service...
Jul 05 22:50:35 sheldon-pc systemd[653]: Started Bluetooth OBEX service.
Jul 05 23:31:58 sheldon-pc systemd[653]: Stopping Bluetooth OBEX service...
Jul 05 23:31:58 sheldon-pc systemd[653]: Stopped Bluetooth OBEX service.
Jul 05 23:31:58 sheldon-pc systemd[1]: Stopping Bluetooth service...
Jul 05 23:31:58 sheldon-pc systemd[1]: Stopped Bluetooth service.
Jul 06 10:42:59 sheldon-pc CROND[346]: (root) CMDOUT (Using device /dev/ttyS1 for Bluetooth)
Jul 06 10:46:47 sheldon-pc kernel: Bluetooth: Core ver 2.22
Jul 06 10:46:47 sheldon-pc kernel: Bluetooth: HCI device and connection manager initialized
Jul 06 10:46:47 sheldon-pc kernel: Bluetooth: HCI socket layer initialized
Jul 06 10:46:47 sheldon-pc kernel: Bluetooth: L2CAP socket layer initialized
Jul 06 10:46:47 sheldon-pc kernel: Bluetooth: SCO socket layer initialized
Jul 06 10:47:37 sheldon-pc systemd[1]: Starting Bluetooth service...
Jul 06 10:47:37 sheldon-pc bluetoothd[1309]: Bluetooth daemon 5.50
Jul 06 10:47:37 sheldon-pc systemd[1]: Started Bluetooth service.
Jul 06 10:47:37 sheldon-pc kernel: Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Jul 06 10:47:37 sheldon-pc kernel: Bluetooth: BNEP filters: protocol multicast
Jul 06 10:47:37 sheldon-pc kernel: Bluetooth: BNEP socket layer initialized
Jul 06 10:47:37 sheldon-pc bluetoothd[1309]: Bluetooth management interface 1.14 initialized
Jul 06 10:47:51 sheldon-pc systemd[607]: Starting Bluetooth OBEX service...
Jul 06 10:47:51 sheldon-pc systemd[607]: Started Bluetooth OBEX service.
Jul 06 11:47:14 sheldon-pc systemd[607]: Stopping Bluetooth OBEX service...
Jul 06 11:47:14 sheldon-pc systemd[607]: Stopped Bluetooth OBEX service.
Jul 06 11:47:14 sheldon-pc systemd[1]: Stopping Bluetooth service...
Jul 06 11:47:14 sheldon-pc systemd[1]: Stopped Bluetooth service.
Jul 06 11:47:47 sheldon-pc CROND[386]: (root) CMDOUT (Using device /dev/ttyS1 for Bluetooth)
Jul 06 21:09:04 sheldon-pc CROND[363]: (root) CMDOUT (Using device /dev/ttyS1 for Bluetooth)
Jul 06 21:18:12 sheldon-pc kernel: Bluetooth: Core ver 2.22
Jul 06 21:18:12 sheldon-pc kernel: Bluetooth: HCI device and connection manager initialized
Jul 06 21:18:12 sheldon-pc kernel: Bluetooth: HCI socket layer initialized
Jul 06 21:18:12 sheldon-pc kernel: Bluetooth: L2CAP socket layer initialized
Jul 06 21:18:12 sheldon-pc kernel: Bluetooth: SCO socket layer initialized
Jul 06 21:21:30 sheldon-pc systemd[1]: Starting Bluetooth service...
Jul 06 21:21:30 sheldon-pc bluetoothd[7813]: Bluetooth daemon 5.50
Jul 06 21:21:30 sheldon-pc systemd[1]: Started Bluetooth service.
Jul 06 21:21:30 sheldon-pc kernel: Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Jul 06 21:21:30 sheldon-pc kernel: Bluetooth: BNEP filters: protocol multicast
Jul 06 21:21:30 sheldon-pc kernel: Bluetooth: BNEP socket layer initialized
Jul 06 21:21:30 sheldon-pc bluetoothd[7813]: Bluetooth management interface 1.14 initialized
Jul 06 21:24:10 sheldon-pc systemd[1]: Stopping Bluetooth service...
Jul 06 21:24:10 sheldon-pc systemd[1]: Stopped Bluetooth service.
Jul 06 22:30:51 sheldon-pc kernel: Bluetooth: Core ver 2.22
Jul 06 22:30:51 sheldon-pc kernel: Bluetooth: HCI device and connection manager initialized
Jul 06 22:30:51 sheldon-pc kernel: Bluetooth: HCI socket layer initialized
Jul 06 22:30:51 sheldon-pc kernel: Bluetooth: L2CAP socket layer initialized
Jul 06 22:30:51 sheldon-pc kernel: Bluetooth: SCO socket layer initialized
Jul 06 22:45:16 sheldon-pc systemd[1]: Starting Bluetooth service...
Jul 06 22:45:16 sheldon-pc bluetoothd[8106]: Bluetooth daemon 5.50
Jul 06 22:45:16 sheldon-pc systemd[1]: Started Bluetooth service.
Jul 06 22:45:16 sheldon-pc kernel: Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Jul 06 22:45:16 sheldon-pc kernel: Bluetooth: BNEP filters: protocol multicast
Jul 06 22:45:16 sheldon-pc kernel: Bluetooth: BNEP socket layer initialized
Jul 06 22:45:16 sheldon-pc bluetoothd[8106]: Bluetooth management interface 1.14 initialized
Jul 06 22:48:35 sheldon-pc systemd[1]: Stopping Bluetooth service...
Jul 06 22:48:35 sheldon-pc systemd[1]: Stopped Bluetooth service.
Jul 08 17:42:47 sheldon-pc kernel: Bluetooth: Core ver 2.22
Jul 08 17:42:47 sheldon-pc kernel: Bluetooth: HCI device and connection manager initialized
Jul 08 17:42:47 sheldon-pc kernel: Bluetooth: HCI socket layer initialized
Jul 08 17:42:47 sheldon-pc kernel: Bluetooth: L2CAP socket layer initialized
Jul 08 17:42:47 sheldon-pc kernel: Bluetooth: SCO socket layer initialized
Jul 08 17:48:41 sheldon-pc systemd[1]: Starting Bluetooth service...
Jul 08 17:48:41 sheldon-pc bluetoothd[4394]: Bluetooth daemon 5.50
Jul 08 17:48:41 sheldon-pc systemd[1]: Started Bluetooth service.
Jul 08 17:48:41 sheldon-pc kernel: Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Jul 08 17:48:41 sheldon-pc kernel: Bluetooth: BNEP filters: protocol multicast
Jul 08 17:48:41 sheldon-pc kernel: Bluetooth: BNEP socket layer initialized
Jul 08 17:48:41 sheldon-pc bluetoothd[4394]: Bluetooth management interface 1.14 initialized
Jul 08 18:23:59 sheldon-pc systemd[1]: Started Bluetooth attach.
Jul 08 18:24:23 sheldon-pc systemd[607]: Starting Bluetooth OBEX service...
Jul 08 18:24:23 sheldon-pc systemd[607]: Started Bluetooth OBEX service.
Jul 08 18:58:27 sheldon-pc systemd[607]: Stopping Bluetooth OBEX service...
Jul 08 18:58:27 sheldon-pc systemd[607]: Stopped Bluetooth OBEX service.
Jul 08 18:58:27 sheldon-pc systemd[1]: Stopping Bluetooth service...
Jul 08 18:58:27 sheldon-pc systemd[1]: Stopped Bluetooth service.
Jul 08 18:58:59 sheldon-pc systemd[1]: Started Bluetooth attach.
Jul 08 18:59:07 sheldon-pc systemd[616]: Starting Bluetooth OBEX service...
Jul 08 18:59:07 sheldon-pc systemd[616]: Started Bluetooth OBEX service.
Jul 08 21:00:15 sheldon-pc systemd[616]: Stopping Bluetooth OBEX service...
Jul 08 21:00:15 sheldon-pc systemd[616]: Stopped Bluetooth OBEX service.
Jul 08 21:29:32 sheldon-pc systemd[1]: Started Bluetooth attach.
Jul 08 21:29:40 sheldon-pc systemd[612]: Starting Bluetooth OBEX service...
Jul 08 21:29:40 sheldon-pc systemd[612]: Started Bluetooth OBEX service.
Jul 08 21:39:49 sheldon-pc systemd[612]: Stopping Bluetooth OBEX service...
Jul 08 21:39:49 sheldon-pc systemd[612]: Stopped Bluetooth OBEX service.
Jul 08 21:40:20 sheldon-pc systemd[1]: Started Bluetooth attach.
Jul 08 21:40:28 sheldon-pc systemd[654]: Starting Bluetooth OBEX service...
Jul 08 21:40:28 sheldon-pc systemd[654]: Started Bluetooth OBEX service.
Jul 08 22:54:40 sheldon-pc systemd[654]: Stopping Bluetooth OBEX service...
Jul 08 22:54:40 sheldon-pc systemd[654]: Stopped Bluetooth OBEX service.
Jul 10 00:27:13 sheldon-pc systemd[1]: Started Bluetooth attach.
Jul 10 00:27:24 sheldon-pc systemd[618]: Starting Bluetooth OBEX service...
Jul 10 00:27:24 sheldon-pc systemd[618]: Started Bluetooth OBEX service.
Jul 10 00:40:41 sheldon-pc kernel: Bluetooth: Core ver 2.22
Jul 10 00:40:41 sheldon-pc kernel: Bluetooth: HCI device and connection manager initialized
Jul 10 00:40:41 sheldon-pc kernel: Bluetooth: HCI socket layer initialized
Jul 10 00:40:41 sheldon-pc kernel: Bluetooth: L2CAP socket layer initialized
Jul 10 00:40:41 sheldon-pc kernel: Bluetooth: SCO socket layer initialized
Jul 10 00:54:43 sheldon-pc kernel: Bluetooth: HCI UART driver ver 2.3
Jul 10 00:54:43 sheldon-pc kernel: Bluetooth: HCI UART protocol H4 registered
Jul 10 00:54:43 sheldon-pc kernel: Bluetooth: HCI UART protocol BCSP registered
Jul 10 00:54:43 sheldon-pc kernel: Bluetooth: HCI UART protocol LL registered
Jul 10 00:54:43 sheldon-pc kernel: Bluetooth: HCI UART protocol ATH3K registered
Jul 10 00:54:43 sheldon-pc kernel: Bluetooth: HCI UART protocol Three-wire (H5) registered
Jul 10 00:54:43 sheldon-pc kernel: Bluetooth: HCI UART protocol Intel registered
Jul 10 00:54:43 sheldon-pc kernel: Bluetooth: HCI UART protocol Broadcom registered
Jul 10 00:54:43 sheldon-pc kernel: Bluetooth: HCI UART protocol QCA registered
Jul 10 00:54:43 sheldon-pc kernel: Bluetooth: HCI UART protocol AG6XX registered
Jul 10 00:54:43 sheldon-pc kernel: Bluetooth: HCI UART protocol Marvell registered
Jul 10 00:54:43 sheldon-pc systemd[1]: Reached target Bluetooth.
Jul 10 00:55:53 sheldon-pc systemd[1]: Stopped target Bluetooth.
Jul 10 00:56:01 sheldon-pc systemd[1]: Reached target Bluetooth.
Jul 10 00:56:11 sheldon-pc systemd[1]: Stopped target Bluetooth.
Jul 10 00:59:19 sheldon-pc systemd[541]: Starting Bluetooth OBEX service...
Jul 10 00:59:19 sheldon-pc systemd[541]: Started Bluetooth OBEX service.
Jul 10 01:02:30 sheldon-pc kernel: Bluetooth: Core ver 2.22
Jul 10 01:02:30 sheldon-pc kernel: Bluetooth: HCI device and connection manager initialized
Jul 10 01:02:30 sheldon-pc kernel: Bluetooth: HCI socket layer initialized
Jul 10 01:02:30 sheldon-pc kernel: Bluetooth: L2CAP socket layer initialized
Jul 10 01:02:30 sheldon-pc kernel: Bluetooth: SCO socket layer initialized
Jul 10 01:02:30 sheldon-pc kernel: Bluetooth: HCI UART driver ver 2.3
Jul 10 01:02:30 sheldon-pc kernel: Bluetooth: HCI UART protocol H4 registered
Jul 10 01:02:30 sheldon-pc kernel: Bluetooth: HCI UART protocol BCSP registered
Jul 10 01:02:30 sheldon-pc kernel: Bluetooth: HCI UART protocol LL registered
Jul 10 01:02:30 sheldon-pc kernel: Bluetooth: HCI UART protocol ATH3K registered
Jul 10 01:02:30 sheldon-pc kernel: Bluetooth: HCI UART protocol Three-wire (H5) registered
Jul 10 01:02:30 sheldon-pc kernel: Bluetooth: HCI UART protocol Intel registered
Jul 10 01:02:30 sheldon-pc kernel: Bluetooth: HCI UART protocol Broadcom registered
Jul 10 01:02:30 sheldon-pc kernel: Bluetooth: HCI UART protocol QCA registered
Jul 10 01:02:30 sheldon-pc kernel: Bluetooth: HCI UART protocol AG6XX registered
Jul 10 01:02:30 sheldon-pc kernel: Bluetooth: HCI UART protocol Marvell registered
Jul 10 01:09:12 sheldon-pc systemd[1]: Reached target Bluetooth.
Jul 10 01:11:35 sheldon-pc systemd[1]: Starting Bluetooth service...
Jul 10 01:11:35 sheldon-pc bluetoothd[2261]: Bluetooth daemon 5.50
Jul 10 01:11:35 sheldon-pc systemd[1]: Started Bluetooth service.
Jul 10 01:11:35 sheldon-pc kernel: Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Jul 10 01:11:35 sheldon-pc kernel: Bluetooth: BNEP filters: protocol multicast
Jul 10 01:11:35 sheldon-pc kernel: Bluetooth: BNEP socket layer initialized
Jul 10 01:11:35 sheldon-pc bluetoothd[2261]: Bluetooth management interface 1.14 initialized
Jul 10 01:13:50 sheldon-pc systemd[1]: Stopped target Bluetooth.
Jul 10 01:14:56 sheldon-pc systemd[1]: Reached target Bluetooth.
Jul 10 01:15:06 sheldon-pc systemd[1]: Stopped target Bluetooth.
Jul 10 01:15:27 sheldon-pc systemd[1]: Reached target Bluetooth.
Jul 10 01:15:49 sheldon-pc systemd[1]: Stopping Bluetooth service...
Jul 10 01:15:49 sheldon-pc systemd[1]: Stopped Bluetooth service.
Jul 10 01:15:55 sheldon-pc systemd[1]: Starting Bluetooth service...
Jul 10 01:15:55 sheldon-pc bluetoothd[2638]: Bluetooth daemon 5.50
Jul 10 01:15:55 sheldon-pc systemd[1]: Started Bluetooth service.
Jul 10 01:15:55 sheldon-pc bluetoothd[2638]: Bluetooth management interface 1.14 initialized
Jul 10 01:16:26 sheldon-pc systemd[1]: Stopped target Bluetooth.
Jul 10 01:16:33 sheldon-pc systemd[1]: Reached target Bluetooth.
Jul 10 01:16:49 sheldon-pc systemd[1]: Stopped target Bluetooth.
Jul 10 01:16:54 sheldon-pc systemd[1]: Reached target Bluetooth.
Jul 10 01:16:56 sheldon-pc kernel: Bluetooth: hci0: command 0x0c03 tx timeout
Jul 10 01:17:04 sheldon-pc kernel: Bluetooth: hci0: BCM: Reset failed (-110)
Jul 10 01:17:05 sheldon-pc systemd[1]: Stopped target Bluetooth.
Jul 10 01:17:12 sheldon-pc kernel: Bluetooth: hci0: ROME setup
Jul 10 01:17:12 sheldon-pc kernel: Bluetooth: hci0: Set UART speed to 3000000
Jul 10 01:17:12 sheldon-pc systemd[1]: Reached target Bluetooth.
Jul 10 01:17:15 sheldon-pc kernel: Bluetooth: hci0: command 0xfc00 tx timeout
Jul 10 01:17:22 sheldon-pc kernel: Bluetooth: hci0: Failed to read version of ROME (-110)
Jul 10 01:17:22 sheldon-pc kernel: Bluetooth: hci0: Failed to get version 0xffffff92
Jul 10 01:17:24 sheldon-pc systemd[1]: Stopped target Bluetooth.
Jul 10 01:17:28 sheldon-pc kernel: Bluetooth: hci0: Change controller speed to 3000000
Jul 10 01:17:28 sheldon-pc systemd[1]: Reached target Bluetooth.
Jul 10 01:17:30 sheldon-pc kernel: Bluetooth: hci0: Reading Intel version information failed (-110)
Jul 10 01:17:30 sheldon-pc kernel: Bluetooth: hci0: command 0xfc05 tx timeout
Jul 10 01:17:32 sheldon-pc kernel: Bluetooth: hci0: command 0xfc05 tx timeout
Jul 10 01:17:32 sheldon-pc kernel: Bluetooth: hci0: Reading Intel version information failed (-110)
Jul 10 01:17:39 sheldon-pc systemd[1]: Stopped target Bluetooth.
Jul 10 01:20:47 sheldon-pc systemd[590]: Starting Bluetooth OBEX service...
Jul 10 01:20:47 sheldon-pc systemd[590]: Started Bluetooth OBEX service.
Jul 10 01:23:11 sheldon-pc kernel: Bluetooth: Core ver 2.22
Jul 10 01:23:11 sheldon-pc kernel: Bluetooth: HCI device and connection manager initialized
Jul 10 01:23:11 sheldon-pc kernel: Bluetooth: HCI socket layer initialized
Jul 10 01:23:11 sheldon-pc kernel: Bluetooth: L2CAP socket layer initialized
Jul 10 01:23:11 sheldon-pc kernel: Bluetooth: SCO socket layer initialized
Jul 10 01:23:11 sheldon-pc kernel: Bluetooth: HCI UART driver ver 2.3
Jul 10 01:23:11 sheldon-pc kernel: Bluetooth: HCI UART protocol H4 registered
Jul 10 01:23:11 sheldon-pc kernel: Bluetooth: HCI UART protocol BCSP registered
Jul 10 01:23:11 sheldon-pc kernel: Bluetooth: HCI UART protocol LL registered
Jul 10 01:23:11 sheldon-pc kernel: Bluetooth: HCI UART protocol ATH3K registered
Jul 10 01:23:11 sheldon-pc kernel: Bluetooth: HCI UART protocol Three-wire (H5) registered
Jul 10 01:23:11 sheldon-pc kernel: Bluetooth: HCI UART protocol Intel registered
Jul 10 01:23:11 sheldon-pc kernel: Bluetooth: HCI UART protocol Broadcom registered
Jul 10 01:23:11 sheldon-pc kernel: Bluetooth: HCI UART protocol QCA registered
Jul 10 01:23:11 sheldon-pc kernel: Bluetooth: HCI UART protocol AG6XX registered
Jul 10 01:23:11 sheldon-pc kernel: Bluetooth: HCI UART protocol Marvell registered
Jul 10 01:23:11 sheldon-pc systemd[1]: Starting Bluetooth service...
Jul 10 01:23:11 sheldon-pc bluetoothd[1220]: Bluetooth daemon 5.50
Jul 10 01:23:11 sheldon-pc systemd[1]: Started Bluetooth service.
Jul 10 01:23:11 sheldon-pc systemd[1]: Reached target Bluetooth.
Jul 10 01:23:11 sheldon-pc kernel: Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Jul 10 01:23:11 sheldon-pc kernel: Bluetooth: BNEP filters: protocol multicast
Jul 10 01:23:11 sheldon-pc kernel: Bluetooth: BNEP socket layer initialized
Jul 10 01:23:11 sheldon-pc bluetoothd[1220]: Bluetooth management interface 1.14 initialized
Jul 10 01:59:00 sheldon-pc systemd[1]: Stopped target Bluetooth.
Jul 10 01:59:19 sheldon-pc systemd[1]: Reached target Bluetooth.
Jul 10 02:01:09 sheldon-pc systemd[1]: Stopped target Bluetooth.
Jul 10 02:07:47 sheldon-pc systemd[593]: Starting Bluetooth OBEX service...
Jul 10 02:07:47 sheldon-pc systemd[593]: Started Bluetooth OBEX service.
Jul 10 02:09:46 sheldon-pc kernel: Bluetooth: Core ver 2.22
Jul 10 02:09:46 sheldon-pc kernel: Bluetooth: HCI device and connection manager initialized
Jul 10 02:09:46 sheldon-pc kernel: Bluetooth: HCI socket layer initialized
Jul 10 02:09:46 sheldon-pc kernel: Bluetooth: L2CAP socket layer initialized
Jul 10 02:09:46 sheldon-pc kernel: Bluetooth: SCO socket layer initialized
Jul 10 02:09:46 sheldon-pc kernel: Bluetooth: HCI UART driver ver 2.3
Jul 10 02:09:46 sheldon-pc kernel: Bluetooth: HCI UART protocol H4 registered
Jul 10 02:09:46 sheldon-pc kernel: Bluetooth: HCI UART protocol BCSP registered
Jul 10 02:09:46 sheldon-pc kernel: Bluetooth: HCI UART protocol LL registered
Jul 10 02:09:46 sheldon-pc kernel: Bluetooth: HCI UART protocol ATH3K registered
Jul 10 02:09:46 sheldon-pc kernel: Bluetooth: HCI UART protocol Three-wire (H5) registered
Jul 10 02:09:46 sheldon-pc kernel: Bluetooth: HCI UART protocol Intel registered
Jul 10 02:09:46 sheldon-pc kernel: Bluetooth: HCI UART protocol Broadcom registered
Jul 10 02:09:46 sheldon-pc kernel: Bluetooth: HCI UART protocol QCA registered
Jul 10 02:09:46 sheldon-pc kernel: Bluetooth: HCI UART protocol AG6XX registered
Jul 10 02:09:46 sheldon-pc kernel: Bluetooth: HCI UART protocol Marvell registered
Jul 10 02:09:46 sheldon-pc systemd[1]: Starting Bluetooth service...
Jul 10 02:09:46 sheldon-pc bluetoothd[1117]: Bluetooth daemon 5.50
Jul 10 02:09:46 sheldon-pc systemd[1]: Started Bluetooth service.
Jul 10 02:09:46 sheldon-pc systemd[1]: Reached target Bluetooth.
Jul 10 02:09:46 sheldon-pc kernel: Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Jul 10 02:09:46 sheldon-pc kernel: Bluetooth: BNEP filters: protocol multicast
Jul 10 02:09:46 sheldon-pc kernel: Bluetooth: BNEP socket layer initialized
Jul 10 02:09:46 sheldon-pc bluetoothd[1117]: Bluetooth management interface 1.14 initialized
Jul 10 02:09:48 sheldon-pc kernel: Bluetooth: hci0: command 0x0c03 tx timeout
Jul 10 02:09:56 sheldon-pc kernel: Bluetooth: hci0: BCM: Reset failed (-110)
Jul 10 02:20:06 sheldon-pc systemd[1]: Stopped target Bluetooth.
Jul 10 02:20:18 sheldon-pc systemd[593]: Stopping Bluetooth OBEX service...
Jul 10 02:20:18 sheldon-pc systemd[593]: Stopped Bluetooth OBEX service.
Jul 10 02:20:19 sheldon-pc systemd[1]: Stopping Bluetooth service...
Jul 10 02:20:19 sheldon-pc systemd[1]: Stopped Bluetooth service.
Jul 10 11:23:23 sheldon-pc systemd[606]: Starting Bluetooth OBEX service...
Jul 10 11:23:23 sheldon-pc systemd[606]: Started Bluetooth OBEX service.
Jul 10 11:32:10 sheldon-pc kernel: Bluetooth: Core ver 2.22
Jul 10 11:32:10 sheldon-pc kernel: Bluetooth: HCI device and connection manager initialized
Jul 10 11:32:10 sheldon-pc kernel: Bluetooth: HCI socket layer initialized
Jul 10 11:32:10 sheldon-pc kernel: Bluetooth: L2CAP socket layer initialized
Jul 10 11:32:10 sheldon-pc kernel: Bluetooth: SCO socket layer initialized
Jul 10 11:32:10 sheldon-pc kernel: Bluetooth: HCI UART driver ver 2.3
Jul 10 11:32:10 sheldon-pc kernel: Bluetooth: HCI UART protocol H4 registered
Jul 10 11:32:10 sheldon-pc kernel: Bluetooth: HCI UART protocol BCSP registered
Jul 10 11:32:10 sheldon-pc kernel: Bluetooth: HCI UART protocol LL registered
Jul 10 11:32:10 sheldon-pc kernel: Bluetooth: HCI UART protocol ATH3K registered
Jul 10 11:32:10 sheldon-pc kernel: Bluetooth: HCI UART protocol Three-wire (H5) registered
Jul 10 11:32:10 sheldon-pc kernel: Bluetooth: HCI UART protocol Intel registered
Jul 10 11:32:10 sheldon-pc kernel: Bluetooth: HCI UART protocol Broadcom registered
Jul 10 11:32:10 sheldon-pc kernel: Bluetooth: HCI UART protocol QCA registered
Jul 10 11:32:10 sheldon-pc kernel: Bluetooth: HCI UART protocol AG6XX registered
Jul 10 11:32:10 sheldon-pc kernel: Bluetooth: HCI UART protocol Marvell registered
Jul 10 11:32:10 sheldon-pc systemd[1]: Starting Bluetooth service...
Jul 10 11:32:11 sheldon-pc bluetoothd[2282]: Bluetooth daemon 5.50
Jul 10 11:32:11 sheldon-pc systemd[1]: Started Bluetooth service.
Jul 10 11:32:11 sheldon-pc systemd[1]: Reached target Bluetooth.
Jul 10 11:32:11 sheldon-pc kernel: Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Jul 10 11:32:11 sheldon-pc kernel: Bluetooth: BNEP filters: protocol multicast
Jul 10 11:32:11 sheldon-pc kernel: Bluetooth: BNEP socket layer initialized
Jul 10 11:32:11 sheldon-pc bluetoothd[2282]: Bluetooth management interface 1.14 initialized
1 Like

I got it working with hciattach (ttyS1)

1 Like

Good for you, nice job. :+1:

Which version of the Kernel are you using? Using the twfinger, it comes bundled with the depreciated hciattach but, does not work (see below) from the terminal, do not have the command. I am using Kernel 4.17, I have packages bluez-hcitool, bluez-hid2hci and, bluez-utils installed. I cannot install hciattach-pi3 b/c it is for a different architecture. I would also prefer to stay clear of depreciated code (getting it working with the new btattach command not only future proofs it, it also reduces risk of errors/issues). However, any method to get it to work is great. Except, changing the Kernel version (need newer Kernel for sound issue fix).

Realtek Bluetooth init uart with init speed:115200, final_speed:115200, type:HCI UART H5
Realtek Bluetooth :Realtek hciattach version 2.5

Realtek Bluetooth :3-wire sync pattern resend : 1, len: 8
[…]
Realtek Bluetooth :3-wire sync pattern resend : 40, len: 8

Realtek Bluetooth ERROR: H5 sync timed out

Fresh and updated installation of Manjaro XFCE 17.1.11 running kernel 4.14.54-1.

git clone https://github.com/lwfinger/rtl8723bs_bt.git
cd rtl8723bs_bt
make
sudo make install
sudo reboot

and then

cd rtl8723bs_bt
sudo ./rtk_hciattach -n -s 115200 /dev/ttyS1 rtk_h5

Finally open Bluetooth adapters app and it works.

What is the expected output of the rtk_hciattach line?
On Manjaro with kernel 4.17.12-1, there is only /dev/ttyS[023].
I tried those, but it fails with:

Realtek Bluetooth :3-wire sync pattern resend : 40, len: 8
Realtek Bluetooth ERROR: H5 sync timed out

(thread renamed from “Bluetooth working” to “Bluetooth not working with rtl8723bs_bt” to make the issue clearer - and that there is an issue)

I used this fork of the above-mentioned driver to get the bluetooth working on my Teclast X80 Pro tablet:

However, even though the device connects, it fails to pair with my Bluetooth headphones, see:

A bluetooth Keyboard is working smoothly nonetheless.

System is freshly installed manjaro-xfce-17.1.12-stable-x86_64 with kernel 4.14.65-1-MANJARO

1 Like

error ;/ Realtek Bluetooth ERROR: H5 sync timed out

Good news: Bluetooth (rtl8723bs_bt) is working with kernel 4.19.1!
The following recipe is adjusted from https://github.com/lwfinger/rtl8723bs_bt/issues/28#issuecomment-432806835 ;
the files rtlbt_fw ftrlbt_config are from https://github.com/lwfinger/rtl8723bs_bt .

  1. Add some firmware files:
    cp rtlbt_fw /usr/lib/firmware/rtl_bt/rtl8723bs_fw.bin
    cp rtlbt_config /usr/lib/firmware/rtl_bt/rtl8723bs_config.bin
    cd /usr/lib/firmware/rtl_bt
    ln -s rtl8723bs_config.bin rtl8723bs_config-OBDA8723.bin

  2. Reboot.

  3. As a normal user configure bluetooth (only needed once) by starting bluetoothctl and then entering the following command at its prompt:
    list
    power on
    agent KeyboardOnly (sometimes already done)
    default-agent
    pairable on
    (turn your bluetooth device on and put into pairing mode)
    scan on
    pair 01:02:03:04:05:06 (use the id of your device here and below)
    paired-devices (just for information)
    trust 01:02:03:04:05:06
    connect 01:02:03:04:05:06

  4. Your bluetooth device should work now.

If you need to reconnect (after a reboot etc.), you only need power on and connect.
You can put this in a shell script like this:
echo "power on" | bluetoothctl
echo "connect 01:02:03:04:05:06" | bluetoothctl --timeout 10

I tested this with a keyboard with touchpad.
Any other bluetooth tests would be interesting (head sets?).

1 Like

Thank you for posting the update and your detailed install instructions.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by