BT Keyboard Pairing
Posted: Wed Oct 19, 2022 12:53 pm
To get cmdline utility btpair to work with HHKB Hybrid, I needed to modify the script a bit to show PIN code sent from my keyboard to MiSTer. Patch below.
Code: Select all
--- /usr/sbin/btctl.orig
+++ /usr/sbin/btctl
@@ -146,6 +146,7 @@
@dbus.service.method(AGENT_INTERFACE, in_signature="ouq", out_signature="")
def DisplayPasskey(self, device, passkey, entered):
+ msg("Type %06u and <Enter>" % (passkey))
debug_msg("DisplayPasskey (%s, %06u entered %u)" % (device, passkey, entered))
@dbus.service.method(AGENT_INTERFACE, in_signature="os", out_signature="")