OS: Debian 8
Problem: I'm writing usb driver module for my microcontroller, custom usb HID, but when I plug it to laptop it binds to usbhid driver, if I do
rmmod usbhid it also disconnects a mouse and it's not very nice) I can unbind it via
sudo sh -c 'echo -n "1-3:1.0" > /sys/bus/usb/drivers/usbhid/unbind'
, however it's not interesting to do it every time i plug my device in. Even after I wrote a script, I've got that it not fun to run it again and again. Is it possible to unbind my device from usbhid driver automatically?