You are not logged in.
I've got Gamesir Cyclone T4 controller.
It is capable of working in DInput or XInput modes.
When I connect under Linux it only works in DInput, when I connect it under Windows it is able to switch to XInput.
If I then reboot into Linux, the gamepad stays in XInput mode.
lsusb in DInput: 3537:1006 GameSir GameSir-Cyclone
lsusb in XInput: 3537:1014 Microsoft Xbox 360 for Windows Controller
I've found out there's a list of supported devices at https://github.com/torvalds/linux/blob/ … pad.c#L129
While it does have 3537 it does not have 1006 nor 1014.
I want to try and recompile the xpad driver to see if adding these identifiers helps, but have no idea how to, and am struggling to find any info online.
Offline
Worth a try https://github.com/torvalds/linux/pull/834
Offline
Will be ignored kernel dev doesn't happen on github.
As for compiling the driver with this change read https://wiki.archlinux.org/title/Compile_kernel_module
Offline
So I've got to "Module compilation" part `make M=drivers/input/joystick`, but it fails with:
```
MODPOST drivers/input/joystick/Module.symvers
WARNING: Module.symvers is missing.
Modules may not have dependencies or modversions.
You may get many unresolved symbol errors.
You can set KBUILD_MODPOST_WARN=1 to turn errors into warning
if you want to proceed at your own risk.
ERROR: modpost: "gameport_stop_polling" [drivers/input/joystick/a3d.ko] undefined!
ERROR: modpost: "gameport_start_polling" [drivers/input/joystick/a3d.ko] undefined!
ERROR: modpost: "input_event" [drivers/input/joystick/a3d.ko] undefined!
ERROR: modpost: "gameport_unregister_driver" [drivers/input/joystick/a3d.ko] undefined!
ERROR: modpost: "kmalloc_caches" [drivers/input/joystick/a3d.ko] undefined!
ERROR: modpost: "kmalloc_trace" [drivers/input/joystick/a3d.ko] undefined!
ERROR: modpost: "input_allocate_device" [drivers/input/joystick/a3d.ko] undefined!
ERROR: modpost: "gameport_open" [drivers/input/joystick/a3d.ko] undefined!
ERROR: modpost: "snprintf" [drivers/input/joystick/a3d.ko] undefined!
ERROR: modpost: "strnlen" [drivers/input/joystick/a3d.ko] undefined!
WARNING: modpost: suppressed 829 unresolved symbol warnings because there were too many)
make[2]: *** [scripts/Makefile.modpost:145: drivers/input/joystick/Module.symvers] Error 1
make[1]: *** [/home/me/my/linux/src/linux-6.8.2/Makefile:1873: modpost] Error 2
make: *** [Makefile:240: __sub-make] Error 2
```
Tried to `make modules`, and it fails with similar errors, currently compiling the whole kernel
Last edited by qwemaze (2024-04-03 18:11:09)
Offline
Adding it's id to xpad.c didn't help
Offline
Stumbled across this while trying to compile the joystick module, found a fix:
Copy /usr/lib/modules/x.x.x-arch1-1/build/Module.symvers to your root directory. The undefined symbols should be resolved then
Offline