嵌入式爱好者

查看: 7790|回复: 0

[Linux] USB触摸屏不准

[复制链接]

16

主题

23

帖子

82

积分

A40i/T3/T507/T527通行证i.MX6Q通行证i.MX8MM通行证i.MX8MP通行证RK3568通行证RK3399通行证AM335x通行证AM62x资料下载

扫一扫,手机访问本帖
发表于 2021-10-12 09:25:26 | 显示全部楼层 |阅读模式
请教一下,我用的USB电容触摸屏ILITEK的,系统识别为MOUSE类型,但是使用matrix-browse测试程序,指针位置不对。
我用ts-calibreate可以正常显示并校准,evtest也能够正常收到。

# evtest /dev/input/event4
Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0x222a product 0x1 version 0x110
Input device name: "ILITEK Multi-Touch-V3000"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 272 (BTN_LEFT)
    Event code 273 (BTN_RIGHT)
    Event code 274 (BTN_MIDDLE)
    Event code 275 (BTN_SIDE)
    Event code 276 (BTN_EXTRA)
  Event type 3 (EV_ABS)
    Event code 0 (ABS_X)
      Value      0
      Min        1
      Max    16384
      Resolution      31
    Event code 1 (ABS_Y)
      Value      0
      Min        1
      Max     9600
      Resolution      32
  Event type 4 (EV_MSC)
    Event code 4 (MSC_SCAN)
Properties:
Testing ... (interrupt to exit)
Event: time 482.039196, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001
Event: time 482.039196, type 1 (EV_KEY), code 272 (BTN_LEFT), value 1
Event: time 482.039196, type 3 (EV_ABS), code 0 (ABS_X), value 520
Event: time 482.039196, type 3 (EV_ABS), code 1 (ABS_Y), value 424
Event: time 482.039196, -------------- SYN_REPORT ------------
Event: time 482.047200, type 3 (EV_ABS), code 0 (ABS_X), value 520
Event: time 482.047200, type 3 (EV_ABS), code 1 (ABS_Y), value 424
Event: time 482.047200, -------------- SYN_REPORT ------------
Event: time 482.056195, type 3 (EV_ABS), code 0 (ABS_X), value 520
Event: time 482.056195, type 3 (EV_ABS), code 1 (ABS_Y), value 424
Event: time 482.056195, -------------- SYN_REPORT ------------
Event: time 482.066245, type 3 (EV_ABS), code 0 (ABS_X), value 520
Event: time 482.066245, type 3 (EV_ABS), code 1 (ABS_Y), value 424
Event: time 482.066245, -------------- SYN_REPORT ------------
Event: time 482.075263, type 3 (EV_ABS), code 0 (ABS_X), value 520
Event: time 482.075263, type 3 (EV_ABS), code 1 (ABS_Y), value 424
Event: time 482.075263, -------------- SYN_REPORT ------------
Event: time 482.083241, type 3 (EV_ABS), code 0 (ABS_X), value 520
Event: time 482.083241, type 3 (EV_ABS), code 1 (ABS_Y), value 424
Event: time 482.083241, -------------- SYN_REPORT ------------
Event: time 482.091264, type 3 (EV_ABS), code 0 (ABS_X), value 520
Event: time 482.091264, type 3 (EV_ABS), code 1 (ABS_Y), value 424
Event: time 482.091264, -------------- SYN_REPORT ------------
Event: time 482.102237, type 3 (EV_ABS), code 0 (ABS_X), value 520
Event: time 482.102237, type 3 (EV_ABS), code 1 (ABS_Y), value 425
Event: time 482.102237, -------------- SYN_REPORT ------------
Event: time 482.112195, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001
Event: time 482.112195, type 1 (EV_KEY), code 272 (BTN_LEFT), value 0
Event: time 482.112195, type 3 (EV_ABS), code 0 (ABS_X), value 520
Event: time 482.112195, type 3 (EV_ABS), code 1 (ABS_Y), value 425
Event: time 482.112195, -------------- SYN_REPORT ------------
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-12-20 13:15

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表