3 Jan 2010

Connect a bluetooth mouse to a Linux EeePC

Insert a USB Bluetooth adapter to provide your EeePC with Bluetooth functionality.

Then, open a terminal (ctrl)(alt)(t) and type:

  • sudo nano /usr/sbin/services.sh


Just above the last “#” in this file, insert:

  • sudo /etc/init.d/dbus start
  • sudo /etc/init.d/bluetooth start
  • hciconfig hci0 reset

Press (ctrl)(x) followed by (y) and then (enter) to overwrite the old file with the new changes. This will start Bluetooth every time you reboot your EeePC. Turn on the Bluetooth mouse and press its Bluetooth connect button, this should make its LED flash or something similar.

Now, open a terminal (ctrl)(alt)(t) and then type:

  • hcitool scan
This should find the Bluetooth mouse and display its Bluetooth address (00:12:5A:68:DA:71 in this case).

Now type:

  • sudo nano /etc/bluetooth/hcid.conf


Scroll to the end of the file and add the following:

device 00:12:5A:68:DA:71 {
name “Bluetooth Mouse”;
}

Where 00:12:5A:68:DA:71 is the Bluetooth address of your device.

Press (ctrl)(x) followed by (y) and then (enter) to overwrite the old file with the new changes.

type:

  • sudo /etc/init.d/bluetooth restart
  • sudo hidd –search
This will connect to your Bluetooth mouse and it should work now. However, to make it connect automatically at every boot, you need to still do the following, type:

  • sudo nano /etc/default/bluetooth


Change the following lines to the values displayed below

HIDD_ENABLED=1
HIDD_OPTIONS=”–master –-connect 00:12:5A:68:DA:71 –server

Where 00:12:5A:68:DA:71 is the Bluetooth address of your mouse.

Press (ctrl)(x) followed by (y) and then (enter) to overwrite the old file with the new changes.

Now reboot your EeePC and when it boots up you should have a working Bluetooth mouse!

Note: You may need to unplug your Bluetooth adapter and then plug it back in at reboot and then move your mouse to detect it properly.

No comments: