-
Notifications
You must be signed in to change notification settings - Fork 90
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
Frequent disconnectsAdded optional EMPTY_PACKET_DISCONNECT build-flag to disable empty-packet-disconnects #185
base: master
Are you sure you want to change the base?
Conversation
Amazing work! I can confirm this fixes the issue of my 1914 model Xbox controller disconnecting when idle. |
Can confirm this seems to work for me too, thanks a lot ☺ |
Just a small update. I was playing using this patch and after about an hour of play my controller suddenly disconnected while I was actively using it (i.e. not while idle). I think this is a separate issue that has been reported before, but good information to know that this patch doesn't appear to fix that particular issue. |
Works for me too ! |
@alkazar I will continue to do more testing (with debug mode on, etc) to see if I run into the same issue as well (maybe multiple things at play here). @sberthelot Happy it works for you too - definitely seemed odd to me at first too, but the way the comment in the code states, maybe the packet guarantee not to be empty isn't true for this particular model of controller. Much testing will need to happen, which is also why I just made it an optional build-flag for now. There are other places the handleControllerDisconnect gets called, and by-passing there led to crashes for me (since the controller never really "disconnected"). |
Not working for me. git clone https://github.com/medusalix/xow |
@silvannn Cannot work because you didn't clone the repository of the PR author. |
@kakra can you tell me exactly how that should be done please? |
@silvannn You need to clone this repo: https://github.com/OriginLegend/xow.git with this branch: frequent-disconnects So your steps would be as follows: sudo systemctl stop xow git clone -b checkout frequent-disconnects https://github.com/OriginLegend/xow.git |
Hi guys, No more disconnection when idle. Great job! |
Works on my 1914 model as well. Thanks @OriginLegend hopefully this will be merged soon. |
Just wanted to add an additional comment here for more specific directions (as referenced in communications from the issue: #144). I have added a branch called You can follow these steps to update the version running on your computer: To uninstall the service (if previously installed/running):
To remove the currently cloned repo (or you can put it in a different directory):
Clone the forked repository (frequent-disconnects branch):
Build the new version with the build-flag added and install/setup:
|
Works for me as well, thank you @OriginLegend for your work! Hopefully this can get merged to master. |
This worked for me as well. Are there any concerns blocking this from getting merged? EDIT: Actually, spoke too soon. I get crashes with the build from OriginLegend.
|
Nevermind, I reinstalled OriginLegend's fix and it works just fine now. |
any progress into getting this merged? or still waiting on more testing |
With the main branch I was getting a disconnect every few mins, blinking light on the controller for 10secs or so then it worked again.
I'm running Mint 20.3, kernel 5.13.0-30-generic If you need debug infos just let me know where to fetch them. |
Get the same issue now... |
@pdiana Apologies on delays on this, I will probably get a chance this weekend to look into these errors specifically and will hopefully post an update then. Were there any updates you made to your system @codevski since the previous change? It does look like my Linux Kernel might be a little behind, as I am running on Linux Mint (20.3 Cinnamon) on Linux Kernel 5.4.0-100-generic, so I might look into what might be different there. |
Might resolve these issues: #170 and #144
This change simply adds a build-flag (via cxxflags) called EMPTY_PACKET_DISCONNECT
In my testing, the receipt of an empty packed does not always mean the controller needs to disconnect.
I am unsure if this is true for all controllers supported, but wanted to add a build-flag to make this configurable.
I have done extensive testing with the setup I do have and it is working flawlessly (no more disconnects)
I have an "XBox Wireless Controller - Pulse Red (Model 1914)"