CAPTCHA
Image CAPTCHA
Enter the characters shown in the image.
This question is for testing whether or not you are human.
  • Create new account
  • Reset your password

User account menu

Home
The Hyperlogos
Read Everything

Main navigation

  • Home
  • My Resumé
  • blog
  • Howtos
  • Pages
  • Contact
  • Search

Manually pairing keyboard and mouse on Ubuntu Lucid

Breadcrumb

  • Home
  • User Blogs
  • User Blog
  • Manually pairing keyboard and mouse on Ubuntu Lucid
By drink | Tue March 13, 2012

Recently I decided to give XBMC Live a try as the alternative to making my own Ubuntu install. I figured they might have it worked out to go a little faster. It looks as though I was right, and it's a great install so far as I can see, but I also discovered that they left out bluetooth. As probably the best cheap option for a good remote is a used Playstation 3 remote available at a gamestop near you for thirty bucks or less, this seems like an unfortunate omission. As I want to use a Logitech MX5000 keyboard hooked up to an MX900's USB Bluetooth dongle/mouse charging cradle, it was especially annoying.

The short answer to that problem was to install bluez and follow the instructions I ferreted out after much searching. To wit:

  1. Change to the directory where the scripts are hiding on lucid
    cd /usr/share/doc/bluez/examples
  2. Find the address of the device you want to pair
    Use hcitool scan to find devices. The mouse showed right up for me, but I had to press the connect button on the keyboard before it would appear. If you've followed some other instructions and used hidd (from the bluez-compat package) to talk to your devices and you're using them right now and are wondering how to make the change permanentSome HOWTOs suggest that you tweak a file to run hidd on boot, but that is the "wrong" way to do it while this procedure is the "right" way, as it uses the trust system built in to bluez and does not require modifying any "system" files., you can use hcitool con to list current connections.
  3. Pair with the device
    ./simple-agent hci0

    If you are prompted for a passcode for the keyboard, make one up and then enter the same thing on the keyboard when prompted. I used 0000 for my mouse and it's working.
  4. Make the pairing permanent
    ./test-device trusted yes

Once the device is trusted it should work fine on subsequent reconnection attempts. I switched off the keyboard, switched it back on, and was able to use it immediately, so I declare the experiment a success. In theory this particular configuration is supposed to also emulate an ordinary HID USB keyboard and a PS/2 mouse so that they can be used before bluetooth drivers are loaded even though they are bluetooth devices, but that doesn't seem to be working for me. It may simply be that I need to perform button-based pairing before the driver loads.

bluetooth
howto
Ubuntu

drink

13 years 6 months ago

Permalink

Driverless use

Ah yes, there we are. I was able to use the buttons on cradle and keyboard to get a pairing that lets me use the keyboard at all times, particularly as a generic HID device until the bluetooth drivers load. Not bad for spending maybe thirty bucks on the whole schmeer.

  • Log in or register to post comments
  • Log in or register to post comments

Footer menu

  • Contact
Powered by Drupal

Copyright © 2025 Martin Espinoza - All rights reserved