Take the 2-minute tour ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

I asked how to install bluetooth, so I can use an existing mouse and keyboard. I was able to get that to work, but the keyboard ceases to function when the GUI is logged out.

That means that I still need a 2.4Ghz keyboard to login, or to use the system prior to starting the GUI.

Does anyone have a solution which will allow me to pair to the bluetooth module automatically, pre-login?

share|improve this question
    
Did you get it working with the command line? If so then it should be simple. If you have to connect using a GUI then I don't know how you can do it pre-login. –  Jivings Jul 5 '12 at 10:06
    
There is, as i understand it, a way to pair using the command line, but I don't know how. The directions I've been able to find indicate connecting from the device side, which isn't functional on a keyboard. It has to be possible, or a bluetooth keyboard wouldn't be at all useful, since you'd still need a separate keyboard for use outside the GUI. –  zenbike Jul 5 '12 at 10:15
    
Arch Users can follow: wiki.archlinux.org/index.php/Bluetooth_Keyboard - it may give you enough hints to write an answer. –  Alex Chamberlain Jul 6 '12 at 13:23
    
Looks good for Arch. Useless for Debian, though, as they've (apparently) deprecated the HIDD package. Thanks, though. –  zenbike Jul 6 '12 at 15:08
1  
I think you will need to start the BT driver before X (system wide) and somehow tell it to search for any paired devices before continuing..might make booting slower. This is just a comment I am not entirely sure how to solve it. But i know how annoying it is! –  ppumkin Jul 31 '12 at 10:32
show 3 more comments

3 Answers 3

This answer for a similar question posted in the Unix Stack Exchange may solve your problem (although I haven't tried it): http://unix.stackexchange.com/a/42593

share|improve this answer
    
You may have noticed that I asked that question as well. –  zenbike Mar 4 '13 at 6:04
add comment

This doesn't answer your question, rather it offers an alternative. You ought to be able use a "wireless" keyboard which uses a USB dongle. To the OS, it appears just like a wired USB keyboard and so on boot, becomes active as soon as USB is active, quite early in the process. There's no need to load the BT stack, which would occur much later. See this question... Is There an Alternative to Bluetooth for Keyboard and Mouse?

share|improve this answer
add comment

To pair from the command line with a phone (i assume to create a pair is the same for a keyboard)

  1. start a bluetooth agent with a pin to pair with the phone $ bluetooth-agent
  2. on a second ssh connection (bluetooth-agent is still running!) $ rfcomm connect hci0 00:AA:BB:CC:DD:EE
  3. phone asks for a pin, put in the same pin from bluetooth-agent, always allow connection
  4. close both rfcomm and bluetooth agent
share|improve this answer
    
This clearly won't work before a log in. –  Alex Chamberlain Sep 28 '12 at 14:04
    
why, cant a script run those 2 commands and then kill them? it should be enough to automatically pair a device on boot. If you want continous connection, i'd use l2ping <bluetoothmac> to check if device is in range. If yes, connect, if not, wait a bit, then ping and check again and so on –  vlad b. Sep 28 '12 at 14:06
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.