Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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'm using Mint 15 w/ cinammon.

I bought a set of bluetooth speakers and i'm tring to connect to them via terminal. Via GUI i can see them normally and i am connected to them. I want to make a small script so everytime they are visible i would connect to them automatically.

I am trying to scan them with:

hcitool scan

But i get


and after a few seconds the process dies.

The same thing with hidd --search.

If i run hciconfig scan i get:

hci0:   Type: BR/EDR  Bus: USB
    BD Address: 40:2C:F4:78:E8:69  ACL MTU: 1021:8  SCO MTU: 64:1
    RX bytes:130700 acl:22 sco:0 events:18527 errors:0
    TX bytes:31875398 acl:36784 sco:0 commands:75 errors:0

I suppose that is just saying my bluetooth address and that it is turned on.

As i said already, via the normal User Interface, i can see the speakers and i am connected to them, but through terminal i get nothing.


Actually it is quite funny that hcitool scan isn't finding anything since my speakers are connected and every time i run the command the sound from the speakers breaks for a couple of seconds.

share|improve this question
up vote 12 down vote accepted

I managed to do so via bluez-tools :

sudo apt-get install bluez-tools

List of devices to get the MAC address of my device:

bt-device -l

and successfully connect to it:

bt-audio -c 01:02:03:04:05:06zz

share|improve this answer

I did to sudo apt-get install bluez-tools, because I did use it at some point.

After being able to find the device from hcitool scan, I ran bluez-simple-agent hci0 X where X is the mac address of the device I was adding. This created the connection to the device.

Then I ran hciconfig scan and it seems to have automatically started the connection.

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.