[942157 views]

[]

[toggle ads]

Odi's astoundingly incomplete notes

New entries | Code

bluez pairing with Apple wireless keyboard

The new-style bluez utilities are a bit different than the old ones. Here is how to pair an Apple Wireless Keyboard with the command line utilities only:

Remove and reinsert the batteries from the keyboard. Turn the keyboard on. The light should be flashing.

In a root shell do:
hcitool scan
Scanning ...
        11:22:33:44:55:66       Apple Wireless Keyboard
simple-agent hci0 11:22:33:44:55:66
Type a PIN (any four numbers) followed by Enter on the keyboard. Enter the PIN into the simple-agent shell when prompted. The keyboard is paired now. Now trust and connect the device:

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


posted on 2010-08-22 11:31 CEST in Code | 0 comments | permalink