All-in-one script to fix the issue with the Gamesir G3w controller on Linux, which does not register any event in its default mode of XBox360 clone.
This controller can work on 2 modes: XBox360 (clone) or Gamesir G3w. On Linux systems, it seems to start in XBox360 mode by default. Due to some issue on the xpad kernel module with XBox360 clones, the G3w is recognized but does not send any events.
Github user dnmodder found a solution to initialize properly the controller. This script installs the python code that performs the initialization fix and creates the udev rules so that it is invoked automatically when the controller is connected. You just need to execute it once.
Check this thread for more details: paroj/xpad#119
Thanks dnmodder!, I had been chasing this problem for months.
Get the script from above and execute it.
wget https://raw.githubusercontent.com/fcorsino/gamesir-g3w-fix/main/gamesir-g3w-fix-install.bash
bash ./gamesir-g3w-fix-install.bash
The script uses sudo where needed. Run it as root if you don't have sudo rights. The code is pretty straight forward, so I encourage you to check it first.