Hi jhawk,
have you followed the instructions on
https://github.com/lwfinger/rtl8723bs_bt?
I needed to copy the following files into "/usr/local/sbin/bluetooth/" after "make" and "make install".
- hciattach.txt
- rtk_hciattach
- start_bt.sh
The scripts has been installed to...
- /usr/local/sbin/pine64_bluetooth.sh
- /etc/systemd/system/bluetooth-module.service
I was able to type some commands in [bluetoothctl]# after copying these files into "/usr/local/sbin/bluetooth/"... BUT!
I don't know what exactly the problem is, but bluez seems to have bugs.
Btw: I'm using longsleep's Ubuntu image xenial-pine64-bspkernel-20161218-1.img
Here are some quotes:
Code:
root@pine64:~# rfkill list
0: sunxi-bt: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
2: phy1: Wireless LAN
Soft blocked: no
Hard blocked: no
3: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
Code:
root@pine64:~# pine64_bluetooth.sh
Initializing Pine64 Bluetooth Module.
[NEW] Controller 34:C3:D2:F8:C9:4B pine64 [default]
[bluetooth]# list
Controller 34:C3:D2:F8:C9:4B pine64 [default]
[bluetooth]# show
Controller 34:C3:D2:F8:C9:4B
Name: pine64
Alias: pine64
Class: 0x000000
Powered: no
Discoverable: no
Pairable: yes
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
Modalias: usb:v1D6Bp0246d0525
Discovering: no
Code:
root@pine64:~# pine64_bluetooth.sh
Initializing Pine64 Bluetooth Module.
[NEW] Controller 34:C3:D2:F8:C9:4B pine64 [default]
[bluetooth]# power on
Failed to set power on: org.bluez.Error.Failed
[bluetooth]# scan on
Failed to start discovery: org.bluez.Error.NotReady
Code:
root@pine64:~# systemctl status bluetooth
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2017-03-22 22:44:22 UTC; 8min ago
Docs: man:bluetoothd(8)
Main PID: 2798 (bluetoothd)
Status: "Running"
CGroup: /system.slice/bluetooth.service
└─2798 /usr/lib/bluetooth/bluetoothd
Mar 22 22:44:22 pine64 bluetoothd[2798]: Current Time Service could not be registered
Mar 22 22:44:22 pine64 bluetoothd[2798]: gatt-time-server: Input/output error (5)
Mar 22 22:44:22 pine64 bluetoothd[2798]: Not enough free handles to register service
Mar 22 22:44:22 pine64 bluetoothd[2798]: Not enough free handles to register service
Mar 22 22:44:22 pine64 bluetoothd[2798]: Sap driver initialization failed.
Mar 22 22:44:22 pine64 bluetoothd[2798]: sap-server: Operation not permitted (1)
Mar 22 22:44:22 pine64 bluetoothd[2798]: hci0 Load Connection Parameters failed: Unknown Command (0x01)
Mar 22 22:44:22 pine64 systemd[1]: Started Bluetooth service.
Mar 22 22:44:38 pine64 bluetoothd[2798]: Failed to set mode: Failed (0x03)
Mar 22 22:51:24 pine64 bluetoothd[2798]: Failed to set mode: Failed (0x03)
Best regards
Julian