How to get bluetooth keyboard work on linux using command line

I have Prodige NanoX small bluetooth keyboard and touchpad which I wanted to use with my Raspberry Pi so here is how I get it to work:

Bus 001 Device 004: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dong0le (HCI mode)

If that’s ok then we can enable dbus and reboot after that:

update-rc.d -f dbus defaults

After reboot we log in as a root and then we need to install bluetooth software:

apt-get install bluetooth bluez-utils blueman

After we have installed all the stuff we have to reboot again and after reboot log in as a root again. Next we have to do a scan for bluetooth devices which are in discovery mode so we can see those:

hcitool scan

If you didn’t see your keyboard on that list you have to put it to discoverable (Prodige NanoX keyboard you have to push bluetooth button for a few seconds). And here we can see my keyboard:

11:22:33:44:55:66 Macro Keyboard

And now we can copy/paste that MAC address 11:22:33:44:55:66 to clipboard because we are going to need it next.

bluez-simple-agent hci0 11:22:33:44:55:66

And after that you need to give PIN code:

root@raspberrypi:~# bluez-simple-agent hci0 11:22:33:44:55:66
RequestPinCode (/org/bluez/5695/hci0/dev_11:22:33:44:55:66)
Enter PIN Code: 0000

And after giving that 0000 press enter and next give that same PIN on your bluetooh keyboard and press enter there too. Next we have to make our keyboard as a trusted bluetooth device:

bluez-test-device trusted 11:22:33:44:55:66 yes

After that we can test our bluetooth keyboard:

bluez-test-input connect 11:22:33:44:55:66

If everything went OK we should now have working bluetooth keyboard.

I had Prodige NanoX but it is pretty much the same keyboard as:

  • Prodige NanoX Bluetooth
  • VisionTek CANDYBOARD Bluetooth Wireless Mini Keyboard with Touchpad
  • Rii Mini Wireless Keyboard
  • Chill Innovation KB-1BT
  • Rii Mini Elegance
  • Diamond design Dune Keyboard

    so if you have any of those you could try same what I did. Let me know if you get this working.

      Leave a Reply

      Your email address will not be published. Required fields are marked *