Skip to content
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

Xpadneo not surviving kernel updates on Ubuntu 22.04 / Kernel 6.5.0? #491

Open
4 of 41 tasks
ipkpjersi opened this issue Aug 10, 2024 · 2 comments
Open
4 of 41 tasks

Comments

@ipkpjersi
Copy link
Contributor

ipkpjersi commented Aug 10, 2024

Version of xpadneo

v0.9.6

Controller Model

  • Xbox One S controller
  • Xbox Elite 2 controller
  • Xbox Series X|S controller
  • Other:

Connection mode

  • Bluetooth connection
  • USB cable (not yet supported)
  • Xbox Dongle connection (not yet supported)

Installed Software

  • Anti-Micro (may affect button mappings)
  • OpenRGB (may mess up mappings and rumble stability)
  • Steam Input (enabled by default via Steam Desktop client)
  • Steam Link (usually via Raspberry Pi or other micro computers)
  • devices with QMK firmware (may affect udev rules, similar to OpenRGB)
  • netstick (shares input devices via network similar to Steam Link)
  • xboxdrv (user-space gamepad driver)
  • xone (kernel-space gamepad driver using the Xbox dongle or USB)
  • xow (alternative driver using the Xbox dongle)

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:

  • Steam Proton games are having issues
  • Steam Linux-native games are having issues
    • I don't use Steam or did not try
  • games running through Lutris, wine and/or Bottles are having issues
    • I don't use Lutris, Bottles, wine or did not try
  • Linux-native games are having issues
    • I don't use native games or did not try
  • Other software is having issues (describe software and issues below)
  • Running evtest is showing issues (describe the issues below)
    • Keep in mind that BTN_NORTH and BTN_WEST are intentionally swapped
  • Running jstest is showing issues (describe the issues below)
    • I don't have this tool or don't know how to use it
  • Running gamepad-tool is showing issues (post console output below)
    • I don't have this tool

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

Severity / Impact

  • I've read the docs and the bug reporting instructions
  • I've applied the latest firmware update to the controller
  • I've tried disabling or running without above mentioned software
  • It does not work at all
  • It used to work in a previous version
  • It mostly works but sometimes it doesn't
  • I found a work-around
  • I probably didn't figure it all out but it's too early to give up
  • I don't know how to ...
  • It's too complicated
  • Fantastic work but ...
  • I can code and I want to help

Describe the Bug

Before, at least I think pre Linux kernel 6.x, it used to survive kernel updates and RPCS3 would continue to work properly with evdev mode. Now it requires a reinstall of xpadneo for evdev mode to start working properly again. The joysticks are out of range and the buttons are mapped incorrectly, etc after every kernel update.

Steps to Reproduce

  1. Install xpadneo v0.9.6.
  2. Update kernel to latest version through apt-get update / apt-get dist-upgrade.

Expected Behavior

I expect xpadneo to survive kernel updates like it used to and for RPCS3 to work as expected with evdev mode.

Screenshots / GIFs / Videos

303970279-7f545bc5-dc7b-4287-a014-8723b66e3705

System Information

# uname -a
Linux fast-cottage 6.5.0-45-generic #45~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Jul 15 16:40:02 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
# xxd -c20 -g1 /sys/module/hid_xpadneo/drivers/hid:xpadneo/0005:045E:*/report_descriptor | tee >(cksum)
zsh: no matches found: /sys/module/hid_xpadneo/drivers/hid:xpadneo/0005:045E:*/report_descriptor
4294967295 0

Controller and Bluetooth Information

xpadneo-lsusb.txt
xpadneo-dmesg.txt
xpadneo-btmon.txt.gz

Additional Context

The weird thing is, the controller works as expected with SDL mode, just not with evdev mode, evdev mode requires a reinstall of xpadneo:
2024-08-10_13-11-32_0

2024-08-10_13-09-58_0

If you need any additional information, please let me know.

@kakra
Copy link
Collaborator

kakra commented Aug 11, 2024

The hidraw device bypasses kernel drivers, user-space like SDL will read the raw commands from the device. Thus for such software, it will work regardless of xpadneo being installed.

This looks like our dkms integration may be somewhat broken. I'll look into it.

@ipkpjersi
Copy link
Contributor Author

I'm not sure if it helps but here's my dkms status:

sudo dkms status
hid-xpadneo/v0.9.6, 6.5.0-41-generic, x86_64: installed
hid-xpadneo/v0.9.6, 6.5.0-45-generic, x86_64: installed
nvidia/535.183.06, 6.5.0-41-generic, x86_64: installed
nvidia/535.183.06, 6.5.0-45-generic, x86_64: installed
openrazer-driver/3.8.0, 6.5.0-41-generic, x86_64: installed
openrazer-driver/3.8.0, 6.5.0-45-generic, x86_64: installed
zfs/2.2.5, 6.5.0-45-generic, x86_64: installed

It does have it installed for both my older and newer kernel, not sure if that matters, probably not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants