没转换前的原始设备正常↓:
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 ------------
离线
大佬是买现成得板子吗?最近打算做一块板子
离线
大佬是买现成得板子吗?最近打算做一块板子
淘宝小智 SW113 板子
离线
楼主,我的T113开发板不支持evtest命令,请问Tina如何加入evtest?
离线
楼主,我的T113开发板不支持evtest命令,请问Tina如何加入evtest?
可以到这边去下载源码,然后自己放到tina中编译进去即可。可以按软件包方式编译进去。
https://elinux.org/images/9/93/Evtest.c
离线