我有一个蓝牙鼠标,它与我的笔记本电脑配对,并且一直与 ubuntu 完美配合。最近在一次更新之后,它仍然是配对设备,但无法连接。
我已移除设备并修复,但仍然没有成功。这是 bluetoothctl 显示的内容:
bluetoothctl
[NEW] Controller 4C:34:88:2D:E4:CE HP-ENVY-Notebook [default]
[NEW] Device E8:A1:FB:14:98:93 BluetoothMouse3600
Agent registered
[bluetooth]# devices
Device E8:A1:FB:14:98:93 BluetoothMouse3600
[bluetooth]# scan on
[NEW] Device E8:A1:FB:14:98:93 BluetoothMouse3600
bluetooth]# pair E8:A1:FB:14:98:93
Attempting to pair with E8:A1:FB:14:98:93
[CHG] Device E8:A1:FB:14:98:93 Connected: yes
[NEW] Primary Service
/org/bluez/hci0/dev_E8_A1_FB_14_98_93/service0008
00001801-0000-1000-8000-00805f9b34fb
Generic Attribute Profile
[NEW] Primary Service
/org/bluez/hci0/dev_E8_A1_FB_14_98_93/service0009
0000180a-0000-1000-8000-00805f9b34fb
Device Information
[NEW] Characteristic
/org/bluez/hci0/dev_E8_A1_FB_14_98_93/service0009/char000a
00002a29-0000-1000-8000-00805f9b34fb
Manufacturer Name String
[NEW] Characteristic
/org/bluez/hci0/dev_E8_A1_FB_14_98_93/service0009/char000c
00002a50-0000-1000-8000-00805f9b34fb
PnP ID
[CHG] Device E8:A1:FB:14:98:93 UUIDs: 00001800-0000-1000-8000-00805f9b34fb
[CHG] Device E8:A1:FB:14:98:93 UUIDs: 00001801-0000-1000-8000-00805f9b34fb
[CHG] Device E8:A1:FB:14:98:93 UUIDs: 0000180a-0000-1000-8000-00805f9b34fb
[CHG] Device E8:A1:FB:14:98:93 UUIDs: 0000180f-0000-1000-8000-00805f9b34fb
[CHG] Device E8:A1:FB:14:98:93 UUIDs: 00001812-0000-1000-8000-00805f9b34fb
[CHG] Device E8:A1:FB:14:98:93 ServicesResolved: yes
[CHG] Device E8:A1:FB:14:98:93 Modalias: usb:v045Ep0916d0100
[CHG] Device E8:A1:FB:14:98:93 Paired: yes
Pairing successful
[CHG] Device E8:A1:FB:14:98:93 ServicesResolved: no
[CHG] Device E8:A1:FB:14:98:93 Connected: no
[bluetooth]# trust E8:A1:FB:14:98:93
[CHG] Device E8:A1:FB:14:98:93 Trusted: yes
Changing E8:A1:FB:14:98:93 trust succeeded
[bluetooth]# connect E8:A1:FB:14:98:93
Attempting to connect to E8:A1:FB:14:98:93
Failed to connect: org.bluez.Error.Failed
一些有趣的 Syslog 条目:
bluetoothd[3564]: Write report characteristic descriptor failed: Request attribute has encountered an unlikely error
bluetoothd[3564]: Failed to connection details: getpeername: Transport endpoint is not connected (107)
bluetoothd[3564]: Write report characteristic descriptor failed: Request attribute has encountered an unlikely error
答案1
我安装了 blueman
“apt-get 安装 blueman”
然后删除设备并将其重新添加到 blueman 管理器中
“/usr/bin/blueman-manager”
奇怪的是,当直接使用 gnome 界面添加时,这个功能不起作用,但很高兴它能起作用 :-)