ubuntu 18.04连接蓝牙鼠标或键盘,系统重启后不自动连接,甚至出现无法再次连接的情况,即使删除重新适配连接也连接不上
写在最后
解决的关键在删除设备和信任设备,其余的步骤可选择性进行操作
ubuntu 18.04连接蓝牙鼠标或键盘,系统重启后不自动连接,甚至出现无法再次连接的情况,即使删除重新适配连接也连接不上
打开终端,输入bluetoothctl,进入蓝牙实用工具
~$ bluetoothctl
输入list检索主控设备,例如我这里显示的
# list
Controller 48:E2:44:E2:5F:82 mac-ThinkPad-E580 [default]
选择主控设备select [mac addr]
~# select 48:E2:44:E2:5F:82 //例如我这里
如果蓝牙处于关闭状态,请先开启power on
~# power on //关闭为power off
查看状态 show,出现以下信息
~# show
Controller 48:E2:44:E2:5F:82 (public)
Name: mac-ThinkPad-E580
Alias: mac-ThinkPad-E580
Class: 0x001c010c
Powered: yes
Discoverable: yes
Pairable: yes
UUID: Headset AG (00001112-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: OBEX File Transfer (00001106-0000-1000-8000-00805f9b34fb)
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: OBEX Object Push (00001105-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
UUID: IrMC Sync (00001104-0000-1000-8000-00805f9b34fb)
UUID: Audio Source (0000110a-0000-1000-8000-00805f9b34fb)
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
UUID: Vendor specific (00005005-0000-1000-8000-0002ee000001)
UUID: Message Notification Se… (00001133-0000-1000-8000-00805f9b34fb)
UUID: Phonebook Access Server (0000112f-0000-1000-8000-00805f9b34fb)
UUID: Message Access Server (00001132-0000-1000-8000-00805f9b34fb)
UUID: Headset (00001108-0000-1000-8000-00805f9b34fb)
Modalias: usb:v1D6Bp0246d0532
Discovering: no
查看设备 devices ,这里的设备并不是已经适配过的,如果你在ui界面搜索过,即使没有适配也会在这里
~# devices
Device 70:F0:87:23:FB:F4 “ Magic mouse 2
Device EA:AE:C8:B0:5E:88 ThinkPlus BT Laser Slim Mouse
删除设备 remove [mac addr]
~# remove 70:F0:87:23:FB:F4
~# remove EA:AE:C8:B0:5E:88
重新适配并连接设备,这里可以回到ui界面(系统设置-蓝牙)进行操作,也可直接进行操作,建议到系统中设置
~# pair 70:F0:87:23:FB:F4
~# connect 70:F0:87:23:FB:F4
信任设备 trust [mac addr],这里是关键的一步,上面的步骤可选择性进行操作
~# trust 70:F0:87:23:FB:F4
写在最后
解决的关键在删除设备和信任设备,其余的步骤可选择性进行操作
(责任编辑:IT) |