atar-axis / xpadneo

Advanced Linux Driver for Xbox One Wireless Controller (shipped with Xbox One S)
https://atar-axis.github.io/xpadneo/
GNU General Public License v3.0
1.92k stars 111 forks source link

Wrong mapping after arch update #379

Closed AlexNomadrg closed 1 year ago

AlexNomadrg commented 2 years ago

Version of xpadneo

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:

Please describe how it is failing below in the next sections.

Severity / Impact

Describe the Bug

My gamepad's mapping is wrong after i updated my system. I have xpadneo installed as aur package. I also tried installing it from source but that didn't fix the issue.

Steps to Reproduce

Install xpadneo connect xbox series x controller

Expected Behavior

Screenshots / GIFs / Videos

Video demonstrating the issue

System Information

# uname -a
Linux alexpc 5.18.16-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 03 Aug 2022 11:25:04 +0000 x86_64 GNU/Linux
# xxd -c20 -g1 /sys/module/hid_xpadneo/drivers/hid:xpadneo/0005:045E:*/report_descriptor | tee >(cksum)

Controller and Bluetooth Information

https://termbin.com/dk4d

https://termbin.com/xhjf

Additional Context

SpidFightFR commented 1 year ago

Note for people one Arch, to get the fix (just in case):

  1. If you use an AUR Helper, yay for instance: run the devel package update yay -Syu --devel (after generating the devel database: yay --gendb).

  2. If you're using the base makepkg command (without an AUR helper), install the xpadneo-dkms-git package and if you have already this package installed, clear the source folder and re-install it.

kakra commented 1 year ago

Stable backport to v0.9 is already queued... Just want to do some more testing.

cHunter789 commented 1 year ago

Not sure if I have missed something but after upgrade to latest master 48f4b11 all is working good at my kubuntu 22.04.01. THX! Not sure if it's relevant but I have also done downgrade->upgrade firmware in my X1S.

SpidFightFR commented 1 year ago

For a reason i don't know, disabling Steam Input brings back controller vibrations. cool, i guess !

tr1p0p commented 1 year ago

So, i got just that but on fedora 36 and my xbox controller just nor work anymore on bluetooth even with 0.9.5 and SDL_JOYSTICK_HIDAPI=0 or disabling steam input. Don't know what to do anymore, i use usb because that work but why the last update didn't solve that for my ? X don't work, right trigger and left joystick too.

So yeah don't know if i post here or open a new issue.. because it's barely the same

kakra commented 1 year ago

Could you share the output of dmesg when loading the driver and connecting the gamepad?

Also, dmesg will tell your about a hidraw device that was created (it's hidraw plus a number which changes with every re-connect). Run getfacl /dev/hidraw## (with ## being the number) and share its output.

Then try running evtest, select the device, and hit buttons A,B,X,Y and tell me if they map to south, east, north, west (in that order, yes, north and west are swapped for x and y). You can also try the other axis and buttons to see if they match.

You should open a new report for it because this one is closed. The report wizard also shows instructions for each of the steps needed to collect information. For a start, the above steps are sufficient but feel free to also do the other steps.