Vibration on Linux
Guides

Machenike G5 Pro Guide - Vibration When Used on Linux

by zxz on Jun 10, 2024

The Machenike G5 Pro is a powerful gaming controller, but due to firmware issues from the manufacturer, the initial code may not enable vibration on Linux systems. However, we are pleased to have found a way to adjust the settings. This article provides a solution to this problem. In this blog post, I will guide you through the process of configuring your Linux system to ensure that the Machenike G5 Pro gamepad vibrates properly during gameplay.

First of all, if Vendor/Product IDs on various models are different, then they may need adjusted below (the 2345 and e00b, among others). See this to know how to get those ids: https://wiki.archlinux.org/title/Gamepad#USB_debugging

Step 1:

Editing udev Rules

Firstly, we need to edit udev rules to ensure that the Linux system correctly identifies and activates the vibration functionality of the Machenike G5 Pro gamepad. Follow these steps:

Added the following line to /etc/udev/rules.d/98-joystick.rules. You may need to create this file if it doesn't already exist.
ACTION=="add", ATTRS{idVendor}=="2345", ATTRS{idProduct}=="e00b", RUN+="/sbin/modprobe xpad" RUN+="/bin/sh -c 'echo 2345 e00b > /sys/bus/usb/drivers/xpad/new_id'"
These commands instruct the system to load the appropriate driver and activate the vibration feature when the Machenike G5 Pro gamepad is connected. Vibration on Linux

Step 2:

Setting USB Core Parameters

Added the following line of quirks to the /sys/module/usbcore/parameters/quirks file because this controller connects with others ids that aren't valid to the kernel:
2345:e00b:i,057e:2009:i,2345:e02f:i,2345:e02d:i
----
The following are done so that the quirks are automatically set when booting the PC instead of having to manually add them every time you boot. Of course, you should do what is indicated by your distro. Please note the following needs to be done with extreme care as it can effect the system's ability to boot.

Step 3:

Added/modified the following line in /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="usbcore.quirks=2345:e00b:i,057e:2009:i,2345:e02f:i,2345:e02d:i"

Step 4:

Executed the following command to make the above change "live" in grub

grub-mkconfig -o /boot/grub/grub.cfg

After making these changes and rebooting (important!), you can easily activate the vibration functionality of the Machenike G5 Pro gamepad on Linux Mint, Ubuntu, and similar systems, ensuring a more immersive gaming experience. Remember to proceed with caution to avoid impacting the system's normal boot process.

 Vibration on LinuxThis article was created thanks to the valuable contributions of Reddit user Artewar67, who provided the original guidance, and DarkBRI, who requested assistance and shared a clean list for setting up the Machenike G5 Pro gamepad on Linux. Their efforts have been instrumental in resolving this issue, and we sincerely thank them for their help. You can find more detailed instructions and discussions in the original Reddit thread: Help with vibration not working on Machenike G5 Pro.

Additionally, special thanks to Brandon A. for sharing this post, which brought the solution to our attention. Epomaker’s intention in sharing this post is to ensure that this solution reaches a wider audience. If there are any concerns regarding infringement, please contact us, and we will promptly remove the post.

Leave a Comment

Your email address will not be published.