4

RPI 4B – Bluetooth unavailable on Ubuntu server 20.04

 9 months ago
source link: https://i.lckiss.com/?p=8386
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

RPI 4B – Bluetooth unavailable on Ubuntu server 20.04

抬头仰望星空,是否能发现自己的渺小。

伪斜杠青年

RPI 4B – Bluetooth unavailable on Ubuntu server 20.04

2023-11-20

希望在 Docker 的 Home assistant 中使用树莓派蓝牙模块,树莓派 4B 板载蓝牙5.0,在配置 Home assistant 的时候发现蓝牙无法被检测到,。

前置条件,蓝牙需要安装以下包:

sudo apt-get install bluez bluez-tools rfkill

通过 rfkill 仅展示 wlan,bluetoothctl 各类操作则显示为 No default controller available。

经过一些了解与排查,最终定位为 Ubuntu server 20.04 默认不支持 Bluetooth 板载模块驱动。

找到一篇帖子与我问题类似(包含解决办法):

RPI 4B – Bluetooth unavailable on Ubuntu 20.04

手动安装 pi-bluetooth 包:

sudo apt-get install pi-bluetooth

编辑 /boot/firmware/usrcfg.txt 文件在最后一行加上(或许是空文件):

include btcfg.txt

然后重启,通过 rfkill 获取到以下结果则为成功。

ID TYPE      DEVICE      SOFT      HARD
 0 wlan      phy0   unblocked unblocked
 1 bluetooth hci0   unblocked unblocked

本站由以下主机服务商提供服务支持:

作者:Mosaic-C

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK