I managed to get an "Apple Wireless Keyboard" and "Apple Magic Mouse" working. The is a lot of crap out there on how to do it. This is what worked here (blueman did NOT work).
The advantage of doing it this way is that the keyboard and mouse are available without X.
Here they work at boot.
Get root (
If you do not know what you are doing as root find out )
sudo -i
apt-get install bluetooth bluez-tools
Wait a long time....
check bluetooth status:
/etc/init.d/bluetooth status
You may need to start bluetooth, if its not running:
/etc/init.d/bluetooth start
I edited /etc/default/bluetooth and set HID2HCI_ENABLED=1
not sure if this is needed though... If you change it you will want to do
/etc/init.d/bluetooth restart
My 512M PI crashes if plug the adapter after boot... You should test to see if your adaptor is working with (
dmesg is also useful ) :
hciconfig -a
You should see a line with "UP RUNNING PSCAN" probably on hci0
If its down you it may come up with:
hciconfig hci0 up
Once hci0 is up, find the address of the device you want to pair:
hcitool scan
and copy the bluetooth address to use in the following commands
pair the keyboard (here an old apple wireless keyboard):
bluez-simple agent hci0 <bt address>
it will prompt you for a pin, enter a 4 digit number for the keyboard, then type in on the keyboard and press enter on it. For the mouse try 0000 or 1234. If you need to pair
again you may get and error. If so append "repair" after the <bt address> and the old
pairing is deleted.
trust the device:
bluez-test-device trusted <bt address> yes
and connect it:
bluez-test-input connect <bt address>
repeat the pairing, trusting, connects for each device. I have only tested this with input
devices (eg keyboard and mouse).
Works here. Your mileage may vary
PS. before anyone asks. My bluetooth adapter is labeled "ASUS" and
lsusb reports:
Bus 001 Device 004: ID 0cf3:3005 Atheros Communications, Inc. AR3011 Bluetooth
I use a beklin n300 for wifi:
Bus 001 Device 005: ID 050d:2103 Belkin Components F7D2102 802.11n N300 Micro Wireless Adapter v3000 [Realtek RTL8192CU]
Both devices just worked. You do have to boot with them plugged into the PI to avoid crashes...