This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM625: Weston GUI touch issue

Part Number: AM625

Tool/software:

Hello TI, 

We have a display pannel,  480 * 800 , connect to our custom board.

We are able to see GUI by using command # weston &

However, when we try to touch (our touch IC is goodix gt911), it does not resposne properly when touch  but when  we touch by "scroll" the screen with figure, it works.

Do we need to configure in order to touch the weston GUI? and how?

Below is log when start running weston. Thanks.

oot@am62xx-evm:~# weston-calibrator
failed to connect to Wayland display: No such file or directory
failed to create display: No such file or directory
root@am62xx-evm:~# we[  248.783901] kauditd_printk_skb: 1 callbacks suppressed
[  248.783921] audit: type=1701 audit(1730385916.560:13): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=259 comm="ti-apps-launche" exe="/usr/bin/ti-apps-launcher" sig=11 res=1
s[  248.932061] audit: type=1334 audit(1730385916.708:14): prog-id=13 op=LOAD
[  248.939072] audit: type=1334 audit(1730385916.712:15): prog-id=14 op=LOAD
ton &
[1] 809
root@am62xx-evm:~# [  251.088409] audit: type=1334 audit(1730385918.864:16): prog-id=14 op=UNLOAD
[  251.095823] audit: type=1334 audit(1730385918.864:17): prog-id=13 op=UNLOAD
Date: 2024-10-31 UTC
[14:45:19.412] weston 10.0.2
               https://wayland.freedesktop.org
               Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
               Build: 10.0.2
[14:45:19.413] Command line: weston
[14:45:19.413] OS: Linux, 6.1.33-g40c32565ca, #1 SMP PREEMPT Thu Jul  6 14:17:24 UTC 2023, aarch64
[14:45:19.413] Flight recorder: enabled
[14:45:19.525] Using config file '/etc/xdg/weston/weston.ini'
[14:45:19.526] Output repaint window is 7 ms maximum.
[14:45:19.684] Loading module '/usr/lib/libweston-10/drm-backend.so'
[14:45:19.829] initializing drm backend
[14:45:19.829] Trying logind launcher...
[14:45:19.831] logind: failed to get session seat
[14:45:19.831] logind: cannot setup systemd-logind helper error: (No data available), using legacy fallback
[14:45:19.831] Trying weston_launch launcher...
[14:45:19.832] could not get launcher fd from env
[14:45:19.832] Trying direct launcher...
[14:45:19.845] using /dev/dri/card0
[14:45:19.846] DRM: supports atomic modesetting
[14:45:19.846] DRM: supports GBM modifiers
[14:45:19.846] DRM: supports picture aspect ratio
[14:45:19.904] Loading module '/usr/lib/libweston-10/gl-renderer.so'
[  255.003973] PVR_K:  809: RGX Firmware image 'rgx.fw.33.15.11.3' loaded
[  255.093415] PVR_K:  809: Shader binary image 'rgx.sh.33.15.11.3' loaded
[14:45:22.956] 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_device EGL_EXT_platform_wayland
               EGL_KHR_platform_wayland EGL_EXT_platform_x11
               EGL_KHR_platform_x11 EGL_EXT_platform_xcb EGL_MESA_platform_gbm
               EGL_KHR_platform_gbm EGL_MESA_platform_surfaceless
[14:45:22.969] EGL device extensions: EGL_EXT_device_drm
[14:45:22.969] EGL version: 1.5
[14:45:22.969] EGL vendor: Mesa Project
[14:45:22.970] EGL client APIs: OpenGL_ES
[14:45:22.970] EGL extensions: EGL_ANDROID_native_fence_sync EGL_EXT_buffer_age
               EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import
               EGL_EXT_image_dma_buf_import_modifiers
               EGL_EXT_image_gl_colorspace EGL_EXT_yuv_surface
               EGL_IMG_context_priority EGL_KHR_cl_event2
               EGL_KHR_config_attribs EGL_KHR_create_context
               EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses
               EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image
               EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_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_partial_update
               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_MESA_image_dma_buf_export EGL_MESA_query_driver
               EGL_WL_bind_wayland_display EGL_IMG_cl_image
[14:45:22.973] EGL_KHR_surfaceless_context available
[14:45:23.344] GL version: OpenGL ES 3.1 build 23.1@6404501
[14:45:23.344] GLSL version: OpenGL ES GLSL ES 3.10 build 23.1@6404501
[14:45:23.344] GL vendor: Imagination Technologies
[14:45:23.344] GL renderer: PowerVR A-Series AXE-1-16M
[14:45:23.344] GL extensions: GL_APPLE_texture_format_BGRA8888
               GL_EXT_blend_minmax GL_EXT_buffer_storage GL_EXT_clip_control
               GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float
               GL_EXT_compressed_ETC1_RGB8_sub_texture
               GL_EXT_conservative_depth GL_EXT_copy_image
               GL_EXT_discard_framebuffer GL_EXT_draw_buffers
               GL_EXT_draw_buffers_indexed GL_EXT_draw_elements_base_vertex
               GL_EXT_EGL_image_array GL_EXT_float_blend GL_EXT_gpu_shader5
               GL_EXT_memory_object GL_EXT_memory_object_fd
               GL_EXT_multi_draw_arrays GL_EXT_multisampled_render_to_texture
               GL_EXT_multisampled_render_to_texture2
               GL_EXT_occlusion_query_boolean GL_EXT_polygon_offset_clamp
               GL_EXT_read_format_bgra GL_EXT_robustness
               GL_EXT_separate_shader_objects GL_EXT_shader_framebuffer_fetch
               GL_EXT_shader_group_vote GL_EXT_shader_implicit_conversions
               GL_EXT_shader_io_blocks
               GL_EXT_shader_non_constant_global_initializers
               GL_EXT_shader_pixel_local_storage
               GL_EXT_shader_pixel_local_storage2 GL_EXT_shader_texture_lod
               GL_EXT_shadow_samplers GL_EXT_sparse_texture GL_EXT_sRGB
               GL_EXT_sRGB_write_control GL_EXT_texture_border_clamp
               GL_EXT_texture_buffer GL_EXT_texture_cube_map_array
               GL_EXT_texture_format_BGRA8888
               GL_EXT_texture_format_sRGB_override GL_EXT_texture_rg
               GL_EXT_texture_shadow_lod GL_EXT_texture_sRGB_decode
               GL_EXT_texture_sRGB_R8 GL_EXT_texture_sRGB_RG8
               GL_EXT_texture_type_2_10_10_10_REV GL_EXT_unpack_subimage
               GL_EXT_YUV_target GL_IMG_framebuffer_downsample
               GL_IMG_multisampled_render_to_texture GL_IMG_program_binary
               GL_IMG_read_format GL_IMG_shader_binary
               GL_IMG_texture_format_BGRA8888 GL_IMG_texture_npot
               GL_KHR_blend_equation_advanced
               GL_KHR_blend_equation_advanced_coherent GL_KHR_debug
               GL_KHR_robustness GL_OES_compressed_ETC1_RGB8_texture
               GL_OES_depth24 GL_OES_depth_texture
               GL_OES_depth_texture_cube_map GL_OES_draw_buffers_indexed
               GL_OES_draw_elements_base_vertex GL_OES_EGL_image
               GL_OES_EGL_image_external GL_OES_EGL_image_external_essl3
               GL_OES_EGL_sync GL_OES_element_index_uint
               GL_OES_fragment_precision_high GL_OES_get_program_binary
               GL_OES_gpu_shader5 GL_OES_mapbuffer GL_OES_packed_depth_stencil
               GL_OES_required_internalformat GL_OES_rgb8_rgba8
               GL_OES_sample_shading GL_OES_sample_variables
               GL_OES_shader_image_atomic GL_OES_shader_io_blocks
               GL_OES_shader_multisample_interpolation
               GL_OES_standard_derivatives GL_OES_surfaceless_context
               GL_OES_texture_3D GL_OES_texture_border_clamp
               GL_OES_texture_buffer GL_OES_texture_cube_map_array
               GL_OES_texture_float GL_OES_texture_half_float
               GL_OES_texture_npot GL_OES_texture_stencil8
               GL_OES_texture_storage_multisample_2d_array
               GL_OES_vertex_array_object GL_OES_vertex_half_float
[14:45:25.179] GL ES 3.1 - renderer features:
               read-back format: BGRA
               wl_shm sub-image to texture: yes
               EGL Wayland extension: yes
[14:45:25.184] couldn't fstat launcher tty: Bad file descriptor
[14:45:26.022] event1  - Instant USB Optical Mouse: is tagged by udev as: Mouse Touchscreen
[14:45:26.022] event1  - Instant USB Optical Mouse: device is a pointer
[14:45:26.023] event1  - Instant USB Optical Mouse: device is a touch device
[14:45:26.025] event0  - goodix-ts: is tagged by udev as: Touchscreen Tablet
[14:45:26.026] event0  - goodix-ts: device is a touch device
[14:45:26.026] Touchscreen - Instant USB Optical Mouse - /sys/devices/platform/bus@f0000/f910000.dwc3-usb/31100000.usb/xhci-hcd.3.auto/usb1/1-1/1-1:1.0/0003:30FA:0302.0001/input/input1/event1
[14:45:26.026] libinput: configuring device "Instant USB Optical Mouse".
[14:45:26.026] Touchscreen - goodix-ts - /sys/devices/virtual/input/input0/event0
[14:45:26.026] libinput: configuring device "goodix-ts".
[14:45:26.026] input device event0 has no enabled output associated (none named), skipping calibration for now.
[14:45:26.027] DRM: head 'DPI-1' updated, connector 40 is connected, EDID make 'unknown', model 'unknown', serial 'unknown'
[14:45:26.027] DRM: head 'DPI-1' found, connector 40 is connected, EDID make 'unknown', model 'unknown', serial 'unknown'
[14:45:26.028] Registered plugin API 'weston_drm_output_api_v1' of size 24
[14:45:26.028] Color manager: no-op
[14:45:26.028] Output 'DPI-1' using color profile: built-in default sRGB SDR profile
[14:45:26.028] Chosen EGL config details: id:   7 rgba: 8 8 8 0 buf: 24 dep:  0 stcl: 0 int: 1-1 type: win|pbf vis_id: XRGB8888 (0x34325258)
[14:45:26.028] Output DPI-1 (crtc 38) video modes:
               800x480@46.9, preferred, current, 26.0 MHz
[14:45:26.028] associating input device event1 with output DPI-1 (none by udev)
[14:45:26.028] associating input device event0 with output DPI-1 (none by udev)
[14:45:26.029] Output 'DPI-1' enabled with head(s) DPI-1
[14:45:26.029] Compositor capabilities:
               arbitrary surface rotation: yes
               screen capture uses y-flip: yes
               cursor planes: yes
               arbitrary resolutions: no
               view mask clipping: yes
               explicit sync: yes
               color operations: no
               presentation clock: CLOCK_MONOTONIC, id 1
               presentation clock resolution: 0.000000001 s
[14:45:26.047] Loading module '/usr/lib/weston/desktop-shell.so'
[14:45:26.141] launching '/usr/libexec/weston-keyboard'
[14:45:26.144] Note: support for the deprecated wl_shell interface is disabled. If a legacy client still needs it, it can be re-enabled by passing -Ddeprecated-wl-shell=true to Meson when building Weston.
[14:45:26.148] launching '/usr/libexec/weston-desktop-shell'
Touch screen detected...
Calibrating touchscreen...
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'
could not load cursor 'dnd-move'
could not load cursor 'dnd-copy'
could not load cursor 'dnd-none'
[  271.933811] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[  271.957519] Bridge firewalling registered
[  272.079459] audit: type=1325 audit(1730385939.780:18): table=nat family=2 entries=0 op=xt_register pid=832 comm="iptables"
[  272.092555] audit: type=1300 audit(1730385939.780:18): arch=c00000b7 syscall=209 success=yes exit=0 a0=4 a1=0 a2=40 a3=ffffe87e31a8 items=0 ppid=808 pid=832 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="iptables" exe="/usr/sbin/xtables-legacy-multi" key=(null)
[  272.122494] audit: type=1327 audit(1730385939.780:18): proctitle=2F7573722F7362696E2F69707461626C6573002D2D77616974002D74006E6174002D4C002D6E
[  272.146052] audit: type=1325 audit(1730385939.912:19): table=filter family=2 entries=0 op=xt_register pid=835 comm="iptables"
[  272.157485] audit: type=1300 audit(1730385939.912:19): arch=c00000b7 syscall=209 success=yes exit=0 a0=4 a1=0 a2=40 a3=ffffde5f6768 items=0 ppid=808 pid=835 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="iptables" exe="/usr/sbin/xtables-legacy-multi" key=(null)
[  272.185599] audit: type=1327 audit(1730385939.912:19): proctitle=2F7573722F7362696E2F69707461626C6573002D2D77616974002D4C002D6E
[  272.279651] audit: type=1325 audit(1730385940.052:20): table=nat family=2 entries=5 op=xt_replace pid=856 comm="iptables"
[  272.290774] audit: type=1300 audit(1730385940.052:20): arch=c00000b7 syscall=208 success=yes exit=0 a0=4 a1=0 a2=40 a3=1ed40a60 items=0 ppid=808 pid=856 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="iptables" exe="/usr/sbin/xtables-legacy-multi" key=(null)
[  272.318633] audit: type=1327 audit(1730385940.052:20): proctitle=2F7573722F7362696E2F69707461626C6573002D2D77616974002D74006E6174002D4E00444F434B4552
[  272.332126] audit: type=1325 audit(1730385940.056:21): table=filter family=2 entries=4 op=xt_replace pid=858 comm="iptables"
Calibration values: 1.803059 -2.618728 141.754822 -2.923531 -1.468205 1735.869141
[14:45:41.480] event0  - goodix-ts: client bug: event processing lagging behind by 27ms, your system is too slow
could not load cursor 'dnd-move'
could not load cursor 'dnd-copy'
could not load cursor 'dnd-none'
[14:46:19.110] event0  - goodix-ts: client bug: event processing lagging behind by 11ms, your system is too slow
[14:46:21.313] event0  - goodix-ts: client bug: event processing lagging behind by 41ms, your system is too slow
[14:46:25.407] event0  - goodix-ts: client bug: event processing lagging behind by 40ms, your system is too slow
[14:46:27.938] event0  - goodix-ts: client bug: event processing lagging behind by 12ms, your system is too slow
[14:46:27.939] event0  - goodix-ts: WARNING: log rate limit exceeded (5 msgs per 60min). Discarding future messages.

  • weston.ini 

    root@am62xx-evm:~# cat  /etc/xdg/weston/weston.ini
    # configuration file for Weston
    
    [core]
    idle-time=0
    #modules=xwayland.so,cms-colord.so
    #shell=desktop-shell.so
    #gbm-format=xrgb2101010
    require-input=false
    
    [shell]
    locking=false
    animation=zoom
    panel-position=top
    startup-animation=fade
    #background-image=/usr/share/backgrounds/gnome/Aqua.jpg
    #background-color=0xff002244
    #background-type=tile
    #clock-format=minutes
    #panel-color=0x90ff0000
    #locking=true
    #animation=zoom
    #startup-animation=fade
    #binding-modifier=ctrl
    #num-workspaces=6
    #cursor-theme=whiteglass
    #cursor-size=24
    
    #lockscreen-icon=/usr/share/icons/gnome/256x256/actions/lock.png
    #lockscreen=/usr/share/backgrounds/gnome/Garden.jpg
    #homescreen=/usr/share/backgrounds/gnome/Blinds.jpg
    #animation=fade
    
    #[launcher]
    #icon=/usr/share/icons/gnome/24x24/apps/utilities-terminal.png
    #path=/usr/bin/gnome-terminal
    
    #[launcher]
    #icon=/usr/share/icons/gnome/24x24/apps/utilities-terminal.png
    #path=/usr/bin/weston-terminal
    
    #[launcher]
    #icon=/usr/share/icons/hicolor/24x24/apps/google-chrome.png
    #path=/usr/bin/google-chrome
    
    #[launcher]
    #icon=/usr/share/icons/gnome/24x24/apps/arts.png
    #path=/build/weston-0lEgCh/weston-1.11.0/weston-flower
    
    #[input-method]
    #path=/usr/libexec/weston-keyboard
    
    #[output]
    #name=LVDS1
    #mode=1680x1050
    #transform=90
    #icc_profile=/usr/share/color/icc/colord/Bluish.icc
    
    #[output]
    #name=VGA1
    #mode=173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
    #transform=flipped
    
    [output]
    name=fddev
    mode=800x480@60
    #transform=flipped-90
    
    [libinput]
    touchscreen_calibrator=true
    enable_tap=true
    calibration-helper=true
    touch-screen=goodix-ts
    
    
    #[touchpad]
    #constant_accel_factor = 50
    #min_accel_factor = 0.16
    #max_accel_factor = 1.0
    
    [screen-share]
    command=/usr/bin/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize
    
    #[xwayland]
    #path=/usr/bin/Xwayland
    
    [autolaunch]
    # launch the calibrator on startup if a touchscreen is detected
    path=/usr/bin/weston-launch-calibrator

  • we solved this issue, this ticket can be closed. thanks.

  • Hello Paul,

    Apologies for the delayed response. Glad to hear that you were able to resolve your issue! Feel free to create a new thread if another question pops up.

    Regards,

    Nick