Announcement

Collapse
No announcement yet.

Connect to Bluetooth audio device from command line?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Connect to Bluetooth audio device from command line?

    Hi! I have a Bluetooth audio device. I can connect to it perfectly fine using the GUI. Now I am trying to connect to it using the command line.

    I have read somewhere that you can do it with the command bt-audio, which is included in some versions of the bluez-tools package. E.g. here: https://linuxcommando.blogspot.dk/20...bluetooth.html
    But the version of bluez-tools that comes with Kubuntu 17.10 does not have bt-audio. I think it is deprecated for some reason.

    I have tried the script posted by user doublerebel in this thread: https://askubuntu.com/questions/4800...m-command-line
    When I run that script (with my MAC address) it fails with the following error:

    Code:
    Error org.freedesktop.DBus.Error.UnknownMethod: Method "DefaultAdapter" with signature "" on interface "org.bluez.Manager" doesn't exist
    
    Connecting to /dev_MAC_address_of_my_particular_device...
    Error org.freedesktop.DBus.Error.UnknownObject: Method "Disconnect" with signature "" on interface "org.bluez.AudioSink" doesn't exist
    I suck at bash, so I cannot tell from the above how to fix the script, but apparently the syntax used in the script doesn't work with my version of bluez-tools.

    Has anyone been able to achieve this on Kubuntu 17.10?
Working...
X