您尚未登录。

楼主 # 2024-02-08 11:42:28

memory
会员
注册时间: 2021-08-11
已发帖子: 482
积分: 458

T113-S3 电阻触摸屏,用ts_uinput转换后的的设备,evtest 测试不输出 EV_KEY、BTN_TOUCH

没转换前的原始设备正常↓:

root@TinaLinux:/# evtest /dev/input/event0
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100
Input device name: "2009c00.rtp"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 330 (BTN_TOUCH)
  Event type 3 (EV_ABS)
    Event code 0 (ABS_X)
      Value   2145
      Min        0
      Max     4095
    Event code 1 (ABS_Y)
      Value   2334
      Min        0
      Max     4095
Properties:
Testing ... (interrupt to exit)
Event: time 1654042022.938933, type 3 (EV_ABS), code 0 (ABS_X), value 1829
Event: time 1654042022.938933, type 3 (EV_ABS), code 1 (ABS_Y), value 1879
Event: time 1654042022.938933, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 1654042022.938933, -------------- SYN_REPORT ------------
Event: time 1654042022.959409, type 3 (EV_ABS), code 0 (ABS_X), value 1809
Event: time 1654042022.959409, type 3 (EV_ABS), code 1 (ABS_Y), value 1877
Event: time 1654042022.959409, -------------- SYN_REPORT ------------
Event: time 1654042022.977324, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
Event: time 1654042022.977324, -------------- SYN_REPORT ------------
Event: time 1654042023.684403, type 3 (EV_ABS), code 0 (ABS_X), value 1617
Event: time 1654042023.684403, type 3 (EV_ABS), code 1 (ABS_Y), value 1746
Event: time 1654042023.684403, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 1654042023.684403, -------------- SYN_REPORT ------------
Event: time 1654042023.710507, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
Event: time 1654042023.710507, -------------- SYN_REPORT ------------
Event: time 1654042024.388912, type 3 (EV_ABS), code 0 (ABS_X), value 1389
Event: time 1654042024.388912, type 3 (EV_ABS), code 1 (ABS_Y), value 1626
Event: time 1654042024.388912, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 1654042024.388912, -------------- SYN_REPORT ------------
Event: time 1654042024.410923, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
Event: time 1654042024.410923, -------------- SYN_REPORT ------------

转换设备:

root@TinaLinux:/#
root@TinaLinux:/#
root@TinaLinux:/# TSLIB_CONSOLEDEVICE=none TSLIB_FBDEVICE=/dev/fb0 TSLIB_TSDEVIC
E=/dev/input/event0 ts_uinput -d -v -n touchscreen
[  870.431746] input: touchscreen as /devices/virtual/input/input5
/dev/input/event3
root@TinaLinux:/#
root@TinaLinux:/#
root@TinaLinux:/#

测试转换后的测试↓:

root@TinaLinux:/# TSLIB_CONSOLEDEVICE=none TSLIB_FBDEVICE=/dev/fb0 TSLIB_TSDEVIC
E=/dev/input/event0 ts_uinput -d -v -n touchscreen
[  870.431746] input: touchscreen as /devices/virtual/input/input5
/dev/input/event3
root@TinaLinux:/#
root@TinaLinux:/#
root@TinaLinux:/#
root@TinaLinux:/#
root@TinaLinux:/# evtest /dev/input/event3
Input driver version is 1.0.1
Input device ID: bus 0x6 vendor 0x0 product 0x0 version 0x0
Input device name: "touchscreen"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 330 (BTN_TOUCH)
  Event type 3 (EV_ABS)
    Event code 0 (ABS_X)
      Value      0
      Min        0
      Max      799
    Event code 1 (ABS_Y)
      Value      0
      Min        0
      Max      479
Properties:
Testing ... (interrupt to exit)
Event: time 1654042295.695812, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 1654042295.695812, type 3 (EV_ABS), code 0 (ABS_X), value 400
Event: time 1654042295.695812, type 3 (EV_ABS), code 1 (ABS_Y), value 256
Event: time 1654042295.695812, -------------- SYN_REPORT ------------
Event: time 1654042295.734123, type 3 (EV_ABS), code 0 (ABS_X), value 398
Event: time 1654042295.734123, -------------- SYN_REPORT ------------
Event: time 1654042297.084329, type 3 (EV_ABS), code 0 (ABS_X), value 356
Event: time 1654042297.084329, type 3 (EV_ABS), code 1 (ABS_Y), value 121
Event: time 1654042297.084329, -------------- SYN_REPORT ------------
Event: time 1654042297.477538, type 3 (EV_ABS), code 0 (ABS_X), value 361
Event: time 1654042297.477538, type 3 (EV_ABS), code 1 (ABS_Y), value 157
Event: time 1654042297.477538, -------------- SYN_REPORT ------------
Event: time 1654042297.520016, type 3 (EV_ABS), code 0 (ABS_X), value 364
Event: time 1654042297.520016, -------------- SYN_REPORT ------------
Event: time 1654042302.953898, type 3 (EV_ABS), code 0 (ABS_X), value 347
Event: time 1654042302.953898, type 3 (EV_ABS), code 1 (ABS_Y), value 252
Event: time 1654042302.953898, -------------- SYN_REPORT ------------
Event: time 1654042302.996373, type 3 (EV_ABS), code 0 (ABS_X), value 348
Event: time 1654042302.996373, type 3 (EV_ABS), code 1 (ABS_Y), value 251
Event: time 1654042302.996373, -------------- SYN_REPORT ------------
Event: time 1654042303.179124, type 3 (EV_ABS), code 0 (ABS_X), value 374
Event: time 1654042303.179124, type 3 (EV_ABS), code 1 (ABS_Y), value 250
Event: time 1654042303.179124, -------------- SYN_REPORT ------------
Event: time 1654042303.213413, type 3 (EV_ABS), code 0 (ABS_X), value 375
Event: time 1654042303.213413, -------------- SYN_REPORT ------------

离线

#1 2024-02-13 10:22:05

夜风
会员
注册时间: 2024-02-13
已发帖子: 1
积分: 1

Re: T113-S3 电阻触摸屏,用ts_uinput转换后的的设备,evtest 测试不输出 EV_KEY、BTN_TOUCH

大佬是买现成得板子吗?最近打算做一块板子

离线

楼主 #2 2024-02-14 18:32:29

memory
会员
注册时间: 2021-08-11
已发帖子: 482
积分: 458

Re: T113-S3 电阻触摸屏,用ts_uinput转换后的的设备,evtest 测试不输出 EV_KEY、BTN_TOUCH

夜风 说:

大佬是买现成得板子吗?最近打算做一块板子

淘宝小智 SW113 板子

离线

#3 2024-07-17 09:04:43

a06041114
会员
注册时间: 2021-01-18
已发帖子: 11
积分: 11

Re: T113-S3 电阻触摸屏,用ts_uinput转换后的的设备,evtest 测试不输出 EV_KEY、BTN_TOUCH

楼主,我的T113开发板不支持evtest命令,请问Tina如何加入evtest?

离线

#4 2024-09-22 13:31:00

海豚有海
会员
注册时间: 2022-08-14
已发帖子: 3
积分: 3

Re: T113-S3 电阻触摸屏,用ts_uinput转换后的的设备,evtest 测试不输出 EV_KEY、BTN_TOUCH

a06041114 说:

楼主,我的T113开发板不支持evtest命令,请问Tina如何加入evtest?

可以到这边去下载源码,然后自己放到tina中编译进去即可。可以按软件包方式编译进去。
https://elinux.org/images/9/93/Evtest.c

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn