-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Controllers Not Reusing Ports #12561
Comments
Device: Linux Mint 20 (Ulyana) This happens for me too. |
Please post logs showing the entire period including when the controller binds to the next port. This is a guide to logs: https://docs.libretro.com/guides/generating-retroarch-logs/ |
This may be the same issue: #9296 |
Hello, I'm having the same issue on my system as well. [INFO] CPU Model Name: Apple M1 (Mac Mini) Unfortunately while my logs are set to Debug, they still don't seem verbose enough to get much information out of them. What I do notice however is that this appears to be caused by the application often not detecting that a controller has been disconnected, so when the controller reconnects, RetroArch appears to think you just plugged in an additional controller. macOS does show the controller as "Not Connected" in the system bluetooth settings after the controller has been shut off - so it doesn't appear to be an issue with the Operating System thinking the controller is still connected. |
I think I have mostly fixed this issue, however it has resulted in another major issue being exposed in the pad_matching functionality. I don't know if the wrong data is getting passed into this function, or if the function is doing the wrong thing with that data. RetroArch/input/connect/connect_ps4.c Lines 130 to 147 in 49632bb
Here's the work I have done to get the port-reusing mostly fixed.. but I really need help figuring out these issues within the pad-matching to continue this. This commit has the port-reusing functional, but the pad-matching functionality is disabled due to the bug in it. There's information in the comment on how to re-enable the pad-matching if you want to take a look |
I think it would be useful to have your patch as a PR. That way folks can easily post code review and other comments directly with your code. Would you be willing to make a PR? |
@ComradeEcho tells me this is fixed now, closing. |
Device: Lenovo TB3-710I
Controller: Ritmix GP-030BTN
Device config name: Amazon Fire Game Controller.cfg
Version Retroarch Git: 81075aa
When I am using this controller via Bluetooth to the Lenovo, if it disconnects for any reason while RetroArch is running then reconnects, it's added as a second port instead of reconnecting to port 1. This leaves RetroArch in an unusable state requiring a force close and relaunch since the controller in port 1 is dead and no way to reconnect it.
The text was updated successfully, but these errors were encountered: