-
Notifications
You must be signed in to change notification settings - Fork 190
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
Unable to get connect data for Headset Voice gateway: getpeername: Transport endpoint is not connected (107) #339
Comments
If your BT transceiver is connected via USB, please configure bluez-alsa without mSBC support. HFP mSBC codec is highly experimental. Even if your SoC uses UART connected, I recommend disabling mSBC. For more information read this issue #268 |
I have recompiled bluez-alsa without msbc support with the same results. I also recompiled many of the supporting libraries like ldacBT without any change. |
In #337, you are using HFP ("hands free") not HSP ("Headset") profile. The error message you report here is for the HSP-AG profile. What happens when you start bluealsa as:
That should give you all you need to fully interact with your headphone speakers and microphone. (Note you do not need HFP-HF as that is for implementing a handsfree unit, not for connecting to one). If that stiil fails, try removing the device with bluetoothctl, then repeat the pairing process, with the above bluealsa command running while you pair. |
When I use the |
I have discovered that by upgrading Ubuntu, I've upgraded Alsa to 1.1.7 (I was on a previous version, not sure which). I confirmed the correct files are in |
Please, configure bluez-alsa with In order to be conformant with HFP specification, audio gateway is obliged to notify headset about incoming call. It complicates things a little bit... but can be done with Also there is a possibility, that your Bluetooth chip is configured in a wrong way - it sent/read audio to chip's PCM interface, but bluealsa requires audio on HCI interface. Bluealsa configures this only for Broadcom chips, but there are other chips with different manufacturer ID, but require the same treatment. |
*(by 0 RX/TX I mean 0 most of the time but short bursts of bytes in the dozens or hundreds of bytes range) |
@tyzbit if you are still working on this, please can you post the output of:
and
There are a number of possible reasons why the sco RX count is 0, and you may be experiencing issues similar to #347, in particular see comments #347 (comment), #347 (comment), and #347 (comment) |
hciconfig output~|⇒ hciconfig -a revision hci0: Type: Primary Bus: USB BD Address: 14:F6:D8:46:C6:97 ACL MTU: 1021:4 SCO MTU: 96:6 UP RUNNING RX bytes:35221 acl:54 sco:0 events:4146 errors:0 TX bytes:1193545 acl:532 sco:0 commands:3494 errors:0 Features: 0xbf 0xfe 0x0f 0xfe 0xdb 0xff 0x7b 0x87 Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 Link policy: RSWITCH SNIFF Link mode: SLAVE ACCEPT Name: 'sen' Class: 0x1c010c Service Classes: Rendering, Capturing, Object Transfer Device Class: Computer, Laptop HCI Version: 5.1 (0xa) Revision: 0x100 LMP Version: 5.1 (0xa) Subversion: 0x100 Manufacturer: Intel Corp. (2) lsusb output~|⇒ lsusb Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 8087:0029 Intel Corp. Bus 001 Device 002: ID 0c45:6723 Microdia Integrated_Webcam_HD Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub I have disabled power saving before, but I'm not sure I modified |
Although these components are not the same as mine, the USB tree is the same - webcam and bluetooth sharing the same bus. So it is possible that the usb autosuspend issue is also affecting your laptop. However, I can't see how upgrading the OS would have changed that, so i'm not confident that this is the issue. I would still give it a try, but watch out for other side effects as the change will disable autosuspend on all usb devices. Full support for your intel bt adapter was first added in Linux 5.0 - what kernel were you using in your previous OS installation? |
I'm not sure, though I still have 4.15 on my system so it could have been that.
I just checked |
It seems Ubuntu kernels have the Intel USB BT patches back-ported to 4.15, so that does not explain the different behavior you see between Ubuntu 18.04 and 20.04. I'll keep looking for other possible causes, |
https://bugzilla.kernel.org/show_bug.cgi?id=204629 |
This issue has been idle for some time, and it is believed that many USB related SCO issues have been fixed in recent kernels. Please see #400 for latest status on USB BT as it impacts to bluealsa. |
Sep 02 11:15:55 kali bluetoothd[6658]: sap-server: Operation not permitted (1) |
I have same probleam with usb BT UB500, but the on board BT work well with |
The problem with posting to closed issues is that we have no idea what versions of BlueALSA or any other relevant software you are using. It is better to open a new issue from where you can reference this closed one if you wish. A new issue would have given you a template showing you exactly what information we need to be able to help you. However, I have done some research- it appears that your BT UB500 is a TP-Link device - is that correct? If so then it is using the Realtek RTL8761BU chipset, which is the same as the one I am using on my own laptop. For me SCO with this chipset works fine with the latest BlueALSA code, but has problems with BlueALSA release 4.1.1 and earlier. The errors in the log you posted suggest that you are also having firmware, and possibly driver problems. |
i found that with BlueALSA 4.1.1, i enable --enable-rfcomm --enable-rfcomm feature, and SCO work well |
I hate to open multiple issues at once, but I'm at the limit of what I can do to troubleshoot.
As part of troubleshooting for issue #337, I upgraded to Ubuntu 20.04. Now when I try to connect my headset, it logs this error and
sco
profiles do not work to play sounds at all usingaplay
:I enabled debug mode in bluealsa, and this is what it logged when it connected:
Expand
Curiously, so long as I run bluealsa either with no profiles explicitly selected or with a2dp selected,
aplay
is able to play.wav
s just fine. It just seems like the Headset Voice Gateway profile has stopped working.Hopefully if this issue gets resolved then the other issue will be resolved shortly as well.
The text was updated successfully, but these errors were encountered: