我在 Lenovo Thinkpad X1 Tablet gen 2 上运行 Ubuntu 20.04。我最近购买了使用蓝牙 LE 的 Lenovo Trackpoint Keyboard II。用一个堆栈交换帖子,我能够让蓝牙 LE 键盘工作一次
sudo -i
btmgmt power off
btmgmt discov on
btmgmt connectable on
btmgmt pairable on
btmgmt power on
bluetoothctl --agent KeyboardDisplay
进而
connect 00:11:22:33:44:55
但是在它工作后我收到错误
Attempting to connect to 00:11:22:33:44:55
Failed to connect: org.bluez.Error.Failed le-connection-abort-by-local
的输出info 00:11:22:33:44:55
是
Device 00:11:22:33:44:55 (random)
Name: TrackPoint Keyboard II
Alias: TrackPoint Keyboard II
Appearance: 0x03c1
Icon: input-keyboard
Paired: yes
Trusted: yes
Blocked: no
Connected: no
WakeAllowed: yes
LegacyPairing: no
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: Device Information (0000180a-0000-1000-8000-00805f9b34fb)
UUID: Battery Service (0000180f-0000-1000-8000-00805f9b34fb)
UUID: Human Interface Device (00001812-0000-1000-8000-00805f9b34fb)
Modalias: usb:v17EFp60E1d0047
systemctl status bluetooth
给出
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2023-09-19 15:38:20 EDT; 21h ago
Docs: man:bluetoothd(8)
Main PID: 108246 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 9096)
Memory: 2.2M
CPU: 1min 11.582s
CGroup: /system.slice/bluetooth.service
└─108246 /usr/lib/bluetooth/bluetoothd
Sep 19 15:38:20 hamm bluetoothd[108246]: Endpoint registered: sender=:1.3360 path=/MediaEndpoint/A2DPSource/sbc_xq_>
Sep 19 15:38:20 hamm bluetoothd[108246]: Endpoint registered: sender=:1.3360 path=/MediaEndpoint/A2DPSink/sbc_xq_552
Sep 19 15:38:20 hamm bluetoothd[108246]: Endpoint registered: sender=:1.3360 path=/MediaEndpoint/A2DPSource/sbc_xq_>
Sep 19 18:59:26 hamm bluetoothd[108246]: /org/bluez/hci0/dev_C8_7B_23_56_84_6A/fd0: fd(33) ready
Sep 19 20:20:03 hamm bluetoothd[108246]: src/profile.c:ext_io_disconnected() Unable to get io data for Hands-Free V>
Sep 20 04:06:53 hamm bluetoothd[108246]: /org/bluez/hci0/dev_C8_7B_23_56_84_6A/sep1/fd1: fd(33) ready
Sep 20 11:21:06 hamm bluetoothd[108246]: /org/bluez/hci0/dev_C8_7B_23_56_84_6A/sep1/fd2: fd(33) ready
Sep 20 11:48:31 hamm bluetoothd[108246]: profiles/audio/avdtp.c:avdtp_parse_rej() SET_CONFIGURATION request rejecte>
Sep 20 11:48:31 hamm bluetoothd[108246]: src/profile.c:ext_io_disconnected() Unable to get io data for Hands-Free V>
Sep 20 11:48:32 hamm bluetoothd[108246]: src/service.c:btd_service_connect() a2dp-sink profile connect failed for C>
我可以做什么来诊断和纠正这个问题?
答案1
在互联网上做了更多搜索,发现了这个拱门 Linux 帖子 这建议sudo bluetoothctl remove 00:11:22:33:44:55
然后通过标准系统蓝牙控件(GUI)进行配对和连接。我这样做了,现在键盘可以在两个不同的会话中使用。