khvzak / bluez-tools

A set of tools to manage bluetooth devices for linux
GNU General Public License v2.0
179 stars 53 forks source link

bt-audio depreciated #13

Open ricitron opened 8 years ago

ricitron commented 8 years ago

Any plans to bring bt-audio back in the current version?

khvzak commented 8 years ago

Yes, I'm working on a new version

dooty commented 8 years ago

To validate the Bluetooth headset in Linux ARM platform. What and which are the binaries required from Bluez

appdev-w commented 7 years ago

Thanks to khvzak for responding and announcing an new up and coming version. I have been occupied by other coding projects, but I look forward to the new version and to contributing further to the project, as it does need a significant overhaul.

Notaduck commented 7 years ago

Any news regarding the audio?

mk-pmb commented 7 years ago

Meanwhile, here's my current shim for bt-audio --connect= on Ubuntu Xenial:

  <<<"agent on
      trust $BT_DEV
       pair $BT_DEV
    connect $BT_DEV
    quit" bluetoothctl

Bash code, $BT_DEV is the MAC. Unusual indentation because additional spaces in the middle were parsed as part of the device name.

Output is misleading when you send all commands immediately because bluetoothctl doesn't have enough time to give good feedback. Nonetheless, a few moments after I run the above, audio playback works, so I don't care about adding delays. If you want that, e.g. to verify the success message, try something like ( sleep ; echo ; sleep ) | bluetoothctl.

SergioGeeK7 commented 7 years ago

Hi @mk-pmb , I'm using your bash and getting No agent is registered Thanks

mk-pmb commented 7 years ago

In that case, try running bluetoothctl manually, and enter each command only when bluetoothctl is ready, i.e. had no output messages for a few seconds. This way you should be able to see which of the steps worked, which failed, and why.

PS: Also see my note about misleading output above. Use a tool like pavucontrol to check whether your BT audio device appears within 10 (maybe 30) seconds after what had looked like a failure.

austinzuffi commented 4 years ago

PS

pavucontrol worked for setting audio playback to my bluetooth audio device anyone know how configure pulseaudio from command line?

mk-pmb commented 4 years ago

anyone know how configure pulseaudio from command line?

You could use pacmd and/or pactl.

praveeenpatel commented 4 years ago

[bluetooth]# scan on Failed to start discovery: org.bluez.Error.NotReady

praveeenpatel commented 4 years ago

[bluetooth]# connect 0A:0A:BE:00:38:6C Attempting to connect to 0A:0A:BE:00:38:6C Failed to connect: org.bluez.Error.NotReady