D-Bus Setup Failed: Name Already in Use

How to resolve issue mentioned as title?

Trying to execute below command (with bluez-5.37 and Ubuntu 14.04):

brij@brij:~/Downloads/bluez-5.37/src$ sudo ./bluetoothd --plugin=time -n
bluetoothd[29255]: Bluetooth daemon 5.37
D-Bus setup failed: Name already in use
bluetoothd[29255]: Unable to get on D-Bus

1 Answer

Well, the message means that another/running daemon is using the same bus name.

  • Check using:

    $ ps aux | grep blue
    sneetsh+  2226  0.0  0.0 333592  5432 ?        Ssl  08:00   0:00 /usr/lib/x86_64-linux-gnu/indicator-bluetooth/indicator-bluetooth-service
    sneetsh+  2318  0.0  0.6 605972 48636 ?        Sl   08:00   0:00 /usr/bin/python /usr/bin/blueman-applet
    sneetsh+  2765  0.0  0.0  31484  3348 ?        S    08:00   0:00 /usr/lib/bluetooth/obexd
    root      5327  0.0  0.0  29864  4504 ?        Ss   09:03   0:00 /usr/lib/bluetooth/bluetoothd
    sneetsh+  5361  0.0  0.0   9592  2192 pts/2    S+   09:04   0:00 grep --color=auto blue
    

    Or system monitor (graphic user interface).

  • Another option, d-feet, it is DBus browser. In the bottom left corner, you can see the owner process.

Then sudo kill it or sudo service ... stop it if it's service. For default Ubuntu setup, it has a service, so run:

rfkill block bluetooth
sudo service bluetooth stop

Run your local daemon then enable bluetooth again

rfkill unblock bluetooth

Without switching of bluetooth, the bluetooth service will re-spawn again.

18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest