ArchLinux下安装使用蓝牙
安装蓝牙
sudo pacman -S bluez bluez-utils
sudo systemctl enable bluetooth.service
sudo systemctl start bluetooth.service
使用蓝牙
- bluetoothctl
- power on
- agent on
- scan on
- pair XXX.X (autopair : trust XX.XXX)
- connect X.XXX
案例(连接蓝牙耳机)
在终端中输入安装蓝牙的步骤后
在终端中继续输入bluetoothctl
进入bluetoothctl如图:

依次输入
- power on
- agent on
- scan on
如图:(找到自己需要连接的设备)

输入pair 1C:52略,如图
输入trust 1C:52略(自动连接)
connect 1C:52略(连接)
出现设备名称后说明连接成功
如图所示:

本文详细指导ArchLinux用户如何安装并配置蓝芽技术,包括pacman安装bluez和bluez-utils,启用与启动服务,以及通过bluetoothctl完成设备搜索、配对和连接蓝牙耳机的全过程。
1万+

被折叠的 条评论
为什么被折叠?



