-
Notifications
You must be signed in to change notification settings - Fork 115
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
Xbox Controller still shown as connected after disconnecting #475
Comments
This is a new behavior of bluez that it no longer destroys input devices of disconnected endpoints, and reuses the same input device node if the endpoint reconnects. You can disable this behavior in the bluez config. And yes, it messes up Steam games if you switch controllers because many Windows games often only look at the first controller. I'm leaving this open so we can document this behavior. I currently can't recall where I found the info about that change, it was in one of the commits to bluez, pointing to a hidden configuration variable you can set. |
I'm also seeing this behavior. |
You could try |
There's also this in the changelog:
So it seems the feature was already added way earlier but only lately, it has been enabled by default. |
This issue seems to have been fixed. I can turn off my Xbox controller and it won't show as connected anymore (in Steam and in system settings). sudo rmmod hid_xpadneo
sudo modprobe hid_xpadneo The controller will vibrate again and input works like it should. |
I'll just in case mention another oddity I saw a few days ago around the same topic. I've yet to debug this further, but after a reconnect (and a reused input node), sticks, triggers and the D-pad worked, but the ABXY buttons didn't report anything when running |
Can you guys verify that the controller is gone in |
Running |
If it shows Our hidraw devices should be unreadable (check permissions of whatever hidraw device shows up: check If there are permissions, revoke them ( That being said: Future versions of xpadneo will create hidraw devices compatible with SDL. It's scheduled for after release of v0.10. |
You're right, it was a udev rule aimed at my Keychron keyboard (qmk firmware). Disabling the udev rule solved the problem. I can now disconnect and reconnect my controller without any problems. Thanks a lot! |
Yeah, qmk should really fix adjusting permissions only for supported devices. Usually, the desktop has no business in accessing the hidraw devices (you can confirm that by seeing that even |
Version of xpadneo
xpadneo-dkms 0.9.6-1
Controller Model
Connection mode
Installed Software
Protocol Information
Please help us identify at which layer the problem can be found if you want
to report mapping errors or if the controller fails to be detected:
evtest
is showing issues (describe the issues below)BTN_NORTH
andBTN_WEST
are intentionally swappedjstest
is showing issues (describe the issues below)gamepad-tool
is showing issues (post console output below)Please describe how it is failing below in the next sections.
Severity / Impact
Describe the Bug
After disconnecting my Xbox Controller, my system still shows that the controller is connected. Steam will show controller support for my Xbox Controller on game pages (it does not do that when no controller is connected).
Furthermore, I can see the controller under System Settings > Game Controller (on KDE). It shows my Xbox Controller (/dev/input/event22).
When running the following command after disconnecting the controller
I can still see xpadneo even though no controller is connected.
This messes up other controller inputs, e.g. when connecting my PS4 controller after the Xbox controller was disconnected. Input will behave in a weird manner. Buttons will be sent constantly pressed and the input of the other controller will be drowned by constant input being sent from the already disconnected controller.
Steps to Reproduce
Expected Behavior
Controller should not be shown anymore.
Screenshots / GIFs / Videos
The controller was not connect to the computer while these screenshots were taken.
Usually in the System Settings there is no entry (when booting the system before connecting the Xbox controller) and Steam does not show any controller support information.
System Information
Controller and Bluetooth Information
Additional Context
The text was updated successfully, but these errors were encountered: