t113-s3运行的是100ask的tina2.0 sdk,在设备树里面已经开启了rtp。在开发板进入系统之后,使用getevent获取信息为:
root@TinaLinux:/# getevent
add device 1: /dev/input/event2
name: "sunxi-gpadc0"
add device 2: /dev/input/event1
name: "audiocodec sunxi Audio Jack"
add device 3: /dev/input/event0
name: "sunxi-ts"
得到触摸屏对应的是/dev/input/event0,但是我使用hexdump /dev/input/event0时,报错:
root@TinaLinux:/# hexdump /dev/input/event0
hexdump: /dev/input/event0: Invalid argument
,而且使用ts_calibrate校准时,四个点位输出的坐标值基本上都是一致的,也是存在问题:
root@TinaLinux:/# ts_calibrate
xres = 800, yres = 480
Took 4 samples...
Top left : X = 28 Y = 3733
Took 4 samples...
Top right : X = 28 Y = 3734
Took 1 samples...
Bot right : X = 28 Y = 3733
Took 2 samples...
Bot left : X = 28 Y = 3733
Took 3 samples...
Center : X = 28 Y = 3735
400.000000 21.875000 0.000000
240.000000 13.125000 0.000000
Calibration constants: 26214400 1433600 0 15728640 860160 0 65536
,有大佬知道问题出在什么地方吗?
离线