News for hackers. Stuff that matters.
Re:Ask HN: What do you want to see in Ubuntu 17.10? by gbog on Friday March 31, 2017 @09:31AM (#14003531)
FLAVOUR: Ubuntu Desktop

HEADLINE: Bluetooh that works

DESCRIPTION: I never managed to have my PC playing music through blutooth to a bluetooth loudspeaker. (I'm using Xbuntu, playing mp3s with mpv.) I think it could be because the audio system seems messy: should I have jackd enabled? What is it? So maybe the headline should be to cleanup audio system, specially its routes.

Re:Ask HN: What do you want to see in Ubuntu 17.10? by pizza234 on Friday March 31, 2017 @09:46AM (#14003691)
You have two options to try:

    1. install the pulseaudio-bluetooth-module, if you didn't
    2. follow the procedure below
BT in Ubuntu is in an embarrassing state, and I'm not exaggerating. After they've upgraded bluez to version 5, the workflow for connecting BT audio peripherals is:

    - connect the peripheral (takes a few attempts...)
    - disable the profile (set to off)
    - disconnect the peripheral
    - re-connect the peripheral (takes a few attempts again...)
    - set the profile to a2dp
this mad workflow has been consistent across multiple machines and audio peripherals.

Before the v5, the BT stack was still garbage, requiring changes (again, verified on multiple machines and peripherals) to obscure parameters in the bluez configuration.

So "please Ubuntu devs", try to produce a working BT stack, and stick with it.

Re:Ask HN: What do you want to see in Ubuntu 17.10? by dkozel on Friday March 31, 2017 @02:24PM (#14006556)
I follow a nearly identical flow several times a day to connect bluetooth headphones to my laptop.

- Turn on headphones * Laptop connects immediately and uses the HSP/HFP mode (works!) * Trying to select A2DP appears to work, but no audio will play - Disconnect the headphones using the Bluetooth manager - Reconnect the headphones using the Bluetooth manager - Select A2DP, this now works.

https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1438510

Separately, many web videos will stop playing and refuse to play when the Bluetooth audio device is selected.

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1589008

Re:Ask HN: What do you want to see in Ubuntu 17.10? by pizza234 on Friday March 31, 2017 @05:13PM (#14008302)
OK, well, this had to be released before or later ;-)

Here you can find a script which automates the connection to bluetooth headphones, executing (in ruby) the steps outlined above, using the bluez commandline tool (including: retry until the connection is established...):

https://gist.github.com/anonymous/8f6058df9a879292bc8dbd3aaf...

As usual, you need to give execution permissions, or pass it to the ruby interpreter. It's designed to executed via terminal, call it from GUI has undefined behavior.

Re:Ask HN: What do you want to see in Ubuntu 17.10? by mijoharas on Tuesday April 04, 2017 @09:20AM (#14032261)
There is also currently a bug where you can't connect to an amazon echo via bluetooth [0]. I suspect it is a bluez issue or pulseaudio, as it happens across distros, but it does make me feel quite sad that it is this difficult.

Reminds me of how much of a pain printers could be and scanners can still be..

[0] https://askubuntu.com/questions/871630/cant-send-audio-to-am...

Re:Ask HN: What do you want to see in Ubuntu 17.10? by gbog on Friday March 31, 2017 @10:16AM (#14003990)
Thanks I think I tried exactly this but will try again. Actually I'd like a command line way which should be more deterministic.
Re:Ask HN: What do you want to see in Ubuntu 17.10? by blablabla123 on Friday March 31, 2017 @10:15AM (#14003983)
That's a super important one. Audio on Linux/Ubuntu is okay, but when you run into serious troubles you're screwed. Nobody can help you unless you pay someone, other options: get a new computer, install a different Ubuntu, distribution or switch to Open Sound System. The only thing that always worked through all the years but it has obvious drawbacks.
Re:Ask HN: What do you want to see in Ubuntu 17.10? by fiddlerwoaroof on Friday March 31, 2017 @01:15PM (#14005885)
Hmm, I've done well enough (on Debian testing) by enabling dmix in alsa and sending sound through alsa by default and letting pulseaudio start on demand for the applications that insist on it: mainly, this setup lets mpd continue playing after my graphical session ends.
Re:Ask HN: What do you want to see in Ubuntu 17.10? by bjt2n3904 on Friday March 31, 2017 @11:24AM (#14004733)
Bluetooth not working isn't necessarily Ubuntu's fault. Bluetooth is a complicated, broken, cluttered, crumby protocol.
Re:Ask HN: What do you want to see in Ubuntu 17.10? by quacker on Friday March 31, 2017 @12:52PM (#14005647)
> Bluetooth not working isn't necessarily Ubuntu's fault.

Yet, Bluetooth works seamlessly in MANY other contexts. I can connect my phone to bluetooth headsets and bluetooth-enabled car stereos. I've used PS3 and PS4 controllers for years with no connection issues. I've used bluetooth dongles, bluetooth keyboards and mice on Windows machines and it just works.

Bluetooth may be "complicated, cluttered, and crumby" but it is not broken. Ubuntu is the odd one out here.

Re:Ask HN: What do you want to see in Ubuntu 17.10? by pizza234 on Friday March 31, 2017 @05:24PM (#14008425)
According to this article:

http://www.bennybottema.com/2010/08/08/how-ubuntus-broken-bl...

the guilt is both in Ubuntu (which updated the bluez version and broke things which were previously working) and the bluez programmer[s], which are described as "cowboy coders".

I personally believe both are accurate accusations.

I wonder if Ubuntu felt pressured for some reason[s] to upgrade to v5 (eg. support for v4 was going to cease), or if it was just "upgrading for the sake of upgrading". I have the suspect it's been the latter, since it's not that v4 had insufficient features or that the BT protocol would change in the meanwhile - not to mention that they actually did the exact same thing long ago when moving to v4.

Re:Ask HN: What do you want to see in Ubuntu 17.10? by jandrese on Friday March 31, 2017 @12:41PM (#14005544)
Both Apple and Microsoft figured it out. Why shouldn't we expect the same from Canonical?
Re:Ask HN: What do you want to see in Ubuntu 17.10? by snt on Friday March 31, 2017 @09:42AM (#14003641)
+1