I tried Ubuntu Mate ( 2023-01-12-ubuntu-20.04-mate-desktop-bpi-cm4-aarch64-sd-emmc.img). But the BT function not working for scanning BT device. (such as TWS earphone).
I also installed bluez and tried sudo bluetoothctl and scan on , it shows :Failed to start discovery: org.bluez.Error.NotReady.
β rtk-hciuart.service - Attach /dev/ttyS1 to BlueZ stack
Loaded: loaded (/lib/systemd/system/rtk-hciuart.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2023-10-17 04:20:57 IST; 6min ago
Process: 2995 ExecStartPre=/usr/sbin/rfkill unblock bluetooth (code=exited, status=0/SUCCESS)
Main PID: 3020 (rtk_hciattach)
Tasks: 1 (limit: 3398)
Memory: 1.3M
CGroup: /system.slice/rtk-hciuart.service
ββ3020 /usr/sbin/rtk_hciattach -n -s 115200 ttyS1 rtk_h5
Oct 17 04:20:57 bananapi systemd[1]: Starting Attach /dev/ttyS1 to BlueZ stackβ¦
Oct 17 04:20:57 bananapi rfkill[2995]: unblock set for type bluetooth
Oct 17 04:20:57 bananapi systemd[1]: Started Attach /dev/ttyS1 to BlueZ stack.
0: bt-dev: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: yes
Hard blocked: no
2: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
Devices:
hci0 C4:3C:B0:AD:C4:96
Scanning ...
Inquiry failed: Connection timed out
Bt scan well on mate after bootup. On gnome, you can restart rtk-hciuart.service after bootup or disable blueman-mechanism.service and using bt with bluetoothctl.