New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/etc/bluetooth/audio.conf is gone #174
Comments
In Audio.py blueman is adding / removing values Sink, Source, and Gateway to / from the General section of audio.conf. At a quick look I could not find a way to do this now (starting with 5.8). Do you know? |
I'm sorry, but unfortunately I never worked with bluez directly, so I don't know a way to fix this. |
If you modify audio.conf to setup a2dp audio sink functionality, you may take a look at KDE's bluedevil sources, it has such functionality and does not modify audio.conf. |
Thanks, I'll have a look. |
I cannot find such a setting in the bluedevil GUI. Can you point me to that? |
The second way should work in blueman as well. The notebook is connecting to an audio service of the phone. It should work independent of the settings in "Local services". The fact that this process is unintuitive is - unfortunately - a design concept of BlueZ 5 (see this thread if interested). I'm not sure what's going on in your first example, specifically if you're connecting to a service provided by the notebook or somehow triggering the notebook to connect to the same service of the phone as in the other process (this would be odd as I don't no a way to do such a "reverse connect"). Do you see the same things on the phone when trying this with blueman? The most obvious explanation is that BlueZ provides an audio service by default and bluedevil does not do anything there. This is also the way it should work in blueman. The only additional feature blueman has (or had) is re-configuring BlueZ to enable and disable those services. It's just an extra so to say and if they are always enabled or enabled by default the easiest solution is to just remove the "Audio" tab from the "Local settings" dialog. If there is a new way to enable / disable the BlueZ features, the user then just needs to do it directly at the BlueZ level instead. |
I've just tried to test a2dp audio sink feature with blueman on gentoo, and it worked! No configuration needed, so that checkbox in blueman settings is useless now. Before that, I only tried to test this feature on xubuntu 14.04 livecd, and it was very buggy. Maybe it's xubuntu-specific bugs, because on gentoo Advanced Audio Receiver with blueman works like a charm, so the corresponding checkbox in blueman settings dialog should be removed, and blueman should not try to modify audio.conf to enable this feature as it's enabled by default. There is also second checkbox named "Headset Emulation" in blueman settings dialog, and I was unable to test this feature. When I pair my phone with xubuntu, I get two checkboxes in my phone's settings - one for multimedia sound, and one for in-call sound. And when I pair my phone with gentoo, I only get one checkbox for multimedia sound. I was unable to test Headset Emulation, because xubuntu is very buggy (it even can't connect in Advanced Audio Receiver mode), and my gentoo just don't expose such feature. Could you please tell me what should I turn on in bluez or/and pulseaudio settings so that Headset Emulation on my gentoo appears? |
OK, I've managed to set up both A2DP and HSP/HFP profiles on gentoo using bluez5, ofono, pulseaudio and blueman. "Audio" tab in "Local Services" menu of blueman is no longer needed to get things working - they are working out of box if necessary software is installed. So I think usage of Audio.py and Audio tab in blueman settings could be safely removed if blueman is targeting new versions of bluez. |
In my opinion it's also not necessary for older versions of BlueZ. The user can at least modify the audio.conf file himself. So I will just remove that. |
Created a PR. Nice cleanup. 😼 |
https://git.kernel.org/cgit/bluetooth/bluez.git/commit/?id=8aee579387454bca9ecaf1b9d77aef79b5275f1f
/etc/bluetooth/audio.conf file is removed in 2013, but blueman still tries to write it and fails.
Steps to reproduce:
As a result, I can't enable audio features in blueman.
I'm on bluez 5.27, blueman 1.98_p20150105 on Gentoo.
The text was updated successfully, but these errors were encountered: