硬件: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:
480x272@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显示不完整,触摸也不起作用!
