15

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?

zenbike
  • 2,490
  • 6
  • 19
  • 26
  • 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 05 '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 05 '12 at 10:15
  • Arch Users can follow: https://wiki.archlinux.org/index.php/Bluetooth_Keyboard - it may give you enough hints to write an answer. – Alex Chamberlain Jul 06 '12 at 13:23
  • Looks good for Arch. Useless for Debian, though, as they've (apparently) deprecated the HIDD package. Thanks, though. – zenbike Jul 06 '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! – Piotr Kula Jul 31 '12 at 10:32
  • Are you able to use your dongle & keyboard to access the BIOS on a normal PC? – Graham Wager Sep 14 '12 at 11:15
  • @GrahamWager: yes, on Windows or on Mint it works to access BIOS and login screens. – zenbike Sep 15 '12 at 04:33
  • It shouldn't be too difficult. I started to follow this procedure but I'm too tired now to reach the end. Uh, maybe the first dbus command can be easily replaced by a hcitool dev... give it a try and good luck! – Avio Sep 26 '12 at 19:38

3 Answers3

1

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?

CPRitter
  • 1,061
  • 10
  • 15
1

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

Rob_Bishop
  • 311
  • 2
  • 5
-3

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
vlad b.
  • 262
  • 2
  • 9
  • 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 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