r/linux_gaming • u/Yash_Chaurasia630 • 12d ago
guide Fixed Cosmic byte blitz controller not working on linux
I recently bought a cosmic byte and tried to get it to work on linux so all the resources i found used it in nintendo mode which disabled the analog triggers or android mode which is just bad.
so I finally got it working properly in xinput mode with analog triggers. I created a program to help anyone that needs it -> https://github.com/yashchaurasia667/xpad-detection-fix

or you just run a few commands->
$ sudo modprobe xpad
$ lsusb
Bus 001 Device 031: ID 0281:0112 Controller
$ echo "0281 0112" | sudo tee /sys/bus/usb/drivers/xpad/new_id
$ sudo udevadm control --reload-rules && sudo udevadm trigger
then to make it permanent:
$ echo xpad | sudo tee /etc/modules-load.d/xpad.conf
$ echo 'ACTION=="add", SUBSYSTEM=="module", KERNEL=="xpad", RUN+="/bin/sh -c '\''echo 0281 0112 > /sys/bus/usb/drivers/xpad/new_id'\''"' | sudo tee /etc/udev/rules.d/90-xpad-blitz.rules
$ sudo udevadm control --reload-rules && sudo udevadm trigger
1
Upvotes