当前位置: 首页 > news >正文

Linux-usb触摸板去除鼠标箭头

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

[  213.602561] usb 4-1: new full-speed USB device number 2 using ohci-platform
[  213.834953] usb 4-1: New USB device found, idVendor=6615, idProduct=108c, bcdDevice= 1.30
[  213.835048] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  213.835081] usb 4-1: Product: USB TouchScreen
[  213.835108] usb 4-1: Manufacturer: Beijing IRTOUCHSYSTEMS Co.,Ltd.
[  213.835136] usb 4-1: SerialNumber: 788B669E0753
[  213.846822] input: Beijing IRTOUCHSYSTEMS Co.,Ltd. USB TouchScreen as /devices/platform/fd8c0000.usb/usb4/4-1/4-1:1.0/0003:6615:108C.0001/input/input4
[  213.902890] hid-generic 0003:6615:108C.0001: input,hidraw0: USB HID v1.11 Mouse [Beijing IRTOUCHSYSTEMS Co.,Ltd. USB TouchScreen] on usb-fd8c0000.usb-1/input0
[  213.914431] input: Beijing IRTOUCHSYSTEMS Co.,Ltd. USB TouchScreen as /devices/platform/fd8c0000.usb/usb4/4-1/4-1:1.1/0003:6615:108C.0002/input/input5
[  213.971215] hid-multitouch 0003:6615:108C.0002: input,hiddev96,hidraw1: USB HID v1.11 Device [Beijing IRTOUCHSYSTEMS Co.,Ltd. USB TouchScreen] on usb-fd8c0000.usb-1/input1我们只需要让其加载hid-multitouch.c驱动即可

evtest可以看到生成了event3和event4这2个输入事件

[root@ok3568:/]# evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0:      rk805 pwrkey
/dev/input/event1:      adc-keys
/dev/input/event2:      rk-headset
/dev/input/event3:      Beijing IRTOUCHSYSTEMS Co.,Ltd. USB TouchScreen
/dev/input/event4:      Beijing IRTOUCHSYSTEMS Co.,Ltd. USB TouchScreen

lsusb查看usb触摸板的vid和pid

[root@ok3568:/]# lsusb
Bus 004 Device 002: ID 6615:108c

hid-generic.c驱动屏蔽掉该设备

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;}
http://www.lryc.cn/news/251743.html

相关文章:

  • 【微信小程序】英文字母不换行问题 flex布局字符超出宽度折行问题:设置了word-break: break-all;和flex: 1;冲突flex不生效问题
  • python--自动化办公(Word)
  • sourceTree的下载和安装
  • 解决:ModuleNotFoundError: No module named ‘PyQt5‘
  • 极客时间 - 如何成为学习高手【文章笔记 + 思考总结】
  • 前端笔记(二):CSS 选择器与特性
  • 【每日一题】1423. 可获得的最大点数-2023.12.3
  • VSCode修改C++版本
  • 31-WEB漏洞-文件操作之文件包含漏洞全解
  • 预约系统源码解析:打造智能定制化预约服务的技术奇迹
  • 关于Maxscript你了解多少?
  • Xshell全局去除提示音
  • JAVA代码优化:Spring中redis的工具类
  • MathType 7.5.2中文版软件使用期到了怎么办?
  • DOM 事件的注册和移除
  • 挖漏洞之SQL注入
  • 面试篇之微服务(二)
  • java封装详解
  • Make sure bypassing Vue built-in sanitization is safe here.
  • 企业的内容站点SEO应该怎么做更有效果?
  • mac电脑下载Netflix Mac(奈飞客户端)安装教程
  • PCL 计算点云图中任意两点的欧式距离
  • 使用OssImport 工具将文件上传到阿里云OSS
  • 充电桩新老国标兼容性分析
  • ApiSix的docker 容器化部署及使用
  • 第十节HarmonyOS 使用资源引用类型
  • ntopng如何将漏洞扫描与流量监控相结合,以提高网络安全性
  • 使用coco数据集进行语义分割(1):数据预处理,制作ground truth
  • 神经网络 模型表示2
  • ubuntu使用SSH服务远程登录另一台设备