udev rule
ACTION=="add", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="2dc8", ATTRS{idProduct}=="310a", RUN+="/usr/sbin/modprobe xpad"
This is for Fedora 40. modprobe might be in a different path on other Linux distributions.
ACTION=="add", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="2dc8", ATTRS{idProduct}=="310a", RUN+="/usr/sbin/modprobe xpad"
This is for Fedora 40. modprobe might be in a different path on other Linux distributions.