phi*_*h0x 3 keyboard bluetooth apple intel-nuc
我有一个 Apple 无线键盘和触控板(两者的 AA 电池版本,不是通过闪电电缆充电的最新型号),在英特尔 NUC6i5SYK 内核 4.2.0-27(库存)上运行 Ubuntu 15.10 64 位。我的无线触控板工作正常,没有任何问题。但是,我终生无法让键盘工作。我遵循了几个指南,并设法通过 配对此键盘bluetoothctl,输入 PIN 并看到成功配对。但它根本无法连接……它已配对但无法连接。
我确实看到以下错误使用journalctl:
Authentication attempt without agent
Access denied: org.bluez.Error.Rejected
Run Code Online (Sandbox Code Playgroud)
相同的键盘在 Windows 10 中完美运行,所以我知道它不是蓝牙控制器或键盘本身。触控板也适用于 Windows 10,我使用这个技巧将蓝牙密钥从 Windows 注册表复制到 Linux 中的蓝牙配置:如何避免一直配对蓝牙鼠标? https://superuser.com/questions/229930/finding-bluetooth-link-key-in-windows-7-to-double-pair-a-device-on-dualboot-com
同样,使用这种镜像蓝牙密钥的方法,触控板在 Windows 和 Linux 中都可以正常工作。即使忘记了在 Windows 和 Linux 中配对键盘的目标,并使用新的配对设置键盘,键盘也不会通过 GUI 界面配对。我不得不使用bluetoothctl,甚至那也不可靠。
4.2 中的蓝牙驱动程序是否存在已知问题,或者可能是 Apple 无线键盘的特定错误?
这是开始工作的按钮上的痛苦。我真的很想给出一个准确的答案,但我认为技术有点不稳定,工具也有点尝试。我做了一次成功,然后从我的笔记中再次做一次以确保我的答案是合理的,我又花了一个小时试图让它接受。这些是我在 Ubuntu 16.04 上遵循的步骤(源自 @phireph0x 和 @danielfbm 的答案)。
安装蓝牙控制:
sudo apt install bluetoothctl
Run Code Online (Sandbox Code Playgroud)
运行bluetoothctl。您应该会看到连接设备的初始列表,如下所示:
[NEW] Controller 23:34:17:64:AF:0E ChromeLinux_A00F [default]
[NEW] Device 00:19:32:D3:38:01 Pico the Keyboard
Run Code Online (Sandbox Code Playgroud)
如果您最初没有看到 Apple 键盘也没关系。您应该会在下一部分的第 5 步结束时看到它。
其余步骤来自bluetoothctl命令提示符:
agent KeyboardDisplay
default-agent
Run Code Online (Sandbox Code Playgroud)
scan on。bluetoothctl。这将在您等待提示时异步发生。我的键盘在 20-30 秒后弹出。remove 00:19:32:D3:38:01。替换00:19:32:D3:38:01为在步骤 5 中弹出的键盘。connect 00:19:32:D3:38:01。替换00:19:32:D3:38:01为在第 5 步和第 7 步中弹出的键盘。[bluetooth]# 为[Pico the keyboard]: 。1234并按 Enter。这是蓝牙键盘上的五个击键:1,2,3,4,和回车。[agent] Enter the pin code:
Run Code Online (Sandbox Code Playgroud)
1234并按enter。如果一切正常,您应该会看到Connection successful. 如果连接失败,请关闭键盘并从步骤 2 重试。
故障排除: