Registered Member
|
Hi all,
I have an issue with bluetooth. I don't know if I should post here or in the ubuntu forum but I'll start from here since I think it might be a kde issue. So, I got a new pair of bluetooth headphones. It works great but the settings are never saved. Here's what I got to do everytime I need to connect them: Right click at the panel > bluetooth > right click and pair (so far so good as it pairs right away) Then for some reason in my kmix settings, I've moved up the headphones at the top of the list so that they are the preferred medium. However, even after pairing they are gray and inactive in the list. In order to make them active I need to go in the audio hardware setup tab > bluetooth headset and choose manually profile > A2DP. I need to do this manually everytime. This setting is never retained. By contrast, my usb speakers are just plug and play. I have them at the top of the prority list, and kde switches to the audio profile automatically. This doesn't happen for the bluetooth headset due to the fact that the profile is always off. Is there any way I can automate this process? Where is this setting saved? What does it have to do with? Alsa? Phonon? Pulse? Bluetooth? Here's a slideshow of what I mean: https://www.dropbox.com/sh/g0vs9hvml8ysd07/c4FGkExQdG thank you, |
Administrator
|
Are you using Pulseaudio by any chance? If so, it is responsible for remembering that your headphones use/require the A2DP profile in order to be useful. I suspect Pulseaudio may be trying to use the HSP profile with your headphones - which if they do not have a microphone they may not support (which would explain why it ends up disabled).
I am puzzled as to why it does not remember that your device uses the A2DP profile however, as it does remember it successfully for my bluetooth headset (although mine supports the HSP profile as well).
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
I'm not really sure if I'm using pulse audio but judging from the fact that when I run the pulse audio service all my settings disappear and I get just the pulse audio server (which I'm not as you can see in the screenshot) I'm guessing I am not using pulse audio. In the drop down menu as you can see from the screen shot I have selected A2DP but, yes HSP is an option I can select although like I'm showing in step no2 screenshot for some reason after every pairing the selected profile is OFF. Isn't that weird, huh? Whenever I'm selecting A2DP is that setting written to a file or something ? |
Administrator
|
To the best of my knowledge, the Audio Hardware Setup tab only works when Pulseaudio is available. When you select A2DP there, Pulseaudio is supposed to be preserving those settings.
Can you try to reproduce this under a new user?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Ok so I tried this with a new user and it I have the same issue. Upon connection, the profile is set to OFF and I need to follow steps 1-4 from the screenshots to enable it manually. So let me ask you, does your bt headset support A2DP? If it does do you mind testing that please? If you set yours to A2DP and disconnect and reconnect does it remember the settings? And another question, are you able to use any of the bluetooth controls? My headset has controls like play pause etc. So far, no application responds to the buttons. I mean I didn't have high expectations about that, it's just that today I accidentally pressed the play button after having paused a video in umplayer and it worked! I mean just that works (resuming not even stopping) but it's a start! |
Administrator
|
Yes, my Bluetooth headset supports A2DP. Usually when I first connect it to my computer (on first setup) it configures itself to use HSP, which I immediately change to A2DP. After that it automatically uses A2DP on all subsequent connections.
The buttons on my headset (media next and media previous) also work fine, as long as the global shortcut association has been setup in the application (for Amarok, the defaults of "Media Next" and "Media Previous" are sufficient for it to work out of the box). I'm not sure why you are having problems unfortunately. Only thing I could think of which is causing this behaviour is a bug in Pulseaudio. I am running version 1.1.0.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
It was just a matter of mapping the buttons.. it works great now! Thanks for that! As far as saving the a2dp, still now success but I guess it's no big deal, I'll just have to repeat the steps.. |
Administrator
|
If you are okay working with Konsole/CLI then you may want to take a look into "pactl" which may allow you to script the reconfiguration from None to A2DP.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
That worked great, thanks for the tip! I guess setting up this as a script is going to be faster than doing it manually every time |
Registered Member
|
I am having a similar problem using a bluetooth telephony headset, a Samsung HM1700. It attaches and is recognized as an audio device. The problem comes when I try to get the mic working. If it is set as an A2DP device, I get sound playing. If I then set it as an HSP/HFP device in phonon, I get no sound and it does not pick up sounds from the mic. I have gotten sound and the mic to work before using HSP/HFP, but not consistently.
All of the pulseaudio services appear to be running and it is recognized for A2DP, HSP and HFP. Any suggestions? |
Registered Member
|
try to delete pulse and pulse-cookie
then restart bluetooth
Try this and setup the bluetooth device audio again, this worked for me when I had similar problems |
Administrator
|
It seems that Pulseaudio is somehow failing to apply the correct audio profile.
Does the same issue occur if you use "pavucontrol" to change the audio profile of the bluetooth headset?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
I'm having a similar problem, except in my case, although I can connect to the bluetooth device with no problem (it's detected as a headset), but later, it's not listed as an option in Kmix or Phonon. Any ideas of what I can do to solve it? (Kubuntu precise amd64)
|
Manager
|
You should upgrade your Kubuntu installation, as you are most likely running rather outdated KDE and Phonon versions, current is Kubuntu 13:10 with KDE 4.11.3. Without more details from you about the exact KDE software release you are using this is hard to tell, distribution numbers are not enough.
Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ... |
Registered Member
|
It turned out to be the bluetooth manager my system was using. I followed these instructions (http://www.tooleweb.ca/blog/?e=8&weblog ... r.#message) and am listening to audio via the bluetooth receiver as I type. Unlike Bluedevil, Blueman allows more configuration options, so I was able to set-up the device as A2DP. After doing that and pairing the device, I immediately got a notification that my Bluetooth Audio was ready to use, and the device magically appeared in Phonon and Kmix.
Thank God for that! I'd been looking for a solution for months, and was just about to give up. Thanks for your feedback, and hopefully this will be able to help anyone else who stumbles upon the same problem! |
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot]