如何在终端中配对需要输入密码的蓝牙键盘?
我有一个想与Ubuntu Touch Aquaris E4.5配对的Bluetooth ThinkPad 2 Tablet键盘。由于GUI的限制,我想尝试在终端中执行此操作。我希望该过程与Ubuntu桌面上的过程相似。 在Ubuntu Desktop 15.10上,配对键盘时,GUI对话框中会显示以下消息: Please enter the following PIN on "ThinkPad keyboard" and press "Enter" on the keyboard: <6-digit number> 在蓝牙键盘上输入6位PIN码,然后按可以Enter完成键盘的配对,并且可以正常工作。当我尝试在Ubuntu Touch上配对键盘时,没有显示GUI对话框,显示要在Bluetooth键盘上输入的代码。因此,我想尝试在终端中配对键盘。 我尝试了以下方法: phablet@ubuntu-phablet:~$ hcitool scan Scanning ... AB:CD:EF:GH:IJ:KL ThinkPad Keyboard phablet@ubuntu-phablet:~$ bluez-simple-agent AB:CD:EF:GH:IJ:KL RequestPinCode (/org/bluez/863/hci0/dev_AB_CD_EF_GH_IJ_KL) Enter PIN Code: 0000 Release Creating device failed: …