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.

weston timeout, display screen still turns to black.

Hi,

TI support team.

https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-jacinto7/latest/exports/docs/linux/Foundational_Components/Graphics/Graphics_and_Display.html#wayland-weston

above cmds & modify the default etc/weston.ini file with <[core] idel-time=0>.

Both methods have been tried, but neither has succeeded in keeping the screen in display mode.  The screen will still go black after a period of time.

when go black, run cmd weston-flower failed.

Q: Is there any way to keep screensaver on the screen all the time? as below. Do NOT got to black.

Best Rgards

Murphy

  • Hi Murphy,

    To confirm, this is on the 08.01 Processor SDK Linux release? And could you try restarting Weston on boot up with /etc/init.d/weston restart?

    Regards,

    Takuma

  • Hi Takuma,

    Thanks for your quick reply. SDK version 07.03

    After the recommended command being used. Log as below. please help me to understand it.

    root@j7-evm:~# cat /etc/weston.ini
    [core]
    require-input=false
    idel-time=0
    
    [shell]
    locking=false
    animation=zoom
    panel-position=top
    background-image=/usr/share/demo/j7-evm-oob-wallpaper.jpg
    startup-animation=fade
    
    [screensaver]
    # Uncomment path to disable screensaver
    #path=@libexecdir@/weston-screensaver
    root@j7-evm:~#
    root@j7-evm:~#
    root@j7-evm:~# /etc/init.d/weston restart
    Stopping Weston
    ifconfig: SIOCSIFADDR: No such device
    /etc/profile.d/vehicle_app_self_start.sh: line 4: /usr/bin/connectivity_d: No such file or directory
    /etc/profile.d/vehicle_app_self_start.sh: line 5: /usr/bin/r5fapp: No such file or directory
    Starting Weston
    root@j7-evm:~#
    root@j7-evm:~#
    

    Best Regards

    Murphy.

  • By the way. Log as below.

    root@j7-evm:~#
    root@j7-evm:~#
    root@j7-evm:~#
    root@j7-evm:~#
    root@j7-evm:~# ps -ef | grep weston
    root 1473 1 0 00:05 tty2 00:00:00 weston-launch -- --log=/var/log/weston.log
    root 1624 1473 0 00:06 tty2 00:00:00 /usr/bin/weston --log=/var/log/weston.log
    root 1635 1624 0 00:06 tty2 00:00:00 /usr/libexec/weston-keyboard
    root 1636 1624 0 00:06 tty2 00:00:00 /usr/libexec/weston-desktop-shell
    root 1639 1620 0 00:06 ttyS2 00:00:00 grep weston
    root@j7-evm:~#
    root@j7-evm:~#
    root@j7-evm:~# weston --tty=1 --idle-time=0 &
    [1] 1641
    root@j7-evm:~# Date: 2021-04-10 UTC
    [00:06:51.366] weston 8.0.0
    wayland.freedesktop.org
    Bug reports to: gitlab.freedesktop.org/.../
    Build: 8.0.0
    [00:06:51.367] Command line: weston --tty=1 --idle-time=0
    [00:06:51.367] OS: Linux, 5.4.106+, #1 SMP PREEMPT Thu Mar 10 16:30:01 CST 2022, aarch64
    [00:06:51.368] Using config file '/etc//weston.ini'
    [00:06:51.368] Output repaint window is 7 ms maximum.
    [00:06:51.368] Loading module '/usr/lib/libweston-8/drm-backend.so'
    [00:06:51.370] initializing drm backend
    [00:06:51.371] logind: not running in a systemd session
    [00:06:51.371] logind: cannot setup systemd-logind helper (-61), using legacy fallback
    [00:06:51.373] using /dev/dri/card1
    [00:06:51.373] DRM: supports universal planes
    [00:06:51.373] DRM: supports atomic modesetting
    [00:06:51.373] DRM: supports picture aspect ratio
    [00:06:51.373] Loading module '/usr/lib/libweston-8/gl-renderer.so'
    [00:06:51.382] 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
    EGL_MESA_platform_surfaceless EGL_EXT_platform_device
    [00:06:51.384] EGL version: 1.4
    [00:06:51.384] EGL vendor: Mesa Project
    [00:06:51.384] EGL client APIs: OpenGL_ES
    [00:06:51.384] 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_IMG_context_priority
    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_WL_bind_wayland_display
    EGL_IMG_cl_image
    [00:06:51.384] EGL_KHR_surfaceless_context available
    [00:06:51.389] GL version: OpenGL ES 3.2 build 1.13@5776728
    [00:06:51.389] GLSL version: OpenGL ES GLSL ES 3.20 build 1.13@5776728
    [00:06:51.389] GL vendor: Imagination Technologies
    [00:06:51.389] GL renderer: PowerVR Rogue GE8430
    [00:06:51.389] GL extensions: GL_ANDROID_extension_pack_es31a
    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_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_geometry_point_size GL_EXT_geometry_shader
    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_primitive_bounding_box GL_EXT_pvrtc_sRGB
    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_write_control GL_EXT_tessellation_point_size
    GL_EXT_tessellation_shader GL_EXT_texture_border_clamp
    GL_EXT_texture_buffer GL_EXT_texture_cube_map_array
    GL_EXT_texture_filter_anisotropic
    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_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_compression_pvrtc
    GL_IMG_texture_compression_pvrtc2 GL_IMG_texture_filter_cubic
    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_KHR_texture_compression_astc_ldr
    GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24
    GL_OES_depth_texture 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_geometry_point_size
    GL_OES_geometry_shader 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_tessellation_point_size GL_OES_tessellation_shader
    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
    [00:06:51.389] GL ES 2 renderer features:
    read-back format: BGRA
    wl_shm sub-image to texture: yes
    EGL Wayland extension: yes
    [00:06:51.398] event0 - ecarx-tp-CSD: is tagged by udev as: Touchscreen
    [00:06:51.399] event0 - ecarx-tp-CSD: device is a touch device
    [00:06:51.399] Touchscreen - ecarx-tp-CSD - /sys/devices/virtual/input/input0/event0
    [00:06:51.399] libinput: configuring device "ecarx-tp-CSD".
    [00:06:51.399] input device event0 has no enabled output associated (none named), skipping calibration for now.
    [ 87.814845] cdns-mhdp a000000.dp-bridge: [drm:cdns_mhdp_detect [cdns_mhdp]] *ERROR* get hpd status failed: -110
    [ 87.824930] cdns-mhdp a000000.dp-bridge: Failed to obtain HPD state
    [00:06:56.416] DRM: head 'DP-1' found, connector 39 is disconnected.
    [00:06:56.416] Registered plugin API 'weston_drm_output_api_v1' of size 24
    [00:06:56.416] Compositor capabilities:
    arbitrary surface rotation: yes
    screen capture uses y-flip: yes
    presentation clock: CLOCK_MONOTONIC, id 1
    presentation clock resolution: 0.000000001 s
    [00:06:56.417] Loading module '/usr/lib/weston/desktop-shell.so'
    [00:06:56.417] launching '/usr/libexec/weston-keyboard'
    [00:06:56.419] launching '/usr/libexec/weston-desktop-shell'
    could not load cursor 'dnd-move'
    could not load cursor 'dnd-move'
    could not load cursor 'dnd-copy'
    could not load cursor 'dnd-copy'
    could not load cursor 'dnd-none'
    could not load cursor 'dnd-none'

    root@j7-evm:~#
    root@j7-evm:~#
    root@j7-evm:~# ps -ef | grep weston
    root 1473 1 0 00:05 tty2 00:00:00 weston-launch -- --log=/var/log/weston.log
    root 1624 1473 0 00:06 tty2 00:00:00 /usr/bin/weston --log=/var/log/weston.log
    root 1635 1624 0 00:06 tty2 00:00:00 /usr/libexec/weston-keyboard
    root 1636 1624 0 00:06 tty2 00:00:00 /usr/libexec/weston-desktop-shell
    root 1641 1620 0 00:06 ttyS2 00:00:00 weston --tty=1 --idle-time=0
    root 1642 1641 0 00:06 ttyS2 00:00:00 /usr/libexec/weston-keyboard
    root 1643 1641 0 00:06 ttyS2 00:00:00 /usr/libexec/weston-desktop-shell
    root 1645 1620 0 00:07 ttyS2 00:00:00 grep weston
    root@j7-evm:~#
    root@j7-evm:~#
    root@j7-evm:~# cat /etc/weston.ini
    [core]
    require-input=false
    idle-time=0

    [shell]
    locking=false
    animation=zoom
    panel-position=top
    background-image=/usr/share/demo/j7-evm-oob-wallpaper.jpg
    startup-animation=fade

    [screensaver]
    # Uncomment path to disable screensaver
    #path=@libexecdir@/weston-screensaver
    root@j7-evm:~#
    root@j7-evm:~#
    root@j7-evm:~# /etc/init.d/weston
    usage: /etc/init.d/weston { start | stop | restart }
    root@j7-evm:~#
    root@j7-evm:~# /etc/init.d/weston restart
    Stopping Weston
    [00:07:37.297] caught signal 15
    [00:07:37.297] event0 - ecarx-tp-CSD: device removed
    ifconfig: SIOCSIFADDR: No such device
    /etc/profile.d/vehicle_app_self_start.sh: line 4: /usr/bin/connectivity_d: No such file or directory
    /etc/profile.d/vehicle_app_self_start.sh: line 5: /usr/bin/r5fapp: No such file or directory
    Starting Weston
    [1]+ Done weston --tty=1 --idle-time=0
    root@j7-evm:~#
    root@j7-evm:~#
    root@j7-evm:~# ps -ef | grep weston
    root 1721 1620 0 00:07 ttyS2 00:00:00 grep weston
    root@j7-evm:~#
    root@j7-evm:~#
    root@j7-evm:~#
    root@j7-evm:~#
    root@j7-evm:~#

  • Hi Murphy,

    There is a typo in weston.ini. Could you try changing "idel-time=0" to "idle-time=0"? 

    For SDK 7.03 version, please ignore my first comment for restarting weston. There is an issue with weston on 8.01 SDK version which can be temporarily worked around by restarting weston.

    Regards,

    Takuma

  • Hi Takuma,

    Thanks for your reply.

    We have tried to modify wenton.ini use "idle-time=0", and also tred to run weston on cammandline with "weston --tty=1 --idle-time=0 &".The display will still be black within two minutes after power on.

    After the display goes black, I try to stop weston, than run "kmstest" it also doesn't show up and the program hangs which use "Ctrl-C" cannot kill.

    Log as bllow:

    root@j7-evm:~# /etc/init.d/weston stop
    Stopping Weston
    root@j7-evm:~# kmstest
    Connector 0/@39: DP-1
      Crtc 0/@37: 1920x1080 148.500 1920/88/44/148/- 1080/4/5/36/- 60 (60.00) 0xa 0x40
      Plane 0/@31: 0,0-1920x1080
        Fb 60 1920x1080-XR24
    ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the following GPLv3 packages:
        autoconf
        bash-dev
        bash
        bc
        binutils
        cifs-utils
        coreutils-stdbuf
        coreutils
        cpio
        cpp-symlinks
        cpp
        dosfstools
        elfutils
        g++-symlinks
        g++
        gawk
        gcc-symlinks
        gcc
        gdb
        gdbserver
        gettext
        glmark2
        gstreamer1.0-libav
        gzip
        less
        libasm1
        libbfd
        libdw1
        libelf1
        libgdbm-compat4
        libgdbm-dev
        libgdbm6
        libgettextlib
        libgettextsrc
        libgmp10
        libidn2-0
        libmpc3
        libmpfr6
        libreadline-dev
        libreadline8
        libunistring2
        m4-dev
        m4
        make
        nettle
        parted
        tar
        which

    If you do not wish to distribute GPLv3 components please remove
    the above packages prior to distribution.  This can be done using
    the opkg remove command.  i.e.:
        opkg remove <package>
    Where <package> is the name printed in the list above

    NOTE: If the package is a dependency of another package you
          will be notified of the dependent packages.  You should
          use the --force-removal-of-dependent-packages option to
          also remove the dependent packages as well
    ***************************************************************
    ***************************************************************

    ^C^C^C
    ^C

    Best Regards.

    Sans

  • Hi Sans,

    kmstest not running is strange... I have not had any luck in reproducing the issue so far on my set up. To confirm, there are no changes other than weston.ini correct?

    Are you able to reproduce the error using a different monitor?

    Regards,

    Takuma

  • Hi Takuma,

    Thanks for your reply.

    This issue has been solved now. The reason is that we did not disable the DSS configuration on R5 at the same time when we modified the DTS.

    After we remove all DSS specific macros from app_cfg_mcu2_0.h file, which like ENABLE_DSS_SINGLE, ENABLE_DSS_DUAL, ENABLE_DSS_EDP, ENABLE_DSS_HDMI, ENABLE_DSS_DSI, then the weston is work normally.

    I have one more question. I saw the forum before the suggestion is to put DSS in R core control, what is the negative impact of such a modification on RTOS and OPENVX?

    Best Regards.
    Sans

  • Hi Sans,

    Yes, once we disable DSS on R5F, we cannot use OpenVX DSS node.. 

    Regards,

    Brijesh