Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 help.ubuntu.com/community/BluetoothSetup –  CoalaWeb Oct 26 '12 at 7:25
1  
That looks deprecated, I do not have a /etc/default/bluetooth config, but a /etc/bluetooth folder. –  queueoverflow Oct 26 '12 at 13:36
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.