安装蓝牙相关的软件包
sudo pacman -S bluez bluez-utils
启动和启用蓝牙服务
sudo systemctl start bluetooth
sudo systemctl enable bluetooth
检查蓝牙服务状态
systemctl status bluetooth
● bluetooth.service - Bluetooth service
Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; preset: disabled)
Active: active (running) since Wed 2024-09-18 14:12:08 CST; 18min ago
Invocation: 49c27a0ab1e64232aa67271d9176e96c
Docs: man:bluetoothd(8)
Main PID: 8196 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 38053)
Memory: 1.3M (peak: 2M)
CPU: 209ms
CGroup: /system.slice/bluetooth.service
└─8196 /usr/lib/bluetooth/bluetoothd