F133-A/D1S芒果派MQ-R在tina-sdk2.0下无法识别电阻触摸屏
-
测试显示屏为rgb接口的4.3寸800x480液晶屏,电阻触摸屏排线焊接在屏幕排线上
刷入晕哥的5寸800x480屏固件,成功点亮屏幕,但是触摸后GUI无反应,运行getevent后得到电阻屏输入root@TinaLinux:/# cat /sys/class/disp/disp/attr/sys screen 0: de_rate 300000000 hz, ref_fps:60 mgr0: 800x480 fmt[rgb] cs[0x204] range[full] eotf[0x4] bits[8bits] err[0] force_sync[0] unblank direct_show[false] iommu[1] dmabuf: cache[0] cache max[0] umap skip[0] overflow[0] lcd output backlight( 50) fps:87.7 800x 480 err:0 skip:273 irq:93653 vsync:0 vsync_skip:0 BUF enable ch[1] lyr[0] z[16] prem[N] a[pixel 255] fmt[ 0] fb[ 800, 480; 800, 480; 800, 480] crop[ 0, 0, 800, 480] frame[ 0, 0, 800, 480] addr[ffc00000, 0, 0] flags[0x 0] trd[0,0] depth[ 0] root@TinaLinux:/# getevent add device 1: /dev/input/event1 name: "audiocodec sunxi Audio Jack" add device 2: /dev/input/event0 name: "2009c00.rtp" could not get driver version for /dev/input/mouse0, Inappropriate ioctl for device could not get driver version for /dev/input/mice, Inappropriate ioctl for device poll 3, returned 1 /dev/input/event0: 0003 0000 00000676 poll 3, returned 1 /dev/input/event0: 0003 0001 0000097a poll 3, returned 1 /dev/input/event0: 0001 014a 00000001 poll 3, returned 1 /dev/input/event0: 0000 0000 00000000 poll 3, returned 1 /dev/input/event0: 0001 014a 00000000 poll 3, returned 1 /dev/input/event0: 0000 0000 00000000 poll 3, returned 1 /dev/input/event0: 0003 0000 000005b1 poll 3, returned 1 /dev/input/event0: 0003 0001 0000088b poll 3, returned 1 /dev/input/event0: 0001 014a 00000001 poll 3, returned 1 /dev/input/event0: 0000 0000 00000000 poll 3, returned 1 /dev/input/event0: 0003 0000 000005dd poll 3, returned 1 /dev/input/event0: 0003 0001 00000b2a poll 3, returned 1 /dev/input/event0: 0000 0000 00000000 poll 3, returned 1 /dev/input/event0: 0003 0000 00000777 poll 3, returned 1 /dev/input/event0: 0003 0001 00000ac3 poll 3, returned 1 /dev/input/event0: 0000 0000 00000000 poll 3, returned 1 /dev/input/event0: 0003 0000 00000899 poll 3, returned 1 /dev/input/event0: 0003 0001 0000083a poll 3, returned 1 /dev/input/event0: 0000 0000 00000000 poll 3, returned 1 /dev/input/event0: 0001 014a 00000000 poll 3, returned 1 /dev/input/event0: 0000 0000 00000000
在VM虚拟机中使用ubuntu14.04编译tina-sdk2.0,打上芒果派 MQ Pro,MQ 的板级配置文件,在menuconfig中选择lvgl_demo,修改board.dts中rtp项为
&rtp { allwinner,tp-sensitive-adjust = <0xf>; allwinner,filter-type = <0x1>; allwinner,ts-attached; status = "okay"; };
刷入MQ-R后运行lvgl_demo正常显示,终端显示
root@TinaLinux:/# lv_examples 0 wh=800x480, vwh=800x960, bpp=32,[ T158] VE: enable hw clock rotated=0 Turn on double buffe[ T158] enable_cedar_hw_clk,552 ring. Turn on 2d hardware acceleration. Turn on 2d hardware rotation acceleration. unable open evdev interface:: No such file or directory
触摸无反应,运行getevent,终端显示
depth[ 0] root@TinaLinux:/# getevent add device 1: /dev/input/event0 name: "audiocodec sunxi Audio Jack"
尝试替换芒果派麻雀固件与源码补丁2021-12-16.7z中的board.dts后重新编译打包,依然无法识别电阻触摸屏
-
电阻屏请用 tslib / uinput,需要先校正触摸屏:
F1C200 linux LVGL双缓冲支持
https://whycan.com/t_7705.html#p74077 -
@whycan 请问大佬为什么运行校准会这样
root@TinaLinux:/# ts_calibrate ts_setup: No such file or directory
还有getevent看不到触摸屏输入
-
@exoy28 tslib配置有问题,看着像缺模块
-
@yuzukitsuru menuconfig中添加了这些tslib features
请问还需要添加哪些项? -
@exoy28
宿主机上面用 file ts_calibrate 命令看看。 -
@whycan 在 F133-A/D1S芒果派MQ-R在tina-sdk2.0下无法识别电阻触摸屏 中说:
file ts_calibrate
exoy29@ubuntu:~/MQ-R/tina_d1_open_v2$ file ts_calibrate ts_calibrate: ERROR: cannot open `ts_calibrate' (No such file or directory)
-
@exoy28
后面那个参数用完整路径。 -
exoy29@ubuntu:~/MQ-R/tina_d1_open_v2$ find /home/exoy29/MQ-R/tina_d1_open_v2 -name ts_calibrate /home/exoy29/MQ-R/tina_d1_open_v2/out/d1s-mq/compile_dir/target/rootfs/usr/bin/ts_calibrate /home/exoy29/MQ-R/tina_d1_open_v2/out/d1s-mq/compile_dir/target/tslib-1.15/ipkg-sunxi/tslib/usr/bin/ts_calibrate /home/exoy29/MQ-R/tina_d1_open_v2/out/d1s-mq/compile_dir/target/tslib-1.15/tests/ts_calibrate /home/exoy29/MQ-R/tina_d1_open_v2/out/d1s-mq/compile_dir/target/tslib-1.15/tests/.libs/ts_calibrate /home/exoy29/MQ-R/tina_d1_open_v2/out/d1s-mq/compile_dir/target/tslib-1.15/ipkg-install/usr/bin/ts_calibrate /home/exoy29/MQ-R/tina_d1_open_v2/out/d1s-mq/staging_dir/target/rootfs/usr/bin/ts_calibrate
-
@exoy28
嵌入式系统运行 /usr/bin/ldd /usr/bin/ts_calibrate 试一试。 -
@whycan 在 F133-A/D1S芒果派MQ-R在tina-sdk2.0下无法识别电阻触摸屏 中说:
/usr/bin/ldd /usr/bin/ts_calibrate
root@TinaLinux:/# /usr/bin/ldd /usr/bin/ts_calibrate -/bin/sh: /usr/bin/ldd: Permission denied
-
@exoy28
宿主机运行这个:file /home/exoy29/MQ-R/tina_d1_open_v2/out/d1s-mq/staging_dir/target/rootfs/usr/bin/ts_calibrate
-
@whycan 在 F133-A/D1S芒果派MQ-R在tina-sdk2.0下无法识别电阻触摸屏 中说:
file /home/exoy29/MQ-R/tina_d1_open_v2/out/d1s-mq/staging_dir/target/rootfs/usr/bin/ts_calibrate
exoy29@ubuntu:~/MQ-R/tina_d1_open_v2$ file /home/exoy29/MQ-R/tina_d1_open_v2/out/d1s-mq/staging_dir/target/rootfs/usr/bin/ts_calibrate /home/exoy29/MQ-R/tina_d1_open_v2/out/d1s-mq/staging_dir/target/rootfs/usr/bin/ts_calibrate: ELF 64-bit LSB executable, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 4.15.0, not stripped
-
@exoy28
可能是依赖的某些so有问题,或者不存在用 xxx-objdump -x 可执行文件 |grep NEED 一个一个检查一下:
$ prebuilt/gcc/linux-x86/riscv/toolchain-thead-glibc/riscv64-glibc-gcc-thead_20200702/bin/riscv64-unknown-linux-gnu-objdump -x ./out/d1s-nezha/staging_dir/target/rootfs/bin/busybox |grep NEED NEEDED libcrypt.so.1 NEEDED libm.so.6 NEEDED libc.so.6
-
@whycan 是这样吗?
exoy29@ubuntu:~/MQ-R/tina_d1_open_v2$ ~/MQ-R/tina_d1_open_v2/prebuilt/gcc/linux-x86/riscv/toolchain-thead-glibc/riscv64-glibc-gcc-thead_20200702/bin/riscv64-unknown-linux-gnu-objdump -x /home/exoy29/MQ-R/tina_d1_open_v2/out/d1s-mq/staging_dir/target/rootfs/usr/bin/ts_calibrate |grep NEED NEEDED libts.so.0 NEEDED libdl.so.2 NEEDED libc.so.6 VERNEED 0x0000000000010a88 VERNEEDNUM 0x0000000000000001
-
@exoy28
目标板执行 find / -name libts.so.0 -
root@TinaLinux:/# find / -name libts.so.0 /usr/lib/libts.so.0 root@TinaLinux:/# find / -name libdl.so.2 /lib/libdl.so.2 root@TinaLinux:/# find / -name libc.so.6 /lib/libc.so.6
-
root@TinaLinux:/# /usr/lib/libts.so.0 [ T169] libts.so.0[169]: unhandled signal 11 code 0x1 at 0x0000000000028946 [ T169] CPU: 0 PID: 169 Comm: libts.so.0 Not tainted 5.4.61 #1 [ T169] sepc: 0000000000028946 ra : 0000000000028946 sp : 0000003ffffb5b30 [ T169] gp : 0000000000055948 tp : 0000003fbf560720 t0 : 0000000000000000 [ T169] t1 : 0000000000015a1c t2 : 000000000000006a s0 : 0000000004ff65f0 [ T169] s1 : 0000000004ff6620 a0 : 0000003fd0872020 a1 : 0000000004ff6620 [ T169] a2 : 0000000004ff6630 a3 : 000000000000002f a4 : 000000000000002f [ T169] a5 : 0000003fd0872020 a6 : 7efefefefefefeff a7 : 00000000000000dd [ T169] s2 : 0000000000052031 s3 : 000000000004c688 s4 : 0000000004ff6630 [ T169] s5 : 0000000000055cd0 s6 : 0000000000000008 s7 : ffffffffffffffff [ T169] s8 : 0000000000000000 s9 : 0000000004ff65f0 s10: ffffffffffffffff [ T169] s11: 000000000000002d t3 : 0000003fbf5e5ad4 t4 : 0000000000000000 [ T169] t5 : 0000000000000008 t6 : 0000003fff998280 [ T169] sstatus: 8000000201804020 sbadaddr: 0000000000028946 scause: 000000000000000c Segmentation fault root@TinaLinux:/# /lib/libdl.so.2 [ T170] libdl.so.2[170]: unhandled signal 11 code 0x1 at 0x0000000000028946 [ T170] CPU: 0 PID: 170 Comm: libdl.so.2 Not tainted 5.4.61 #1 [ T170] sepc: 0000000000028946 ra : 0000000000028946 sp : 0000003fff866b40 [ T170] gp : 0000000000055948 tp : 0000003fbf560720 t0 : 0000000000000000 [ T170] t1 : 0000000000015a1c t2 : 000000000000006a s0 : 0000000004ff65e8 [ T170] s1 : 0000000004ff6610 a0 : 0000003feb0600f0 a1 : 0000000004ff6610 [ T170] a2 : 0000000004ff6620 a3 : 000000000000002f a4 : 000000000000002f [ T170] a5 : 0000000000000000 a6 : 7efefefefefefeff a7 : 00000000000000dd [ T170] s2 : 0000000000052031 s3 : 000000000004c688 s4 : 0000000004ff6620 [ T170] s5 : 0000000000055cd0 s6 : 0000000000000008 s7 : ffffffffffffffff [ T170] s8 : 0000000000000000 s9 : 0000000004ff65e8 s10: ffffffffffffffff [ T170] s11: 000000000000002d t3 : 0000003fbf5e5ad4 t4 : 0000000000000000 [ T170] t5 : 0000000000000008 t6 : 0000003fff998280 [ T170] sstatus: 8000000201804020 sbadaddr: 0000000000028946 scause: 000000000000000c Segmentation fault root@TinaLinux:/# /lib/libc.so.6 GNU C Library (GNU libc) stable release version 2.29. Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Compiled by GNU CC version 8.1.0. libc ABIs: UNIQUE ABSOLUTE For bug reporting instructions, please see: <http://www.gnu.org/software/libc/bugs.html>.
-
终于想起哪里出错了: X1000 Linux 执行 ts_test ts_calibrate 都提示 No such file or directory, 求教
TSLIB_TSDEVICE=/dev/input/eventX ts_calibrate
X 用 0 / 1 / 2 ...代替
-
@whycan 在 F133-A/D1S芒果派MQ-R在tina-sdk2.0下无法识别电阻触摸屏 中说:
ts_calibrate
root@TinaLinux:/# TSLIB_TSDEVICE=/dev/input/event0 root@TinaLinux:/# ts_calibrate xres = 800, yres = 480 tslib: Selected device is not a touchscreen (must support ABS event type) ts_read: No such file or directory root@TinaLinux:/# TSLIB_TSDEVICE=/dev/input/event1 root@TinaLinux:/# ts_calibrate ts_setup: No such file or directory root@TinaLinux:/# TSLIB_TSDEVICE=/dev/input/event2 root@TinaLinux:/# ts_calibrate ts_setup: No such file or directory root@TinaLinux:/# TSLIB_TSDEVICE=/dev/input/event3 root@TinaLinux:/# ts_calibrate ts_setup: No such file or directory
输入getevent显示
root@TinaLinux:/# getevent add device 1: /dev/input/event0 name: "audiocodec sunxi Audio Jack"
在/dev/input/目录下只有
root@TinaLinux:/dev/input# ls event0
-
你的 config-5.4 和 board.dts 是怎么修改的?
-
@whycan 使用的是芒果派 MQ Pro,MQ 的板级配置文件,之后在menuconfig里面选择tslib和lvgl
config-5.4 board.dts -
# CONFIG_TOUCHSCREEN_SUN4I is not set # CONFIG_TOUCHSCREEN_SUNXI is not set
这两个驱动中的一个需要打开,我不确定是那个,你把两个都勾上吧。
-
@whycan 这个是在menuconfig里修改吗?还是直接改文件
-
@exoy28
都可以,我习惯直接改。 -
@whycan getevent能够看到触控屏了
root@TinaLinux:/dev/input# getevent add device 1: /dev/input/event1 name: "audiocodec sunxi Audio Jack" add device 2: /dev/input/event0 name: "sunxi-ts" poll 3, returned 1 /dev/input/event0: 0003 0000 000007ea poll 3, returned 1 /dev/input/event0: 0003 0001 0000099a poll 3, returned 1 /dev/input/event0: 0001 014a 00000001 poll 3, returned 1 /dev/input/event0: 0000 0000 00000000 poll 3, returned 1 /dev/input/event0: 0001 014a 00000000 poll 3, returned 1 /dev/input/event0: 0000 0000 00000000 poll 3, returned 1 /dev/input/event0: 0003 0000 00000953 poll 3, returned 1 /dev/input/event0: 0003 0001 000006cc poll 3, returned 1 /dev/input/event0: 0001 014a 00000001 poll 3, returned 1 /dev/input/event0: 0000 0000 00000000 poll 3, returned 1 /dev/input/event0: 0003 0000 00000a65 poll 3, returned 1 /dev/input/event0: 0003 0001 00000750 poll 3, returned 1 /dev/input/event0: 0000 0000 00000000 poll 3, returned 1 /dev/input/event0: 0001 014a 00000000 poll 3, returned 1 /dev/input/event0: 0000 0000 00000000
运行ts_test显示
root@TinaLinux:/dev/input# TSLIB_TSDEVICE=/dev/input/event0 ts_test 558.762950: 459 225 255 558.838669: 459 225 0 559.418308: 531 247 255 559.559565: 531 247 0 560.008132: 399 248 255 560.280459: 399 248 0 560.597963: 501 171 255 561.001354: 579 191 0 561.581002: 495 217 255 561.787794: 495 217 0 562.170817: 306 220 255 562.498498: 351 109 255 562.826181: 318 376 255 563.153860: 275 225 255 563.481537: 365 353 255 563.809218: 294 267 255 564.409227: 541 340 0 ^Csignal 2 caught
但是在lv_example里没有触控
-
重新回到原点:
D1S芒果派MQ-R在tina-sdk2.0下无法识别电阻触摸屏:
https://bbs.aw-ol.com/topic/1444/share/2 -
-
@whycan 修改lv_examples下的lv_drv_conf.h,将event3替换为event0
/*------------------------------------------------- * Mouse or touchpad as evdev interface (for Linux based systems) *------------------------------------------------*/ #ifndef USE_EVDEV # define USE_EVDEV 1 #endif #ifndef USE_BSD_EVDEV # define USE_BSD_EVDEV 0 #endif #if USE_EVDEV || USE_BSD_EVDEV # define EVDEV_NAME "/dev/input/event0" /*You can use the "evtest" Linux tool to get the list of devices and test them*/ # define EVDEV_SWAP_AXES 0 /*Swap the x and y axes of the touchscreen*/ # define EVDEV_CALIBRATE 0 /*Scale and offset the touchscreen coordinates by using maximum and minimum values for each axis*/ # if EVDEV_CALIBRATE # define EVDEV_HOR_MIN 0 /*to invert axis swap EVDEV_XXX_MIN by EVDEV_XXX_MAX*/ # define EVDEV_HOR_MAX 4096 /*"evtest" Linux tool can help to get the correct calibraion values>*/ # define EVDEV_VER_MIN 0 # define EVDEV_VER_MAX 4096 # endif /*EVDEV_CALIBRATE*/ #endif /*USE_EVDEV*/
运行
export TSLIB_TSDEVICE=/dev/input/event0 ts_calibrate
显示
root@TinaLinux:/# ts_calibrate xres = 800, yres = 480 Took 2 samples... Top left : X = 378 Y = 643 Took 2 samples... Top right : X = 3643 Y = 725 Took 2 samples... Bot right : X = 3669 Y = 3440 Took 2 samples... Bot left : X = 353 Y = 3451 Took 3 samples... Center : X = 2011 Y = 2123 -27.727510 0.212721 -0.000005 -42.589745 -0.001469 0.137518 Calibration constants: -1817150 13940 0 -2791161 -96 9012 65536
运行ts_test,点击屏幕后开发板重启
再次运行export TSLIB_TSDEVICE=/dev/input/event0 ts_calibrate
运行lv_examples 0显示
root@TinaLinux:/# lv_examples 0 wh=800x480, vwh=800x960, bpp=32,[ T156] VE: enable hw clock rotated=0 Turn on double buffe[ T156] enable_cedar_hw_clk,552 ring. Turn on 2d hardware acceleration. Turn on 2d hardware rotation acceleration.
无evdev interface报错,画面显示正常,触摸屏幕后开发板重启
-
@whycan 运行ts_test后开发板重启前的输出
root@TinaLinux:/# ts_test 1224.843824: 658 201 255 1225.171497: 696 303 255 1225.499180: 582 364 255 1225.826854: 299 338 255 1226.154542: 479 133 255 1226.482225: 647 194 255 1226.809898: 448 281 255 1227.137577: 199 319 255 1227.465257: 214 204 255 1227.792936: 423 223 255 1228.120622: 569 295 255 1228.448298: 493 350 255 1228.775984: 261 277 255 1229.103655: 392 170 255 1229.431339: 597 193 255 1229.759022: 616 298 255 1230.086696: 408 373 255 1230.414384: 326 270 255 1230.742061: 498 171 255 1231.069736: 622 205 255 1231.669747: 565 321 0 1233.297962: 467 18 255 1233.439221: 467 18 0 1235.132969: 593 179 255 1235.460655: 634 254 255 1235.788329: 645 318 255 1236.116015: 503 398 255 1236.443688: 325 295 255 1236.771369: 364 204 255 1237.099055: 471 196 255 1237.426732: 572 263 255 1237.754416: 497 357 255 1238.082089: 366 360 255 1238.409767: 197 287 255 1238.737458: 129 207 255 1239.065130: 97 271 255 1239.392809: 154 362 255 1239.720488: 233 367 255 1240.048172: 343 306 255 1240.375853: 485 196 255 1240.703532: 608 182 255 1241.031216: 680 218 255 1241.358890: 672 300 255 1241.686568: 582 349 255 1242.014256: 443 288 255 1242.341926: 357 207 255 1242.669610: 270 149 255 1242.997289: 193 143 255 1243.324975: 173 225 255 1243.652654: 214 314 255 1243.980330: 321 340 255 1244.308009: 463 273 255 1244.635688: 547 190 255 1244.963371: 633 158 255 1245.291056: 695 212 255 1245.618728: 672 271 255 1246.218741: 596 314 0 1252.434480: 702 23 255 1252.434480: 702 23 255 1252.837881: 701 22 0 root@TinaLinux:/# [32]HELLO! BOOT0 is starting! [35]BOOT0 commit : 88480af U-Boot 2018.05-g24521d6 (Feb 11 2022 - 08:52:39 +0000) Allwinner Technology [00.112]DRAM: 64 MiB [00.114]Relocation Offset is: 01ee7000 [00.118]secure enable bit: 0 [00.121]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=300Mhz [00.127]flash init start [00.129]workmode = 0,storage type = 1 [00.133][mmc]: mmc driver ver uboot2018:2021-11-19 15:38:00 [00.138][mmc]: get sdc_type fail and use default host:tm1. [00.144][mmc]: can't find node "mmc0",will add new node [00.149][mmc]: fdt err returned <no error> [00.153][mmc]: Using default timing para [00.157][mmc]: SUNXI SDMMC Controller Version:0x50310 [00.174][mmc]: card_caps:0x3000000a [00.177][mmc]: host_caps:0x3000003f [00.180]sunxi flash init ok [00.183]line:703 init_clocks [00.186]drv_disp_init fdt_getprop_u32 s_pwm.pwm-base fail [00.202]drv_disp_init finish [00.204]boot_gui_init:start [00.207]set disp.dev2_output_type fail. using defval=0 [00.214]boot_gui_init:finish partno erro : can't find partition bootloader 54 bytes read in 3 ms (17.6 KiB/s) [00.256]bmp_name=bootlogo.bmp size 38454 38454 bytes read in 7 ms (5.2 MiB/s) [00.300]Loading Environment from SUNXI_FLASH... OK [00.322]out of usb burn from boot: not need burn key [00.350]Item0 (Map) magic is bad [00.352]the secure storage item0 copy0 magic is bad [00.380]Item0 (Map) magic is bad [00.383]the secure storage item0 copy1 magic is bad [00.387]Item0 (Map) magic is bad [00.393]LCD open finish partno erro : can't find partition private root_partition is rootfs set root to /dev/mmcblk0p5 [00.407]update part info [00.412]update bootcmd [00.418]change working_fdt 0x42aa6da0 to 0x42a86da0 disable nand error: FDT_ERR_BADPATH No reserved memory region found in source FDT [00.448]update dts noncached_alloc(): addr = 0x42c8a080 noncached_alloc(): addr = 0x42c8a0c0 noncached_alloc(): addr = 0x42c8a100 noncached_alloc(): addr = 0x42c8a940 geth_sys_init:634: get node 'gmac0' error geth_sys_init fail! [00.468]Board Net Initialization Failed [00.472]No ethernet found. Hit any key to stop autoboot: 0
-
@exoy28
需要tslib里面的uinput app,驱动记得开启 USER INPUT配置。 -
@whycan uinput app具体应该怎么使用呢?
menuconfig中已经勾选ts_uinput选项
-
@exoy28 后台跑着 uinput,然后再用ts_test测试这个生成后的 eventX。
-
@whycan 运行ts_calibrate,运行ts_uinput_start.sh中的代码
root@TinaLinux:/# export TSLIB_TSDEVICE=/dev/input/event0 root@TinaLinux:/# ts_calibrate xres = 800, yres = 480 Took 1 samples... Top left : X = 350 Y = 691 Took 1 samples... Top right : X = 3633 Y = 723 Took 1 samples... Bot right : X = 3617 Y = 3478 Took 1 samples... Bot left : X = 367 Y = 3424 Took 1 samples... Center : X = 1993 Y = 2107 -26.796770 0.214292 -0.000035 -45.028530 -0.001821 0.138470 Calibration constants: -1756153 14043 -2 -2950989 -119 9074 65536 root@TinaLinux:/# TS_UINPUT_DEV_FILE=$(ts_uinput -d -v) [ T158] input: ts_uinput as /devices/virtual/input/input2 root@TinaLinux:/# TS_UINPUT_DEV_FILE_CHECKED=$(ls "$TS_UINPUT_DEV_FILE" | grep ' event') ls: tslib: WARNING: no multitouch using VARIANCE filter /dev/input/event2: No such file or directory root@TinaLinux:/# if [ ! -z "$TS_UINPUT_DEV_FILE_Crm -f /dev/input/ts_uinput > ln -s $TS_UINPUT_DEV_FILE_CHECKED /dev/input/ts_uinput > else > echo "ts_uinput: Error creating event device" > exit 1 > fi ts_uinput BusyBox v1.27.2 () built-in shell (ash) ------run profile file----- _____ _ __ _ |_ _||_| ___ _ _ | | |_| ___ _ _ _ _ | | _ | || | | |__ | || || | ||_'_| | | | || | || _ | |_____||_||_|_||___||_,_| |_| |_||_|_||_|_| Tina is Based on OpenWrt! ---------------------------------------------- Tina Linux (Neptune, 61CC0487) ---------------------------------------------- root@TinaLinux:/# getevent add device 1: /dev/input/event2 name: "ts_uinput" add device 2: /dev/input/event1 name: "audiocodec sunxi Audio Jack" add device 3: /dev/input/event0 name: "2009c00.rtp" [ C0] random: crng init done poll 4, returned 2 /dev/input/event2: 0001 014a 00000001 /dev/input/event0: 0003 0000 00000608 poll 4, returned 2 /dev/input/event2: 0003 0000 0000012f /dev/input/event0: 0003 0001 00000aa7 poll 4, returned 2 /dev/input/event2: 0003 0001 00000149 /dev/input/event0: 0001 014a 00000001 poll 4, returned 2 /dev/input/event2: 0000 0000 00000000 /dev/input/event0: 0000 0000 00000000 poll 4, returned 1 /dev/input/event0: 0001 014a 00000000 poll 4, returned 1 /dev/input/event0: 0000 0000 00000000 ^C root@TinaLinux:/# ^C root@TinaLinux:/# ts_test dev/input/event2 ts_open: No such file or directory root@TinaLinux:/# ts_test ts_open: No such file or directory root@TinaLinux:/# ts_test dev/input/event0 ts_open: No such file or directory
生成了新的event,但是ts_test报错
-
TSLIB_TSDEVICE=/dev/input/event2 ts_test
-
@whycan 在 F133-A/D1S芒果派MQ-R在tina-sdk2.0下无法识别电阻触摸屏 中说:
TSLIB_TSDEVICE=/dev/input/event2 ts_test
能够输出结果,但是光标位置不对
root@TinaLinux:/# TSLIB_TSDEVICE=/dev/input/event2 ts_test 876.254707: 66 -3 255 876.910048: 99 3 255 877.237729: 109 7 255 877.565413: 105 7 255 877.893097: 12 2 255 878.220772: -17 -7 255 878.548451: -10 -25 255 878.876130: 9 -34 255 879.203822: 62 -27 255 879.531498: 100 -2 255 879.859168: 78 13 255
-
@whycan 运行TSLIB_TSDEVICE=/dev/input/event2 ts_calibrate重新校准,点击屏幕无反应
-
① 用这个先生成校准文件:
TSLIB_TSDEVICE=/dev/input/event0 ts_calibrate② 后台运行 uinput:
TSLIB_TSDEVICE=/dev/input/event0 ts_uinput③ 前台执行 测试:
TSLIB_TSDEVICE=/dev/input/event2 ts_test这个坐标应该是正确的。
-
@whycan 在 F133-A/D1S芒果派MQ-R在tina-sdk2.0下无法识别电阻触摸屏 中说:
TSLIB_TSDEVICE=/dev/input/event2 ts_test
不行,坐标还是不对,光标会漂移到左上角
-
③ 前台执行 测试: TSLIB_TSDEVICE=/dev/input/event2 ts_test
不好意思这个不对,纠正一下:
③ 前台执行 测试:
evtest /dev/input/event2
或者 getevent -
@whycan 在 F133-A/D1S芒果派MQ-R在tina-sdk2.0下无法识别电阻触摸屏 中说:
evtest /dev/input/event2
root@TinaLinux:/# TSLIB_TSDEVICE=/dev/input/event0 ts_calibrate xres = 800, yres = 480 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 364 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 681 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 1 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 Took 1 samples... Top left : X = 364 Y = 681 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3658 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 690 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 1 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 688 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 Took 2 samples... Top right : X = 3658 Y = 689 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3656 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3496 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 1 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 Took 1 samples... Bot right : X = 3656 Y = 3496 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 343 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3500 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 1 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 Took 1 samples... Bot left : X = 343 Y = 3500 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 2017 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 2053 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 1 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 Took 1 samples... Center : X = 2017 Y = 2053 -27.222799 0.211892 0.000877 -41.296440 -0.000077 0.135066 Calibration constants: -1784073 13886 57 -2706403 -5 8851 65536 root@TinaLinux:/# TSLIB_TSDEVICE=/dev/input/event0 ts_uinput -d tslib: WARNING: no multitouch using VARIANCE filter [ T157] input: ts_uinput as /devices/virtual/input/input2 [ T157] evbug: Connected device: input2 (ts_uinput at unknown) input2 root@TinaLinux:/# evtest /dev/input/event2 -/bin/sh: evtest: not found root@TinaLinux:/# getevent add device 1: /dev/input/event2 name: "ts_uinput" add device 2: /dev/input/event1 name: "audiocodec sunxi Audio Jack" add device 3: /dev/input/event0 name: "2009c00.rtp" [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 2766 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 1954 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 1 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T158] evbug: Event. Dev: input2, Type: 1, Code: 330, Value: 1 [ T158] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 560 [ T158] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 222 [ T158] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 poll 4, returned 2 /dev/input/event2: 0001 014a 00000001 /dev/input/event0: 0003 0000 00000ace poll 4, returned 2 /dev/input/event2: 0003 0000 00000230 /dev/input/event0: 0003 0001 000007a2 poll 4, returned 2 /dev/input/event2: 0003 0001 000000de /dev/input/event0: 0001 014a 00000001 poll 4, returned 2 /dev/input/event2: 0000 0000 00000000 /dev/input/event0: 0000 0000 00000000 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 2251 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3012 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 poll 4, returned 1 /dev/input/event0: 0003 0000 000008cb poll 4, returned 1 /dev/input/event0: 0003 0001 00000bc4 poll 4, returned 1 /dev/input/event0: 0000 0000 00000000 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 1255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 2784 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T158] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 452 [ T158] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 365 [ T158] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 poll 4, returned 2 /dev/input/event2: 0003 0000 000001c4 /dev/input/event0: 0003 0000 000004e7 poll 4, returned 2 /dev/input/event2: 0003 0001 0000016d /dev/input/event0: 0003 0001 00000ae0 poll 4, returned 2 /dev/input/event2: 0000 0000 00000000 /dev/input/event0: 0000 0000 00000000 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 1609 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 2272 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 poll 4, returned 1[ T158] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 241 [ T158] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 334 [ T158] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 /dev/input/event0: 0003 0000 00000649 poll 4, returned 1 /dev/input/event0: 0003 0001 000008e0 poll 4, returned 1 /dev/input/event0: 0000 0000 00000000 poll 4, returned 1 /dev/input/event2: 0003 0000 000000f1 poll 4, returned 1 /dev/input/event2: 0003 0001 0000014e poll 4, returned 1 /dev/input/event2: 0000 0000 00000000 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 2751 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 2562 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 poll 4, returned 1[ T158] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 315 [ T158] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 265 [ T158] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 /dev/input/event0: 0003 0000 00000abf poll 4, returned 1 /dev/input/event0: 0003 0001 00000a02 poll 4, returned 1 /dev/input/event0: 0000 0000 00000000 poll 4, returned 1 /dev/input/event2: 0003 0000 0000013b poll 4, returned 1 /dev/input/event2: 0003 0001 00000109 poll 4, returned 1 /dev/input/event2: 0000 0000 00000000 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3569 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3526 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 poll 4, returned 1[ T158] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 557 [ T158] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 304 [ T158] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 /dev/input/event0: 0003 0000 00000df1 poll 4, returned 1 /dev/input/event0: 0003 0001 00000dc6 poll 4, returned 1 /dev/input/event0: 0000 0000 00000000 poll 4, returned 1 /dev/input/event2: 0003 0000 0000022d poll 4, returned 1 /dev/input/event2: 0003 0001 00000130 poll 4, returned 1 /dev/input/event2: 0000 0000 00000000 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 poll 4, returned 1[ T158] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 732 [ T158] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 434 [ T158] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 /dev/input/event0: 0001 014a 00000000 poll 4, returned 1 /dev/input/event0: 0000 0000 00000000 poll 4, returned 1 /dev/input/event2: 0003 0000 000002dc poll 4, returned 1 /dev/input/event2: 0003 0001 000001b2 poll 4, returned 1 /dev/input/event2: 0000 0000 00000000
-
@exoy28
现在坐标对了吗? -
@whycan 坐标应该是对了,但是运行lv_example触摸还是没反应,有时候连续触摸几下就会直接重启
root@TinaLinux:/# lv_examples 0 wh=800x480, vwh=800x960, bpp=32,[ T160] VE: enable hw clock rotated=0 Turn on double buffe[ T160] enable_cedar_hw_clk,552 ring. Turn on 2d hardware acceleration. Turn on 2d hardware rotation acceleration. [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 1770 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 1624 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 1 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T158] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 348 [ T158] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 179 [ T158] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3392 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 2034 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 1 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T158] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 692 [ T158] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 232 [ T158] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3389 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 2015 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T158] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 230 [ T158] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 1720 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 2008 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 1 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T158] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 337 [ T158] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 231 [ T158] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 2090 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 1926 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 1 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T158] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 416 [ T158] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 219 [ T158] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 2962 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 834 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 1 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T158] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 600 [ T158] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 71 [ T158] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 2971 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 846 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T158] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 602 [ T158] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 72
-
@exoy28
用我这个试一试:这个比较简单: 哪吒D1开发板 LVGL7 源码下载(带git仓库)
-
@whycan 排查了一下异常重启可能是tf卡的问题,我买张新卡再试试看
-
@whycan 换了张新的tf卡试了下,基本没有重启的问题了,但是触摸还是不太行。
在lv_drv_conf.h中指定输入为event0,即不使用tslib,在lvgl中触摸左上角时有反应,触摸其他区域无反应。
在lv_drv_conf.h中指定输入为event2,同时使用ts_uinput生成event2,在lvgl中触摸所有区域均无反应。运行getevent可以发现生成的event2坐标正确。
是不是uinput生成的event2和event0冲突了? -
@exoy28
理论上没有问题的,实在不行可以在lvgl把event数据打印出来看看。您再参考这个帖子:
收到芒果大佬的库存 DVP与MIPI 双摄像头R11开发板
https://bbs.aw-ol.com/topic/1305/share/8 -
@whycan 运行TSLIB_TSDEVICE=/dev/input/event2 ts_test得到的结果有点奇怪,光标会漂移到左上角,触摸数据和evbug的对不上
[ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3788 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3478 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 773 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 422 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5415.808755: 128 14 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3821 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3546 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3835 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3557 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 781 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 432 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5416.136435: 128 13 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3826 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3547 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 784 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 433 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5416.791784: 129 15 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3543 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 782 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 432 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5417.119476: 130 15 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3823 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3540 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 431 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5417.440668: 130 15 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3827 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3553 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3832 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3566 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 783 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 433 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5417.774830: 130 15 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3860 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3857 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3874 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3809 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 790 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 474 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3859 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3678 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 793 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 467 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5419.085551: 131 20 255 5419.085551: 131 20 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3858 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 790 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 450 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5419.413279: 132 19 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3861 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3672 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 789 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5419.734420: 131 17 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3857 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3675 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 790 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 449 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5420.068592: 131 17 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3862 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3678 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 789 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5420.396277: 131 17 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3867 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3680 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 790 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 450 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5420.723954: 131 17 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3870 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3683 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 791 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5421.051640: 131 17 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3872 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3685 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 792 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5421.379314: 132 17 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3864 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3684 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 451 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5421.707000: 132 17 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3867 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 791 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 450 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5422.034675: 132 17 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3858 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3680 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3859 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3681 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 789 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5422.355931: 132 17 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3862 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3682 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 790 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5423.017706: 131 17 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3864 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3684 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3865 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3685 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 791 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5423.345393: 131 17 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3867 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3684 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 451 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5424.000746: 132 17 255 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 450 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5424.328436: 132 17 255 ^Csignal 2 caught root@TinaLinux:/# clear root@TinaLinux:/# TSLIB_TSDEVICE=/dev/input/event2 ts_test [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 405 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3597 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 1 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 48 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 446 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5490.919324: -27 18 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 540 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3565 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 756 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3493 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 77 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 441 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5490.919324: -27 18 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 1093 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3415 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 123 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 431 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 1547 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3391 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 196 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 420 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5491.896054: -11 16 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 2055 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3395 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 293 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 415 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5492.223752: 4 14 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 2510 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3432 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 402 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5492.551421: 25 13 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 2816 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3424 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 500 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 419 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5492.879089: 48 13 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3143 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3412 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 566 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 417 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5493.206905: 69 14 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3543 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3457 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 636 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 415 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5493.534454: 83 13 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3778 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3432 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 722 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 420 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5493.862179: 98 13 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3957 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3460 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 772 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 416 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5494.189815: 117 13 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3985 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3457 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 811 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 420 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5494.517495: 128 13 255 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 817 [ T167] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 419 [ T167] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 5494.845169: 136 13 255 5494.845169: 136 13 255
-
@exoy28 发个照片看看。
-
@whycan
触控测试视频
shell输出BusyBox v1.27.2 () built-in shell (ash) [ T59] [sunxi-ehci0]: remove, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xffffffe000752910 ------run profile file----- nice: can't execute '/usr/bin/story_ota_bin': No such file or directory [ T147] read descriptors [ T59] sunxi-ehci 4101000.ehci0-controller: remove, state 4 [ T59] usb usb3: USB disconnect, device number 1 _____ _ __ _ |_ _||_| ___ _ _ | | |_| ___ _ _ _ _ | | _ | [ T147] read strings || | | |__ | || || | ||_'_| | | | || | || _ | |_____||_||_|_||___||_,_| |_| |_||_|_||_|_| Tina is Based on OpenWrt! ---------------------------------------------- Tina Linux (Neptune, 61CC0487) ---------------------------------------------- [ T59] sunxi-ehci 4101000.ehci0-controller: USB bus 3 deregistered [ T59] [ohci0-controller]: sunxi_usb_disable_ohci [ T59] [sunxi-ohci0]: remove, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xffffffe000752cd8 nodev debugfs [ T59] sunxi-ohci 4101400.ohci0-controller: remove, state 4 [ T59] usb usb4: USB disconnect, device number 1 [ T59] sunxi-ohci 4101400.ohci0-controller: USB bus 4 deregistered [ T59] [ T59] insmod_device_driver [ T59] root@TinaLinux:/# [ T59] sunxi_usb_udc 4100000.udc-controller: 4100000.udc-controller supply udc not found, using dummy regulator [ T59] device_chose finished 139! [ T13] sunxi_set_cur_vol_work()397 WARN: get power supply failed [ T13] android_work: sent uevent USB_STATE=CONNECTED [ T13] sunxi_set_cur_vol_work()397 WARN: get power supply failed [ C0] configfs-gadget gadget: high-speed config #1: c [ T13] android_work: sent uevent USB_STATE=CONFIGURED root@TinaLinux:/# TSLIB_TSDEVICE=/dev/input/event0 ts_calibrate xres = 800, yres = 480 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 372 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 615 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 1 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 Took 1 samples... Top left : X = 372 Y = 615 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3683 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 726 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 1 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3681 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 735 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 Took 2 samples... Top right : X = 3682 Y = 730 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3682 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3494 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 1 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 Took 1 samples... Bot right : X = 3682 Y = 3494 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 393 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3432 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 1 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 383 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 387 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3440 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 Took 3 samples... Bot left : X = 387 Y = 3432 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 2021 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 2090 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 1 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 2017 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 2089 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 Took 2 samples... Center : X = 2019 Y = 2089 -28.785591 0.211973 -0.000569 -34.737820 -0.003649 0.136168 Calibration constants: -1886492 13891 -37 -2276577 -239 8923 65536 root@TinaLinux:/# TSLIB_TSDEVICE=/dev/input/event0 ts_uinput -d -v tslib: WARNING: no multitouch using VARIANCE filter [ T163] input: ts_uinput as /devices/virtual/input/input2 [ T163] evbug: Connected device: input2 (ts_uinput at unknown) /dev/input/event2 root@TinaLinux:/# TSLIB_TSDEVICE=/dev/input/event2 ts_test[ C0] random: crng init done ^Csignal 2 caught root@TinaLinux:/# TSLIB_TSDEVICE=/dev/input/event2 ts_test [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 278 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3696 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 1 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 1, Code: 330, Value: 1 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 28 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 467 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6125.790361: -23 28 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 422 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3732 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 543 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3748 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 58 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 471 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 904 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3774 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 84 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 473 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6126.439293: -16 29 255 6126.439293: -16 29 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 1340 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3809 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 160 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 475 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 1855 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3852 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 253 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 478 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6127.094758: 4 29 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 2228 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3840 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 362 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 482 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6127.422437: 24 29 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 2647 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3784 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 441 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 479 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6127.750120: 47 29 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3041 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3753 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 530 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 470 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6128.077806: 64 28 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3318 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3713 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 613 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 465 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6128.405497: 83 27 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3492 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3712 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 672 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 458 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6128.733157: 100 26 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3575 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3723 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 709 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 457 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6129.060856: 113 25 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3826 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3733 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 726 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 459 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6129.388522: 121 24 255 6129.388522: 121 24 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3985 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3739 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 780 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 813 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6130.043886: 136 24 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3323 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3793 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 1 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 673 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 469 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6130.113010: 143 24 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3048 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3722 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 2651 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3657 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 615 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 460 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6132.344078: 113 26 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 2388 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3648 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 531 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 453 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6132.993003: 101 25 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 2229 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3650 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 475 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6133.320696: 83 25 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 2005 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3658 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 441 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 454 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6133.648358: 71 25 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 1790 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3714 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 394 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 456 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6133.976041: 64 25 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 1802 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3702 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 348 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 464 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6134.303723: 54 25 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 2156 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3456 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 2560 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 3207 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 426 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 427 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6134.631409: 44 27 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 2911 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 2942 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 512 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 392 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6135.286759: 61 21 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3107 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 2862 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 586 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 355 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6135.614441: 79 16 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3247 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 2803 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 628 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 343 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6135.942119: 95 11 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3351 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 2727 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 657 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 335 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6136.269811: 104 9 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3428 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 2690 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 679 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 324 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6136.597482: 110 8 255 6136.597482: 110 8 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3469 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 2665 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 696 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 319 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6136.925163: 114 6 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3528 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 2584 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 704 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 315 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6137.252853: 118 6 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3527 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 2576 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 717 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 304 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6137.580524: 120 5 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3043 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 2481 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 2466 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 2296 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 614 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 291 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 1933 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 2194 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 492 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 268 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6138.563549: 101 2 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 1736 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 2126 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 379 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 256 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6138.891242: 75 0 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 1589 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 2093 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 337 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 248 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6139.219069: 51 -1 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 1587 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 2096 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 306 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 244 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6139.546609: 42 -2 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 1602 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 2066 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 1865 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 1911 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 309 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 240 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6139.546609: 42 -2 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 2421 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 1672 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 365 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 218 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 2824 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 1548 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 483 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 184 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6140.857325: 48 -6 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3134 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 1490 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 568 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 165 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6141.184996: 73 -11 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3340 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 1412 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 634 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 156 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6141.512692: 91 -14 255 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 3448 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 1375 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 678 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 145 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6141.840359: 105 -15 255 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 701 [ T164] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 139 [ T164] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 6142.168041: 114 -17 255 6142.168041: 114 -17 255
-
@exoy28
event2 已经用 uinput 转换成屏幕坐标了,不是原始adc值了。所以用 ts_test 不能再测试 event2 了。
但是这样操作或许可以:
TSLIB_TSDEVICE=/dev/input/event2 ts_calibrate TSLIB_TSDEVICE=/dev/input/event2 ts_test
-
@whycan 运行
TSLIB_TSDEVICE=/dev/input/event0 ts_calibrate TSLIB_TSDEVICE=/dev/input/event0 ts_uinput -d -v TSLIB_TSDEVICE=/dev/input/event2 ts_calibrate
后触摸屏幕无反应,shell显示
root@TinaLinux:/# TSLIB_TSDEVICE=/dev/input/event2 ts_calibrate xres = 800, yres = 480 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 370 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 668 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 1 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T166] evbug: Event. Dev: input2, Type: 1, Code: 330, Value: 1 [ T166] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 48 [ T166] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 53 [ T166] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 379 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 674 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 378 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 673 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T166] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 50 [ T166] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 54 [ T166] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 382 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 688 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T166] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 51 [ T166] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 56 [ T166] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 415 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 694 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 1 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T166] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 58 [ T166] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 57 [ T166] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 414 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 710 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 409 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 699 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T166] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 59 [ T166] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 411 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 690 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T166] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 57 [ T166] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 58 [ T166] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 416 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 699 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T166] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 56 [ T166] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 398 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 687 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T166] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 58 [ T166] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 58 [ T166] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 399 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 697 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T166] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 54 [ T166] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 56 [ T166] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 [ C0] random: crng init done [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 398 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 691 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T166] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 55 [ T166] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 57 [ T166] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 391 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 684 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T166] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 54 [ T166] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 386 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 662 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T166] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 53 [ T166] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 56 [ T166] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 385 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 676 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T166] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 52 [ T166] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 53 [ T166] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 386 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 677 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T166] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 55 [ T166] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 384 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 676 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 388 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 682 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T166] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 51 [ T166] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 0, Value: 392 [ C0] evbug: Event. Dev: input0, Type: 3, Code: 1, Value: 674 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T166] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 52 [ T166] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 1, Code: 330, Value: 0 [ C0] evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0 [ T166] evbug: Event. Dev: input2, Type: 3, Code: 0, Value: 53 [ T166] evbug: Event. Dev: input2, Type: 3, Code: 1, Value: 54 [ T166] evbug: Event. Dev: input2, Type: 0, Code: 0, Value: 0
-
@exoy28
那或许不能这么操作了,你只要保证 evtest / getevent 输出的坐标和液晶显示一致,lvgl7 触摸问题不大,实在不行就在读 event 设备那地方加点调试代码。 -
D1S的电阻触摸现在还没有帖子说解决了,我今天试了menuconfig里面选上tslib都会编译失败,先驱们知道咋回事么
-
@whycan 将ts.conf中除了module linear之外的代码全部注释,勉强可以触控,但是灵敏度很差
有什么提高性能的办法吗? -
@yelong98 你用的什么环境?我用ubuntu14.04虚拟机按照官方教程配置,基本没出过编译问题。
-
-
@whycan 滑动还是其次,按压延迟很严重,接触屏幕后要半秒左右才有响应。
请问大佬哪里可以调节电阻屏的采样频率?我调低了lv_conf.h里面的LV_INDEV_DEF_READ_PERIOD,但是效果不明显。 -
@exoy28 20.04,14.04都没源了,我没有用虚拟机,装的真系统。昨晚发现make -j1没问题,make -j8就完蛋,搞不懂
-
@yelong98 我一直都用的make -j16,基本上没有报过错
-
@exoy28 老哥触摸延迟的问题你解决了么,可否提点一下。
我弄 RTP 电阻触摸也遇到同样的问题,ts_test 测试点击触摸屏接近 1s 才有反应,点的快了 ts_test 没有任何输出,感觉也像是触摸的采用频率低了或过滤参数高了 -
你好,这边这个tslib怎么编译的,可否告知一下。谢谢
-
-
@exoy28 if (of_device_is_compatible(np, "allwinner,sun8i-ts"))
writel(ADC_FIRST_DLY(0xf) | ADC_FIRST_DLY_MODE(1)
| ADC_CLK_DIV(2) | FS_DIV(6) | T_ACQ(63),
ts->base + TP_CTRL0);触摸屏驱动改一下寄存器的参数
-
@adaoz if (of_device_is_compatible(np, "allwinner,sun8i-ts"))
writel(ADC_FIRST_DLY(0xf) | ADC_FIRST_DLY_MODE(1)
| ADC_CLK_DIV(2) | FS_DIV(6) | T_ACQ(63),
ts->base + TP_CTRL0);
改一下触摸屏驱动的时钟初始化寄存器参数 -
请问,800480这个屏,用原始代码,我的是上下反,您这里出现过上下反吗?是怎样修改的?谢谢
-
大佬 有相关的文档推荐吗?我没有找到RTP相关的文档,只打开了设备树中的RTP,后面就不知道应该怎么调整了,还望指点一二,谢谢
-
-
-
-
-
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号