I don’t think so there is need of installing bluez-test package and dependencies rather you can use dbus only.
You should pair keyboard and phone.
Switch to developer mode and launch terminal on your device.
Create shell script
Code:
(DC_2C_26_B8_00_40 <- replace with keyboard bt address):
cat > keybt.sh << EOF
#!/bin/sh
export BTADAPTER=`dbus-send --system --dest=org.bluez --print-reply / org.bluez.Manager.DefaultAdapter | tail -1 | sed 's/^.*"\(.*\)".*$/\1/'`
dbus-send --system --dest=org.bluez --print-reply $BTADAPTER/dev_DC_2C_26_B8_00_40 org.bluez.Input.Connect
EOF
chmod 755 keybt.sh
Now run the script in order to connect with keyboard
Bookmarks