RPI 4B – Bluetooth unavailable on Ubuntu server 20.04
💡
原文中文,约700字,阅读约需2分钟。
📝
内容提要
本文介绍了在Docker的Home Assistant中使用树莓派蓝牙模块的问题,并通过安装pi-bluetooth包和编辑usrcfg.txt文件解决了Ubuntu server 20.04不支持蓝牙模块驱动的问题。
🎯
关键要点
- 希望在 Docker 的 Home Assistant 中使用树莓派蓝牙模块。
- 树莓派 4B 板载蓝牙5.0,但在配置 Home Assistant 时蓝牙无法被检测到。
- 需要安装 bluez、bluez-tools 和 rfkill 包以支持蓝牙。
- rfkill 显示仅有 wlan,bluetoothctl 操作显示为 No default controller available。
- Ubuntu server 20.04 默认不支持 Bluetooth 板载模块驱动。
- 手动安装 pi-bluetooth 包以解决问题。
- 编辑 /boot/firmware/usrcfg.txt 文件,添加 include btcfg.txt。
- 重启后,通过 rfkill 验证蓝牙模块是否成功启用。
➡️