This open-source driver, designed for Linux systems (also compatible with environments supporting GTK), enables enhanced control of the Fantech X9 Thor RGB gaming mouse.
Ensure you have the following prerequisites:
- Python 3
Gtk3andgobject-introspection(check your distro's documentation)- Python module:
pyusb(install withpip install pyusb)
Clone the repository:
git clone https://github.com/muharamdani/FantechX9ThorDriver.gitRun the driver frontend:
python3 driver_frontend.pyCheck your mouse's product ID and vendor ID using lsusb. Modify driver_backend.py if different from defaults. Example:
Bus 001 Device 007: ID 18f8:0fc0 [Maxxter] USB GAMING MOUSEVendor ID: 18f8, Product ID: 0fc0
For proper USB device access:
- Set UDEV rules (recommended method):
echo "SUBSYSTEMS==\"usb\", ATTRS{idVendor}==\"18f8\", ATTRS{idProduct}==\"0fc0\", GROUP=\"users\", MODE=\"0660\"" | sudo tee /etc/udev/rules.d/50-fantechdriver.rulesEnsure your system has a group named users, and your user is part of this group.
- Alternative method (not recommended):
Run as root (not recommended for security reasons):
sudo python driver_frontend.pyThe current configuration is saved in driver.conf upon pressing the "Save Configuration" button.
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
