Выкорчёвываем из прыщеядра работу со стандартными USB-клавиатурами, не трогая мыши:
diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c
index c7bc9db5b192..3df7e5844054 100644
--- a/drivers/hid/usbhid/hid-core.c
+++ b/drivers/hid/usbhid/hid-core.c
@@ -1095,6 +1095,10 @@ static int usbhid_start(struct hid_device *hid)
pr_info("%s: Fixing fullspeed to highspeed interval: %d -> %d\n",
hid->name, endpoint->bInterval, interval);
}
+ if (hid->collection->usage == HID_GD_KEYBOARD) {
+ ret = -EPERM;
+ goto fail;
+ }
/* Change the polling interval of mice, joysticks
* and keyboards.
diff --git a/drivers/hid/usbhid/usbkbd.c b/drivers/hid/usbhid/usbkbd.c
index d5b7a696a68c..fa1ac8fde3fe 100644
--- a/drivers/hid/usbhid/usbkbd.c
+++ b/drivers/hid/usbhid/usbkbd.c
@@ -395,4 +395,3 @@ static struct usb_driver usb_kbd_driver = {
.id_table = usb_kbd_id_table,
};
-module_usb_driver(usb_kbd_driver);