-
Notifications
You must be signed in to change notification settings - Fork 193
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
bluepulse not working #312
Comments
Hi DasNaCl There have been several revisions over the last few weeks, and i know at least one of them had a typo in the script that caused errors, so to make sure we are looking at the same page, could I ask you to get the latest version of the script from the wiki which I updated yesterday (April 2) First up:
I had not intended that the script should be run as root; in fact if you are using pulseaudio in a normal desktop session you most definitely should not use sudo. Next:
We need to debug that before attempting to run the script, since the script depends on Can you please:
Please report the output here |
Hey borine,
The device also appears in pavucontrol. |
And can you play sound to your headset using pulse ? |
I've just realized that the script requires gnu awk (gawk) because it uses a specific gnu extension. I'll change the text and script to highlight this. You can check your version of awk with
If it says "mawk" or anything other than "GNU Awk" then the bluepulse.bash script will fail. |
Unfortunately, I cannot play any sound. I'm running gawk, so there should be no issue on that side.
I tested the bluepulse script again with EDIT: Using |
Ignore the dbus-monitor "error" message - in fact its just a warning that it can't use "new-style monitoring" and is instead using eavesdropping mode. That is expected and the script just ignores that message. Can you now please:
|
|
So, no permissions problem then. I think we now need to rewind to start afresh and try the script from the command line. To ensure we have a fresh start, please can you:
Thanks |
Only the output device is added. Sound is good. I think we can close the issue, since this behavior does not seem to have anything to do with the script. |
OK, thanks for your feedback, it has helped me improve the wiki page. Hope you get this working correctly soon. |
Thank you for your kind words. I've managed to get it to work after disabling a few profiles for the running bluealsa instance. Unfortunately, the headset is now always in hfp mode. I can get it to a2dp if I disable hfp-ag. What is more, the icons in the script are not used really, since everything is just |
@DasNaCl if you are still using this, it may help to know that I've discovered that I was unwittingly relying on the pulse "suspend-on-idle" module to be able to switch from a2dp to sco on the same device. I've updated the wiki to make this explicit. Perhaps that explains why you needed to disable a2dp. There may still be other obstacles to overcome, but I would be interested to know if adding the suspend-on-idle module as described in the wiki helps in your use case. |
Thank you for giving some additional thoughts to this! The suspend-on-idle module was loaded with a default of 5 seconds. I could notice the white background noise to stop after that time. What I think is interesting: Whether I just use audio output (i.e. no mic, but hfp-ag is loaded) or not, the noise is present. In my setup before, were I was not using pulseaudio, I did not have any noticeable noise.
So, there is no a2dp if I run bluealsa with hfp-ag. I guess this is expected behavior. |
oops! I obviously haven't tested this with pavucontrol running. There does not appear to be any obvious workaround other than not to use pavucontrol. I'll add this to the wiki page too.
I'll have to think about that one. Is the noise related to the use of pavucontrol too? I haven't noticed any such noise here.
Was that true before you introduced pulseaudio? If so, then I guess its just the way your headset works? Thanks again for all this excellent feedback |
So I'm trying to use bluez-alsa with pulseaudio 13.0.0
For that, I use the bluepulse script as written down in the wiki.
Unfortunately, it can't connect to the running (!) pulseaudio server instance. Upon connecting my headset via bluetooth it prints:
Manually running
pactl
also just printsFailure: Module initialization failed
.How can I debug this properly?
The text was updated successfully, but these errors were encountered: