archlinux管理蓝牙设备

wiki:
https://wiki.archlinux.org/title/Bluetooth_(简体中文)

自动链接蓝牙设备

1. 确保蓝牙服务开机启动

systemctl enable bluetooth

2. 打开自动链接
配置文件:/etc/bluetooth/main.conf

# AutoEnable defines option to enable all controllers when they are found.
# This includes adapters present on start as well as adapters that are plugged
# in later on. Defaults to 'false'.
# AutoEnable 设置为true可以在设备发现时自动链接上
AutoEnable=true

蓝牙无法搜索设备

使用bluetoothctl

bluetoothctl
scan on

碰到Resource Not Ready,解锁设备:

rfkill unblock all
posted @ 2022-04-07 20:38  oaksharks  阅读(582)  评论(0编辑  收藏  举报