Open OffApparition opened 1 month ago
This is a new behavior of bluez that it no longer destroy input device 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.
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.
![image](https://github.com/atar-axis/xpadneo/assets/24415505/1577738d-f8d4-4db6-9958-168cb3f60d62)
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