Linux-去除鼠标箭头

usb触摸板会同时加载hid-generic.c和hid-multitouch.c驱动

我们只需要让其加载hid-multitouch.c驱动即可

lsusb查看usb触摸板的vid和pid

[root@ok3568:/]# lsusb
Bus 003 Device 001: ID 6615:108c

驱动屏蔽掉该设备

diff --git a/drivers/hid/hid-generic.c b/drivers/hid/hid-generic.c
index 3b6eccbc2..2588e5a6b 100644
--- a/drivers/hid/hid-generic.c
+++ b/drivers/hid/hid-generic.c
@@ -53,6 +53,9 @@ static bool hid_generic_match(struct hid_device *hdev,
        if (bus_for_each_drv(&hid_bus_type, NULL, hdev, __check_hid_generic))
                return false;
 
+       if (hdev->vendor == 0x6615 && hdev->product == 0x108c)
+               return false;
+
        return true;
 }

你可能感兴趣的:(Linux,linux)