Hi. So recently I've been wanting to use a bluetooth keyboard with my raspberry Pi so that I don't have to have a huge cable trailing across the floor. I've bought a bluetooth keyboard that works fine (tested with android tablet) and a USB bluetooth adapter/dongle.
After 1hr30min of messing with the command line in XBMC I managed to get the bluetooth keyboard to pair with the RPi and get it typing. Upon restarting the RPi the keyboard will not connect anymore. I do the same steps again and, to my surprise, the RPi has actually remembered the keyboard and worked again. The commands I did were as follows:
sudo bash
lsusb -v
invoke-rc.d bluetooth restart
bluez-simple-agent hci0 xx:xx:xx:xx:xx:xx <---- device name/address
bluez-test-input-connect xx:xx:xx:xx:xx:xx yes
Now, after a few second, the keyboard works. What I need help with is shoehorning the above into a startup script that will run when XBMC starts so that I don't have to use a USB keyboard to type it all. I'd also like to know whether there's any chance of a script being wrote that can auto-reconnect the keyboard if it is turned off and back on.
EDIT: I've put the SD card containing XBMC into my PC via SD card reader and I can only see 10 different items, none of which are editable as far as I can see. It looks like "start.elf" and "start_x.elf" are what i'm interested in, but I cant find anything to edit them with.
Thanks.
After 1hr30min of messing with the command line in XBMC I managed to get the bluetooth keyboard to pair with the RPi and get it typing. Upon restarting the RPi the keyboard will not connect anymore. I do the same steps again and, to my surprise, the RPi has actually remembered the keyboard and worked again. The commands I did were as follows:
sudo bash
lsusb -v
invoke-rc.d bluetooth restart
bluez-simple-agent hci0 xx:xx:xx:xx:xx:xx <---- device name/address
bluez-test-input-connect xx:xx:xx:xx:xx:xx yes
Now, after a few second, the keyboard works. What I need help with is shoehorning the above into a startup script that will run when XBMC starts so that I don't have to use a USB keyboard to type it all. I'd also like to know whether there's any chance of a script being wrote that can auto-reconnect the keyboard if it is turned off and back on.
EDIT: I've put the SD card containing XBMC into my PC via SD card reader and I can only see 10 different items, none of which are editable as far as I can see. It looks like "start.elf" and "start_x.elf" are what i'm interested in, but I cant find anything to edit them with.
Thanks.