bluetoothctl 消息“正在等待连接到蓝牙...”

use*_*675 2 bluetooth

当前的arch linux

我第一次尝试使用蓝牙设备,罗技键盘。我将其加密狗插入 USB 端口,并根据说明

https://wiki.archlinux.org/index.php/bluetooth

我做了

pacman -S bluez bluez-utils
modprobe btusb
bluetoothctl
  Waiting to connect to bluetoothd...
  Ctrl-C
hciconfig hci0 sspmode 0
  Can't set Simple pairing mode on hci0: Network is down (100)
Run Code Online (Sandbox Code Playgroud)

它指的是哪个网络?hci0? 在获得 MAC 地址之前我无法创建它,为此我需要 bluetoothctl

此外,我还尝试了 'bluetoothctl -a' 并将我的用户名添加到 /etc/groups 中的 lp 行,没有区别

Ech*_*ynx 5

您忘记启动bluetooth.service

sudo systemctl start bluetooth
Run Code Online (Sandbox Code Playgroud)

如果您希望它始终启动,请确保启用它。

sudo systemctl enable bluetooth
Run Code Online (Sandbox Code Playgroud)