I have the same keyboard and have got this going without using the bluez-compat package using the Debian Wheezy-based Raspbian. Here's how:
First, press and hold bluetooth button on device until it flashes, then:
Code: Select all
# aptitude install bluetooth
# hcitool dev
Devices:
hci0 00:15:83:0C:BF:XX
# hcitool scan
Scanning ...
DC:2C:26:D8:A5:XX Macro Keyboard
# bluez-simple-agent hci0 DC:2C:26:D8:A5:XX
RequestPinCode (/org/bluez/1851/hci0/dev_DC_2C_26_D8_A5_4F)
Enter PIN Code: 0000
... now type same pin code (you can see I chose 0000 above) on the keyboard and hit enter. Then to connect the keyboard:
Code: Select all
# bluez-test-input connect DC:2C:26:D8:A5:4F
bluez-simple-agent should only need to be done once to pair the keyboard, and the pairing will last between reboots. It's the approach you'd use to pair any bluetooth device (I wrote more about it
here to pair a bluetooth serial device). Once it's paired
bluez-test-input connect will connect the keyboard and
bluez-test-input disconnect will disconnect it. If you want to forget any pairing, it's
bluez-simple-agent hci0 DC:2C:26:D8:A5:XX remove.
Of course this isn't specific to the Raspberry Pi - It should also work on other Debian or Ubuntu systems with BlueZ 4.0.
As for how to get it to work on reboot, try adding
bluez-test-input connect to /etc/init.d/rc.local. That will work, although no doubt there's a more "official" way to do it.