-
Notifications
You must be signed in to change notification settings - Fork 219
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
socket.error: [Errno 107] Transport endpoint is not connected (Gentoo) #22
Comments
Does this happen everytime you try to connect the controller or only sometimes? |
It happens everytime. If you need any other information tell me. |
What kernel version, Python version and bluetooth dongle are you using? |
The usb dongle is plugged on usb3 socket. Edit : It work fine with the other dongle :
Is there a need for bluetooth 4.0, because it work under windows with both dongles. |
Exactly the same error here. Some news? |
Well, what seems to be happening is that the connection to the device is instantly dropped. I have no idea why though, it could be due to incomplete or bad driver for your dongle in bluez. You could try pairing it in bluez first (requires bluez 5.14) and then run ds4drv in hidraw mode (
What bluetooth dongle, bluez version and kernel do you use? |
$ uname -a bluez 5.14 |
Since you use bluez 5.14, does pairing it normally work? |
$ bluetoothctl And now for pairing normally how should i do? edit: I get this : Device not available |
$ bluetoothctl -a
[bluetooth]# scan on
[bluetooth]# trust MAC
[bluetooth]# pair MAC |
|
Try this: [bluetooth]# show
[bluetooth]# select <MAC of bluetooth dongle> |
How can i set a default controller? |
Ah, my bad, seems like I gave you wrong command, this is the correct command to show your controllers: |
List shows me nothing, and even with the MAC of my bluetooth dongle it doesn't set the default controller. I don't understand.. edit : I tried with 2 bluetooth dongles, 1 on USB, and 1 of my laptop |
That's odd, what is the output of |
and with my other dongle :
|
Got no clue what could be wrong, I guess you could try a different bluetooth tool like gnome-bluetooth to do the pairing. |
When i started ./configure for bluez 5.14, i get this error : |
Yes, if bluetoothd is not running it's probably not possible to pair. Perhaps you should check if there is a package available for your distro instead of building manually to make sure things are correctly setup on your system. If not, check if there is a init script in |
I just experienced the "Transport endpoint is not connected" error. The fact is that standard pairing is also problematic because it asks for a PIN, which does not happen to be necessary with the other device. I managed to pair it using bluetoothctl after enabling the agent:
And then "ds4drv --hidraw" worked fine. Recap:
|
I tried pairing my DS4 with |
I was using bluez 5.14, I don't know about bluez 4 |
I've pushed f3db91b which will make sure we don't crash when this happens, and will attempt to retry the connection. I don't think that will help much though, since it seems like our way of connecting directly to the DS4 without pairing only works on some dongles. For the record, the bluetooth dongle I'm using is built into my motherboard (Asus P8Z68-V) and is v2.1. It seems like 2.0 dongles have issues, but might work if paired in bluez 5.14 as @mtorromeo describes. |
It's now working!!! Thanks, i don't know why i can't do the pairing/connection with bluetoothctl, but with this last commit i don't have the socket.error anymore! edit: after starting ds4drv a second time, i get the socket.error again ... T_T |
I've got this error a few times now as well. I'm on Ubuntu 13.10 x64 with bluez 4 and using a broadcom BCM2046B1 2.0 dongle. I'm running the driver in raw bluetooth mode and everything works fine. While I haven't figured out a way to reliably reproduce it I did find a way to get past the error by running blueman (bluetooth-manager) and deleting the wireless controller from the devices list. After that I can connect as usual. My laptop also has built-in bluetooth and a couple times I've seen the controller show up in the device list for the internal bluetooth as well. Again deleting it from the list of devices and trying to reconnect always results in success. |
Sounds like bluetoothd might be interfering somehow, try killing it and see if it helps. |
I've solved this error, at least on Arch Linux ARM (running on a Raspberry Pi). I had to restart the bluetooth service, then go into bluetoothctl and power on the device. Commands are below.
|
I also have this issue. Following the instructions here i got it work on Linux Mint 17 using the command
it prints out |
Suddenly this problem started to occur for me. I fixed this with bluetoothctl and "remove MAC". |
To add, on a raspberry pi it worked fine until I added a line to rc.local to run it silently at boot. Even after removing the single line from the script, this issue is still persisting. The pi is running a modified version of debian with all the core functions of the OS in tact. Here's the output
It loops at that point for as long as the controller is in pair mode. The above was on a single pairing attempt. |
I had the same problem, after i paired the controller with my PS4. |
If the bluetoothctl trick doesn't work, make sure that you have bluetooth.service running on systemd (if you are using systemd). |
Forsok, many thanks. |
Any updates? Having the same issue on Fedora 32 (Tranposrt endpoint is not connected) |
bluez-test-device remove xx:xx:xx:xx:xx:xx doesn't help;
|
I've read a lot of docs && I suppose that it's due to bluetooth dongle... It has bluetooth 2.1 |
Yep... I upgraded my bluetooth dongle (it was from 2007) yesterday, and now everything works fine... |
I got this error when trying to run ps4drv on Gentoo. The entire trace is :
bluez version is 4.101
The text was updated successfully, but these errors were encountered: