BT Keyboard Pairing

Discussion of keyboards, gamepads, joysticks and other input related peripherals.
Koston
Posts: 58
Joined: Sat Feb 13, 2021 12:25 pm
Has thanked: 45 times
Been thanked: 31 times

BT Keyboard Pairing

Unread post 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="")
roto
Posts: 5
Joined: Wed Feb 03, 2021 11:53 am
Has thanked: 2 times

Re: BT Keyboard Pairing

Unread post 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.

Post Reply