Since I haven't configured it myself, these are the notes I got from Benjamin Eikel (gmane), (based on the ones from Janis Münch):
- Enable authentication and encryption in /etc/bluetooth/hcid.conf
device {
auth enable;
encrypt enable;
} - Restart the Bluetooth subsystem
/etc/init.d/bluetooth restart - Initiate authentication
Hit a button on the keyboard to make it try to connect, then enter your PIN on the keyboard. - Complete the handshake
Either use a script as pin_helper that echoes a static PIN and remote the computer via SSH or connect a second (cabled ;) keyboard to enter the pin in your pin_helper of choice. - Repeat procedure with Mediapad
- Repeat procedure with mouse
For PIN, use 0000 on the computer.
If it doesn't work the first time, press the "Connect"-button under the mouse and issue "hidd --connect <bdaddr of mouse>" from the computer.