nvidia jetson nano 连接蓝牙音响
参考文档:Connecting Bluetooth Audio | NVIDIA Developer
买了一个 RTL8822CE 双频无线网卡,带蓝牙功能. 这款在
Linux jetson 4.9.253-tegra #1 SMP PREEMPT Sat Feb 19 08:59:22 PST 2022 aarch64 aarch64 aarch64 GNU/Linux 内核下是免驱的
wifi 功能可以正常使用.
但是在 连接蓝牙不能成功,报错如下:
[bluetooth]# connect 78:4D:25:59:BE:BF
Attempting to connect to 78:4D:25:59:BE:BF
[CHG] Device 78:4D:25:59:BE:BF Connected: yes
[CHG] Device 78:4D:25:59:BE:BF ServicesResolved: yes
Failed to connect: org.bluez.Error.InProgress
[CHG] Device 78:4D:25:59:BE:BF ServicesResolved: no
[CHG] Device 78:4D:25:59:BE:BF Connected: no
习惯了 用 AI解决,推荐的方案都是 删除音响再重新连接.没有找到有用的信息
于是回到搜索引擎. 居然找到了解决方案.
原因是 jetson nano bluetooth 服务启动时 屏蔽了
audio,a2dp,avrcp
配置文件在
/lib/systemd/system/bluetooth.service.d/nv-bluetooth-service.conf
将最后一行的
ExecStart=/usr/lib/bluetooth/bluetoothd -d --noplugin=audio,a2dp,avrcp
改为
ExecStart=/usr/lib/bluetooth/bluetoothd -d
然后重启蓝牙服务
sudo systemctl daemon-reexec
sudo systemctl restart bluetooth
再次连接 音响即可.
另外 需要 保证 开启图形界面,以及开启自动登录.否则,重启后蓝牙不能正常工作.原因未知.不折腾了.