Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a bluetooth mouse (Apple Mighty Mouse) which I use with Kubuntu (KDE). I always have to manually connect to the mouse, although it is listed as a trusted device. How can I automatically connect the mouse when I have it turned on? Or at least reconnect after suspend?

share|improve this question
You might want to try the method mentioned here – CoalaWeb Oct 26 '12 at 7:25
That looks deprecated, I do not have a /etc/default/bluetooth config, but a /etc/bluetooth folder. – Martin Ueding Oct 26 '12 at 13:36

You can use hciconfig to do that.

First manually connect your mouse as you usually do, then open a terminal and run hciconfig -a to retrieve its name. It should be something like hciX where X is the number of your device. You can either use hcitool scan, it should give the name as well.

Once this is done, you can force the bluetooth device detection by running

sudo hciconfig <name_of_your_mouse> reset

In order to do that automatically at every boot, you want to edit /etc/init.d/bluetooth and append the magic line at the end of the file : hciconfig <name_of_your_mouse> reset. Then save, reboot, and it should work forever.

Also make sure that your mouse is plugged in at boot time. If you plug it in after booting you will have to manually detect the mouse again.

Hope this helps.

share|improve this answer

Your Answer


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.