AnswerBun.com

Bind/Unbind Linux Module Automatically

Unix & Linux Asked by Vladius on December 20, 2020

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

One Answer

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

KERNEL=="0003:18F8:1486.*"
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.

Answered by Vladius on December 20, 2020

Add your own answers!

Related Questions

Linux on Omnibook 300

1  Asked on December 3, 2020 by tomas-by

     

Auto-mounting external hard drive not working

1  Asked on December 3, 2020 by ppleassassin

         

Firefox temporary files

2  Asked on December 3, 2020 by daniele

   

Full text of commands cut off in /var/log/secure

1  Asked on December 2, 2020 by user3427070

   

how can i use mod_wsgi for apache 2.4.6 in centos 6.10 system

0  Asked on December 1, 2020 by touqir-rasul

   

Missing glyphs with urxvt-unicode

2  Asked on December 1, 2020 by luigi-pertoldi

     

How to upgrade vim only in my own directory?

0  Asked on December 1, 2020 by c-yj

     

cross-compiling for 32-bit architecture on 64-bit (FreeBSD)

1  Asked on November 30, 2020 by sephiroth

   

Environment variable in LXSession autostart file?

2  Asked on November 30, 2020 by paul-d-smith

 

How to trick a program into thinking there is no X server running

2  Asked on November 29, 2020 by luka-aleksi

 

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP