Getting Microsoft Bluetooth Mouse working with Ubuntu 8.10

>> Wednesday, September 03, 2008

Got a Microsoft Bluetooth mouse as a gift and didn't have time to set it up on my Ubuntu box. This is how I finally got it working.

(Pre-Conditions : Your bluetooth adapter/dongle should be working)

1. Fire up a terminal and type

hcitool scan

You should see something like
Scanning ...
00:1D:D8:92:59:F6 Microsoft Bluetooth Notebook Mouse 5000

Copy the hardware address found above.

2. Go and edit hcid.conf

sudo gedit /etc/bluetooth/hcid.conf

And put following at the end of that conf file.

device HardwareAddressHere {
name “Microsoft Bluetooth Notebook Mouse 5000”;
}

3. Restart the bluetooth system with the config file.

sudo /etc/init.d/bluetooth restart

You should see some thing like

* Restarting bluetooth [ OK ]

4. Now you need to pair the devices with the computer. Type

sudo hidd --search

You should see something like

Searching ...
Connecting to device 00:1D:D8:92:59:F6

Done. Your mouse should be working now.

This was adapted from this post to suit my requirement.

28 comments:

Marcelo Aranovich Sep 9, 2008 11:05:00 PM  

tks a lot. that's my device. Worked like a breeze. Beautiful! Linux everyone!

Andrew Wood Sep 10, 2008 6:47:00 AM  

You're awesome! Worked like a charm with my Presenter 8000 MS mouse, no dongle.

Eddy Sep 11, 2008 5:57:00 PM  

Wow, this post was very helpful.

I got my Microsoft 5000 bluetooth mouse to work on Ubuntu thanks to this tutorial.

Thanks heaps.

Gorka Sep 19, 2008 1:55:00 PM  

Thanks a lot! It worked!

Peng Sep 23, 2008 4:42:00 PM  

Thanks for the info, very helpful.

With my 8.10 installation, it seems the 'HIDD_ENABLED' inside file /etc/default/bluetooth has to be set to '1' to make sure my mouse gets reconnected after a while of no movement.

exco Sep 26, 2008 8:10:00 PM  

Works like a charm.

Thanks for providing this info - probably saved me some hours of searching and reading :-)

I also needed to add what Peng stated.

Pierre Oct 29, 2008 4:45:00 PM  

Thanks a lot for this...
I have been fighting with my mythtv box because for a strange reason, I always got a really poor range using regular wireless mouse/keyboards.

Today I went to the supermarket and bought the Microsoft BT mouse.

Thanks to your nice post, I got it up and working within 10 minutes.

This solved my problem as the range is much better in my case.

Thanks a thousand times !!!

Pierre

jiG² Oct 31, 2008 5:36:00 AM  

Hi, the mouse works fine, thanks....But the scroll does not work! Any of you had this problem?

Tarun Nov 4, 2008 10:58:00 PM  

thanks a lot... got it working on ubuntu 8.10 , especially since the bluetooth system has moved on.

for pairing, you needn't use hidd (for it may not be present), just click on the bluetooth icon in the tob bar, and select setup a new device.

Anders the Panders Nov 20, 2008 2:40:00 PM  

Had to install hidd (bluez-compat) and then everything worked as a charm with my Logitech bt mouse. Thanks!

ezgoldin Apr 17, 2009 3:14:00 PM  

2. Go and edit hcid.conf

sudo gedit /etc/bluetooth/hcid.conf

And put following at the end of that conf file.

device HardwareAddressHere {
name “Microsoft Bluetooth Notebook Mouse 5000”;
}

-------------------------
I'm a newbie with Linux, and I'm wondering if I got the syntax wrong on the above edit to the hcid.conf file. My MS Bluetooth 5000 mouse still won't work after bringing the system back from suspend. Do I simply insert my hardware address into the above statement then cut and paste the whole thing into the file? Thanks.

Rafael Rosa Fu Apr 26, 2009 3:02:00 PM  

Hi,

Thanks a lot, worked like a charm.

Cheers,
Rafael Rosa Fu
www.rafaelrosafu.com
www.rubyinside.com.br

Priit Apr 29, 2009 8:44:00 AM  

I had to change security from user to auto in order to reconnection at startup/resume works.

So change at /etc/bluetooth/hcid.conf

# Security Manager mode
# none - Security manager disabled
# auto - Use local PIN for incoming connections
# user - Always ask user for a PIN
#
security auto;

Instead of sudo hidd --seacrh, I cleaned all devices, reboot and added mouse again. After that everything works!

wamukota Apr 29, 2009 12:50:00 PM  

Kudos,

My mouse works now with Ubuntu 9.04 / 64-bit

Jordan May 12, 2009 12:24:00 AM  

After installing bluez-compat from another forum I found, this fix worked perfectly on my HP Mini 1000 with Ubuntu 9.04 netbook edition. Thanks very much!!!!

gaston Jun 2, 2009 1:07:00 PM  

Thank you very much I had a good understanding on how this works

Caesar Jun 12, 2009 4:51:00 PM  

thanks for the guide but i have a problem...
when i type sudo hidd --search
it says that the command doesn`t exist...what could be the problem?
thanks a lot for the help,

Caesar Jun 12, 2009 4:55:00 PM  

never mind i fixed it now it works thanks a lot for the help :)

php_newbie Jul 23, 2009 4:07:00 PM  

this did work for me too. However, I am having another problem with my MS Bluetooth mouse 5000. After using your procedure, the mouse connects and works as expected. Every three minutes, the mouse disconnects, and it takes several seconds for it to connect again. Then it works well, until the next three minute interval, disconnects again, takes several seconds to reconnect. It does this constantly. Does anyone have a clue on how to correct this? I have a Dell D620 Latitude Laptop, and MS Bluetooth Notebook Mouse 5000 running Ubuntu 2.6.24-24-generic #1 SMP Tue Jul 7 19:46:39 UTC 2009 i686 GNU/Linux. Here are some lines from /var/log/messages


Jul 23 13:02:46 pauld-f5laptop kernel: [14184.650927] usb 1-2.4: USB disconnect, address 36
Jul 23 13:02:46 pauld-f5laptop kernel: [14185.123097] usb 1-2.4: new full speed USB device using uhci_hcd and address 37
Jul 23 13:02:47 pauld-f5laptop kernel: [14185.288043] usb 1-2.4: configuration #1 chosen from 1 choice
Jul 23 13:02:57 pauld-f5laptop kernel: [14195.928729] input: Microsoft Bluetooth Notebook Mouse 5000 as /devices/pci0000:00/0000:00:1d.0/usb1/1-2/1-2.4/1-2.4:1.0/hci0/acl001DD898287D/input/input40
Jul 23 13:04:47 pauld-f5laptop kernel: [14305.662291] usb 1-2.4: USB disconnect, address 37
Jul 23 13:04:48 pauld-f5laptop kernel: [14306.133487] usb 1-2.4: new full speed USB device using uhci_hcd and address 38
Jul 23 13:04:48 pauld-f5laptop kernel: [14306.290414] usb 1-2.4: configuration #1 chosen from 1 choice
Jul 23 13:05:57 pauld-f5laptop kernel: [14377.845866] input: Microsoft Bluetooth Notebook Mouse 5000 as /devices/pci0000:00/0000:00:1d.0/usb1/1-2/1-2.4/1-2.4:1.0/hci0/acl001DD898287D/input/input41

Trimix Aug 3, 2009 1:14:00 PM  

hy, thank you for the great help on your site! it works fantastic with the mouse!

Br3nda of coffee.geek.nz Aug 22, 2009 2:36:00 AM  

Thanks for this - works great.
The gnome gui method doesn't work at all. your cli version does the trick

Sakthi Sep 5, 2009 11:38:00 AM  

Thanks guys. I didn't have any issue with my earlier kensington BT mouse, but these steps worked like charm for my new MS mouse. LINUX Community Rocks......

Martin Sep 14, 2009 3:38:00 PM  

This works fine! many thanks!!!

GreenAppleBlue Feb 18, 2010 5:32:00 PM  

Yes! Thank you! Although you can skip:
sudo hidd --search
if you don't have hidd installed and just go straight to the bluetooth manager and setup the device from there.

Iskander Feb 21, 2010 12:43:00 AM  

You rock!!! I could finally set up Microsoft Wireless Notebook Presenter Mouse 8000 to work with stock software in Ubuntu 9.10 without installing blueman. Instead of editing hcid.conf, edit input.conf and there is no need to run hidd.

lia Apr 18, 2010 5:39:00 PM  

thanks alot!!!!!
that was great help and very easy guide even for a newbie like me :) !!!

Leigh Ann May 29, 2010 4:53:00 PM  

Sweet! thanks so much!

Ricard Bou Jan 17, 2012 9:56:00 AM  

Wow!! It works smooth... But I didn't follow your recipe by the book.

*) In Ubuntu 11.10 there is not hcid.conf file, but rfcomm.conf :)
*) I had to apt-get install bluez-compat too

Thank you for the crumbs in the way!