I'm currently trying to create my own USB HID mouse driver as an override of the standard generic USB, which always gets in the way. How can I unbind the generic driver and rebind it to my specific automatically?

My Zuoya MMR6 module/driver: https://github.com/vladipus/zuoya-mmr6

  • May be able to create a custom rule for the PID/VID of your mouse. This Q/A may help with that.
    – jc__
    Oct 11, 2018 at 18:17
  • I'm just surprised how much of a hassle it is to implement a custom Linux USB device driver.
    – Vladius
    Oct 13, 2018 at 12:02

1 Answer 1


Created the following udev rules, which helped much with the issue:

PROGRAM="/bin/sh -c 'echo -n %k > /sys/bus/hid/drivers/hid-generic/unbind;\
echo -n %k > /sys/bus/hid/drivers/hid-zuoya-mmr6/bind'"

Those can be automatically installed to /etc/udev/rules.d/ by the driver installation scripts/routine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.