Page 1 of 1

BT Keyboard Pairing

Posted: Wed Oct 19, 2022 12:53 pm
by Koston
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="")

Re: BT Keyboard Pairing

Posted: Thu Feb 22, 2024 8:44 pm
by roto

A BELATED THANK YOU! I had this issue with pairing a Logitech Ergo K860 and added the line in your modification to the btctl script. It worked perfectly.