@逍暗博
evtest /dev/input/eventX
移植evtest后进行测试;
# ./evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: ns2009_ts
Select the device event number [0-0]: 0
Input driver version is 1.0.1
Input device ID: bus 0x18 vendor 0x0 product 0x0 version 0x0
Input device name: "ns2009_ts"
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 440
Min 0
Max 4095
Fuzz 32
Event code 1 (ABS_Y)
Value 587
Min 0
Max 4095
Fuzz 16
Properties:
Testing ... (interrupt to exit)
Event: time 104.591754, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 104.591754, type 3 (EV_ABS), code 0 (ABS_X), value 2651
Event: time 104.591754, type 3 (EV_ABS), code 1 (ABS_Y), value 2335
Event: time 104.591754, -------------- SYN_REPORT ------------
Event: time 104.631803, type 3 (EV_ABS), code 1 (ABS_Y), value 2337
Event: time 104.631803, -------------- SYN_REPORT ------------
Event: time 104.671762, type 3 (EV_ABS), code 1 (ABS_Y), value 2339
Event: time 104.671762, -------------- SYN_REPORT ------------
Event: time 104.710662, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
Event: time 104.710662, -------------- SYN_REPORT ------------
[ 174.892715] input input0: Poll touch data failed: -22
错误22 EINVAL Invalid argument
所以提示是无效数值.;
配置对应的是/dev/input/event0 ; 点击会出现乱码的;
但是运行lvgl, ,触摸没反应 ,并且evdev_read函数的打印也没有出现, 说明函数都没有进入;
这个是我哪儿没有配置正确?
求助求助, 这个部分我使用tslib 1.4版本; 然后tslib移植成功, 并且ts_calibrate和ts_test 都可以测试通过;
但是运行lvgl后, 触摸就没有反应; 我尝试过没有在lvgl没有加入tslib的, 也尝试按照你的方式加入tslib后运行;
# ts_calibrate
xres = 800, yres = 480
Took 1 samples...
Top left : X = 400 Y = 672
Took 1 samples...
Top right : X = 3702 Y = 658
Took 2 samples...
Bot right : X = 3674 Y = 3478
Took 3 samples...
Bot left : X = 285 Y = 3479
Took 4 samples...
Center : X = 2067 Y = 2075
-34.692993 0.209173 0.005305
-40.521790 0.000298 0.135070
Calibration constants: -2273640 13708 347 -2655636 19 8851 65536
# ./lvgl_demo
The framebuffer device was opened successfully.
800x480, 32bpp
The framebuffer device was mapped to memory successfully.
[ 174.892715] input input0: Poll touch data failed: -22
[ 214.252723] input input0: Poll touch data failed: -22
[ 264.092710] input input0: Poll touch data failed: -22
楼主, 我无论是按照官方的流程还是 你的流程来编译;
我的设备树文件都生成不了 ; 也就是内核编译后, 没有.dtb文件;
root@ubuntu:/home/lqb/licheepi/linux# vim ./arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dts
root@ubuntu:/home/lqb/licheepi/linux#
root@ubuntu:/home/lqb/licheepi/linux#
root@ubuntu:/home/lqb/licheepi/linux# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- dtbs -j4
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK scripts/mod/devicetable-offsets.h
CHK include/generated/timeconst.h
CHK include/generated/bounds.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
root@ubuntu:/home/lqb/licheepi/linux#
root@ubuntu:/home/lqb/licheepi/linux#
root@ubuntu:/home/lqb/licheepi/linux# ls ./arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dts
./arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dts
root@ubuntu:/home/lqb/licheepi/linux# ls ./arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dtb
ls: cannot access './arch/arm/boot/dts/suniv-f1c100s-licheepi-nano.dtb': No such file or directory