TI中文支持网
TI专业的中文技术问题搜集分享网站

Beaglebone Black扩展4.3寸电阻触摸屏matrix-gui显示和触摸不正常

硬件:Beaglebone Black,自制LCD扩展板,4.3寸4线电阻触摸屏

软件:Processor SDK Linux 06_03_00_106

使用最新tisdk编译出的image、rootfs,设备树已添加4.3寸触摸屏支持,SD卡启动后,matrix显示界面不完整,触摸操作也不能用,按照官方文档重新校准后还是不能用,界面如下

Beaglebone Black终端里输入命令:cat /dev/input/event0 | hexdump -C 然后按下触摸屏也有数据,判断触摸驱动应该没问题。

通过 cat /var/log/weston.log 查看weston 日志如下:

Date: 2020-04-19 UTC
[02:11:01.743] weston 5.0.0
wayland.freedesktop.org
Bug reports to: gitlab.freedesktop.org/…/
Build: unknown (not built from git or tarball)
[02:11:01.743] Command line: weston –idle-time=0
[02:11:01.743] OS: Linux, 4.19.94-gbe5389fd85, #1 PREEMPT Sun Apr 19 03:43:09 UTC 2020, armv7l
[02:11:01.747] Using config file '/etc//weston.ini'
[02:11:01.760] Output repaint window is 7 ms maximum.
[02:11:01.763] Loading module '/usr/lib/libweston-5/drm-backend.so'
[02:11:01.782] initializing drm backend
[02:11:01.820] using /dev/dri/card0
[02:11:01.821] DRM: supports universal planes
[02:11:01.821] DRM: supports atomic modesetting
[02:11:01.821] DRM: supports picture aspect ratio
[02:11:01.837] Loading module '/usr/lib/libweston-5/gl-renderer.so'
[02:11:02.453] EGL client extensions: EGL_EXT_client_extensions
EGL_EXT_device_base EGL_EXT_device_enumeration
EGL_EXT_device_query EGL_EXT_platform_base
EGL_KHR_client_get_all_proc_addresses EGL_KHR_debug
EGL_EXT_platform_wayland EGL_MESA_platform_gbm
[02:11:02.464] Unable to use first choice EGL config with id 0x34325258, succeeded with alternate id 0x34325241.
[02:11:02.464] warning: neither EGL_EXT_swap_buffers_with_damage or EGL_KHR_swap_buffers_with_damage is supported. Performance could be affected.
[02:11:02.464] warning: Disabling render GPU timeline due to missing EGL_ANDROID_native_fence_sync extension
[02:11:02.464] EGL_KHR_surfaceless_context available
[02:11:02.505] EGL version: 1.5
[02:11:02.505] EGL vendor: Mesa Project
[02:11:02.505] EGL client APIs: OpenGL_ES
[02:11:02.505] EGL extensions: EGL_EXT_buffer_age
EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import
EGL_IMG_cl_image EGL_KHR_config_attribs EGL_KHR_create_context
EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses
EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image
EGL_KHR_gl_texture_cubemap_image EGL_KHR_image
EGL_KHR_image_base EGL_KHR_image_pixmap
EGL_KHR_no_config_context EGL_KHR_reusable_sync
EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float
EGL_KHR_wait_sync EGL_MESA_configless_context
EGL_MESA_drm_image EGL_WL_bind_wayland_display
[02:11:02.505] GL version: OpenGL ES 2.0 build 1.17@4948957
[02:11:02.505] GLSL version: OpenGL ES GLSL ES 1.00 build 1.17@4948957
[02:11:02.505] GL vendor: Imagination Technologies
[02:11:02.505] GL renderer: PowerVR SGX 530
[02:11:02.505] GL extensions: GL_OES_compressed_ETC1_RGB8_texture
GL_OES_depth24 GL_OES_depth_texture GL_OES_egl_sync
GL_OES_element_index_uint GL_OES_EGL_image
GL_OES_EGL_image_external GL_OES_fbo_render_mipmap
GL_OES_fragment_precision_high GL_OES_get_program_binary
GL_OES_mapbuffer GL_OES_packed_depth_stencil
GL_OES_required_internalformat GL_OES_rgb8_rgba8
GL_OES_standard_derivatives GL_OES_surfaceless_context
GL_OES_texture_float GL_OES_texture_half_float
GL_OES_vertex_array_object GL_OES_vertex_half_float
GL_EXT_blend_minmax GL_EXT_discard_framebuffer
GL_EXT_multi_draw_arrays GL_EXT_multisampled_render_to_texture
GL_EXT_shader_texture_lod GL_EXT_texture_format_BGRA8888
GL_EXT_texture_rg GL_IMG_multisampled_render_to_texture
GL_IMG_program_binary GL_IMG_read_format GL_IMG_shader_binary
GL_IMG_texture_compression_pvrtc GL_IMG_texture_format_BGRA8888
GL_IMG_texture_npot GL_IMG_uniform_buffer_object GL_KHR_debug
GL_EXT_texture_storage
[02:11:02.506] GL ES 2 renderer features:
read-back format: RGBA
wl_shm sub-image to texture: no
EGL Wayland extension: yes
[02:11:02.514] event0 – ti-tsc: is tagged by udev as: Touchscreen
[02:11:02.514] event0 – ti-tsc: device is a touch device
[02:11:02.515] Touchscreen – ti-tsc – /sys/devices/platform/ocp/44e0d000.tscadc/TI-am335x-tsc.0.auto/input/input0/event0
[02:11:02.515] input device event0 has no enabled output associated (none named), skipping calibration for now.
[02:11:02.518] DRM: head 'LVDS-1' found, connector 31 is connected, EDID make 'unknown', model 'unknown', serial 'unknown'
[02:11:02.518] Registered plugin API 'weston_drm_output_api_v1' of size 12
[02:11:02.519] Unable to use first choice EGL config with id 0x34325258, succeeded with alternate id 0x34325241.
[02:11:02.519] Chosen EGL config details:
RGBA bits: 8 8 8 8
swap interval range: 1 – 1
[02:11:02.519] No backlight control for output 'LVDS-1'
[02:11:02.519] Output LVDS-1 (crtc 29) video modes:
480×272@59.9, preferred, current, 9.0 MHz
[02:11:02.519] associating input device event0 with output LVDS-1 (none by udev)
[02:11:02.521] Warning: input device event0 has WL_CALIBRATION property set. Support for it will be removed in the future. Please use LIBINPUT_CALIBRATION_MATRIX instead.
[02:11:02.521] input device event0: applying calibration:
1.093177 0.031752 -0.062550
-0.005434 1.128473 -0.069518
raw translation -30.023804 -18.908844 for output LVDS-1
[02:11:02.523] Output 'LVDS-1' enabled with head(s) LVDS-1
[02:11:02.523] Compositor capabilities:
arbitrary surface rotation: yes
screen capture uses y-flip: yes
presentation clock: CLOCK_MONOTONIC, id 1
presentation clock resolution: 0.000000001 s
[02:11:02.541] Loading module '/usr/lib/weston/desktop-shell.so'
[02:11:02.591] launching '/usr/libexec/weston-keyboard'
[02:11:02.596] launching '/usr/libexec/weston-desktop-shell'
could not load cursor 'dnd-move'
could not load cursor 'dnd-copy'
could not load cursor 'dnd-none'
could not load cursor 'dnd-move'
could not load cursor 'dnd-copy'
could not load cursor 'dnd-none'
[02:11:14.436] notify_touch: weston_compositor_pick_view(159, 273) failed to find a view!

请教这是什么问题,matrix显示不完整,触摸也不起作用!

Shine:

请问是按照下面的网站校准的吗?
software-dl.ti.com/…/How_to_Recalibrate_the_Touchscreen.html

另外,请参考下面的e2e帖子。
e2e.ti.com/…/linux-am3359-lcd-doesn-t-show-qt-and-matrix-gui-application-and-weston-error-occur

,

user3918678:

是参照这个校准的BBB板终端执行 rm /etc/udev/rules.d/ws-calibrate.rules;reboot 后重启进入校准界面,校准完成后,触摸还是没反应。

另外教程中触摸屏校准一节提到的命令 rm /run/media/mmcblk0p1/ws-calibrate.rules 这个文件不存在

我先看下第二个帖子内容,看看能不能解决问题。

,

user3918678:

这是dts中触摸配置信息
&tscadc {status = "okay";tsc {ti,wires = <4>;ti,x-plate-resistance = <200>;ti,coordinate-readouts = <5>;ti,wire-config = <0x00 0x11 0x22 0x33>;ti,charge-delay = <0x400>;};
adc {ti,adc-channels = <0 1 2 3>;};
};

,

user3918678:

通过修改dts中display-timings参数,屏幕显示正常了,但是进入Matrix App Launcher v2 p1这个主界面,触摸还是没有反应。
通过evtest 测试触摸屏输出如下:
Input driver version is 1.0.1
Input device ID: bus 0x0 vendor 0x0 product 0x0 version 0x0
Input device name: "ti-tsc"
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)Value666Min0Max4095Event code 1 (ABS_Y)Value2789Min0Max4095Event code 24 (ABS_PRESSURE)Value0Min0Max4095
Properties:
Testing … (interrupt to exit)
Event: time 1587262524.364647, type 3 (EV_ABS), code 0 (ABS_X), value 822
Event: time 1587262524.364647, type 3 (EV_ABS), code 1 (ABS_Y), value 1572
Event: time 1587262524.364647, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 238
Event: time 1587262524.364647, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 1587262524.364647, ————– SYN_REPORT ————
Event: time 1587262524.366425, type 3 (EV_ABS), code 0 (ABS_X), value 785
Event: time 1587262524.366425, type 3 (EV_ABS), code 1 (ABS_Y), value 1573
Event: time 1587262524.366425, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 241
Event: time 1587262524.366425, ————– SYN_REPORT ————
Event: time 1587262524.368883, type 3 (EV_ABS), code 0 (ABS_X), value 830
Event: time 1587262524.368883, type 3 (EV_ABS), code 1 (ABS_Y), value 1570
Event: time 1587262524.368883, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 239
Event: time 1587262524.368883, ————– SYN_REPORT ————
Event: time 1587262524.370581, type 3 (EV_ABS), code 0 (ABS_X), value 821
Event: time 1587262524.370581, type 3 (EV_ABS), code 1 (ABS_Y), value 1573
Event: time 1587262524.370581, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 241
Event: time 1587262524.370581, ————– SYN_REPORT ————
Event: time 1587262524.372924, type 3 (EV_ABS), code 0 (ABS_X), value 824
Event: time 1587262524.372924, type 3 (EV_ABS), code 1 (ABS_Y), value 1566
Event: time 1587262524.372924, ————– SYN_REPORT ————
Event: time 1587262524.374658, type 3 (EV_ABS), code 0 (ABS_X), value 832
Event: time 1587262524.374658, type 3 (EV_ABS), code 1 (ABS_Y), value 1574
Event: time 1587262524.374658, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 242
Event: time 1587262524.374658, ————– SYN_REPORT ————
Event: time 1587262524.376921, type 3 (EV_ABS), code 0 (ABS_X), value 788
Event: time 1587262524.376921, type 3 (EV_ABS), code 1 (ABS_Y), value 1573
Event: time 1587262524.376921, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 245
Event: time 1587262524.376921, ————– SYN_REPORT ————
Event: time 1587262524.378615, type 3 (EV_ABS), code 0 (ABS_X), value 825
Event: time 1587262524.378615, type 3 (EV_ABS), code 1 (ABS_Y), value 1580
Event: time 1587262524.378615, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 244
Event: time 1587262524.378615, ————– SYN_REPORT ————
Event: time 1587262524.380552, type 3 (EV_ABS), code 0 (ABS_X), value 802
Event: time 1587262524.380552, type 3 (EV_ABS), code 1 (ABS_Y), value 1574
Event: time 1587262524.380552, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 245
Event: time 1587262524.380552, ————– SYN_REPORT ————
Event: time 1587262524.382483, type 3 (EV_ABS), code 0 (ABS_X), value 829
Event: time 1587262524.382483, type 3 (EV_ABS), code 1 (ABS_Y), value 1576
Event: time 1587262524.382483, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 243
Event: time 1587262524.382483, ————– SYN_REPORT ————
Event: time 1587262524.384413, type 3 (EV_ABS), code 0 (ABS_X), value 786
Event: time 1587262524.384413, type 3 (EV_ABS), code 1 (ABS_Y), value 1575
Event: time 1587262524.384413, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 246
Event: time 1587262524.384413, ————– SYN_REPORT ————
Event: time 1587262524.386950, type 3 (EV_ABS), code 0 (ABS_X), value 820
Event: time 1587262524.386950, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 242
Event: time 1587262524.386950, ————– SYN_REPORT ————
Event: time 1587262524.389281, type 3 (EV_ABS), code 0 (ABS_X), value 783
Event: time 1587262524.389281, type 3 (EV_ABS), code 1 (ABS_Y), value 1565
Event: time 1587262524.389281, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 244
Event: time 1587262524.389281, ————– SYN_REPORT ————
Event: time 1587262524.390976, type 3 (EV_ABS), code 0 (ABS_X), value 810
Event: time 1587262524.390976, type 3 (EV_ABS), code 1 (ABS_Y), value 1570
Event: time 1587262524.390976, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 241
Event: time 1587262524.390976, ————– SYN_REPORT ————
Event: time 1587262524.392902, type 3 (EV_ABS), code 0 (ABS_X), value 777
Event: time 1587262524.392902, type 3 (EV_ABS), code 1 (ABS_Y), value 1574
Event: time 1587262524.392902, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 243
Event: time 1587262524.392902, ————– SYN_REPORT ————
Event: time 1587262524.403211, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
Event: time 1587262524.403211, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 0
Event: time 1587262524.403211, ————– SYN_REPORT ————

,

Shine:

建议您到e2e论坛咨询,有专门的产品线工程师解答。
e2e.ti.com/…/processors-forum

赞(0)
未经允许不得转载:TI中文支持网 » Beaglebone Black扩展4.3寸电阻触摸屏matrix-gui显示和触摸不正常
分享到: 更多 (0)