I have Xubuntu 14.10, with the package pulseaudio-module-bluetooth
installed, which works fine with my Bluetooth headset.
I find annoying though, that the headset is automatically connected to the computer, as very often I want it to be connected to another device.
Is there a way to disable the automatic connection? I can't simply disable Bluetooth as I have a Bluetooth mouse.
Hardware solution:
Obtain a cheap USB mouse.
Put your Bluetooth mouse away somewhere safe.
Attach the USB Mouse
Open a terminal and issue the command
rfkill list
this will give you a listing of rf devices, preceded by an index number.Issue the command
rfkill block n
wheren
is the index number of the device you wish to block (in this case your bluetooth interface)You can re-enable the device with the command
rfkill unblock n
wheren
is the index number of the device you wish to unblock (in this case your bluetooth interface)Note: I don't have bluetooth so I tested this process with a different rf device.
Software solution:
Install blueman bluetooth manager from the Software Center or with this command:
Note: Installation requires the "universe" repository to be active in your software sources.
Open Blueman from the dash.
Select the headset from the list
Click Setup...
A window will open up, on that window, check Do not connect.
Click Next button
You're done
You should be able to connect and disconnect bluetooth devices at will.
Another valid, simple solution: don't trust the device. When the connection popup shows up, just (click on)
Deny
.Install the
blueman
package and runblueman-manager
. Right-click on your headset and choose Remove.This should "unpair" your headset. You can always re-pair using the same tool if you want to connect again.
It's not perfect, but may be a usable workaround for you.
To prevent a specific device from automatically connecting while leaving it paired, you can
untrust
the device inbluetoothctl
.If you turn the device off and on now (while watching
bluetootctl
) you can see it start to connect, but then ask you to trust it and (with no input) eventually timeout. The device will stop sending these connection requests once it pairs with something else.If you want to connect the device, you can accept the trust request from
bluetootctl
(or maybe your GUI depending on your windows manager). You can re-enable autoconnect withtrust <MAC>
inbluetootctl
.