Set keyboard discoverable:
hcitool scan
Copy mac address XX:XX:XX:XX:XX:XX:
sudo bluez-simple-agent hci0 XX:XX:XX:XX:XX:XX
Which will hopefully return something like:
DisplayPasskey (/org/bluez/537/hci0/..., 123456)
The number at the end of the string represents the PIN you need to enter for pairing. Enter those numbers on your bluetooth device and confirm with return. On success you should get:
Release
New device (/org/bluez/...)
Set device as trusted:
sudo bluez-test-device trusted XX:XX:XX:XX:XX:XX yes
You might have a connection now, but i still needed to:
sudo bluez-test-input connect XX:XX:XX:XX:XX:XX
Reboot and hope for the best.
Reset pairing:
sudo bluez-simple-agent hci0 XX:XX:XX:XX:XX:XX repair
Start over.
Stolen from here.
sudo apt-get install build-essential
./build.sh
sudo ./k810_conf -d /dev/hidraw<X> -f on
You will have to replace by the hid number that was assigned to your keyboard. Of course there are more clever ways, but just work through the numbers brute force starting with hidraw0. The script is clever enough to detect if it’s not the K810.