Torizon getting started - Followed but still no idea

Hi, I am following getting started with Torizon and completed the results i got partial results.

After following Using Multiple Containers with TorizonCore
I am able to login to dashboard via Web browser of my host PC but i am not getting display on my touch screen.

I followed the below link.

Following the tutorials and bringing things up is easy but in the tutorials it is not stated where to modify for what.
Another important thing is that after following so much of tutorials for developing Torizon applications with Visual studio, The tutorials give a template and procedure to show something on my PC browser screen but Again when i look to start development of my application from scratch, I do not understand where to modify for GUI, where to modify application code.
My project explorer and all screenshots are added here. I deployed the container following the tutorials but i was not able to see anything on my screen and i am still not sure where to modify to achieve a feature.
While developing with Visual studio code, i faced some problems where the Torizon toolbars disabled automatically. I was not able to again move ahead. The screenshots are attached.link text

My motive is i want to develop an application which has GUI, Application code and other tasks for my application but the tutorials do not help in that.
I have wasted a lot of my time on following tutorials for torizon but at the end i do not know that if i take that application as template, where should i add a new button, new page etc. Where should i write my application code.
Can you tell me how to add first GUI container in my VS application and then transfer it to target and see on the target touch screen, What all are the possibilities for GUI.

Starting with the Visual Studio Extension issue, can you provide more details on the torizon toolbar freezing/becomes disabled? For example can you reproduce this issue with steps? Or is it just sporadic with no pattern?

As for the touch-calibration issue, as stated here in the documentation: Touch Screen Calibration (Torizon) | Toradex Developer Center

You need to first stop all running containers. This is cause the calibration container can possibly conflict with other graphical containers like portainer. So as a precaution we advise to stop all running containers prior to running.

As for your feedback on the documentation, I do understand your frustrations and we do realize that these tutorials are simply that, tutorials. We are still working on more comprehensive guides/articles, however these kinds of documentation take a lot of time. As such for the short term we opted for these shorter-form tutorial type documentations. There is a bit of assumed knowledge for these articles, so I agree with you that they are rather not suited well for newcomers.

Your feedback is however valuable for us to improve on this. I’ll be providing your feedback to our documentation team as a start. As for documentation feedback is there a certain type of documentation you’d like to see from us?

Visual Studio toolbar freezing happens randomly and I tried many ways to find what could be causing this error but I feel it is random.

For touch screen calibration, I followed the guide already and stopped all containers and my screen went black and for next step the calibration window does not come up. This is the problem.I tried many times.

After so many trials and wasting time with torizon and visual studio. I will keep it aside for some time and try it after completing my project and follow my usual approach by installing Embedded linux LXDE with RT patch and install and run my normal application on that. So I need from you a link for providing a stable LXDE Linux with RT patch and tutorials to install and get it running. I will further run my application on that.

Thanks

One special request from my side for tutorial would be that you provide

  1. A step by step procedure in Visual Studio with torizon RT about how to write a simple hello world program say in container 1.
  2. Create a GUI in Visual studio to be displayed on target say in container 2.
  3. Display the hello world message generated in container 1 to the GUI of container 2 when a button is pressed on GUI.

This will clear basic application development in Torizon using Visual studio.

It would also be useful if you additionally increment the above requested tutorial with how to develop program for Cortex M4 using RTOS and its communication with Torizon application from within Visual studio only.

The above examples will make it very clear to understand the development environment and understanding for new developers and start developing application which is actually expected by use of torizon.

I can assign my colleague to test these features and report to you about the feedback if you want. Or I can test it myself.

It will be helpful if it is shown in the explorer, in a clean and neat way the following points.

  1. where to add a new file and write Code to develop a container which is for my application code.
  2. Where and how to add a new file in Explorer for GUI container.
  3. How to deploy the various containers to target.
  4. Inter container communication.

Once this process the above things are clearly explained then anyone can proceed to develop an application from scratch either by using template or without a template.
The sample file which i downloaded from Github as follows
git clone GitHub - toradex/torizon-samples: All sample code related to TorizonCore project.
This has many kind of files which does not explain anything in detail and how to include those files in y project… Just blindly following the tutorials will not lead me to develop an application.
Please look into this.

While i am trying to calibrate touch screen for my display which is showing Portainer IO screen

My portiainer screen switches off and I get following message and calibration screen does not start afterwards.

login as: torizon
torizon@192.168.0.100's password:
Last login: Sun Jul 12 05:25:11 2020 from 192.168.0.101
colibri-imx7-06581424:~$ docker stop $(docker ps -q)
dfccbef41aec
colibri-imx7-06581424:~$ docker run -ti --rm --privileged -v /dev:/dev -v /run/udev/:/run/udev/ -v /etc/udev/rules.d:/etc/udev/rules.d torizon/arm32v7-debian-weston-touch-calibrator
Date: 2020-07-12 UTC
[05:39:33.360] weston 5.0.0
               https://wayland.freedesktop.org
               Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
               Build: unknown (not built from git or tarball)
[05:39:33.361] Command line: /usr/bin/weston
[05:39:33.362] OS: Linux, 5.4.43-rt25-4.0.0-devel+git.ed141ad4be96, #1-TorizonCore SMP PREEMPT_RT Wed Jul 1 15:32:52 UTC 2020, armv7l
[05:39:33.363] warning: XDG_RUNTIME_DIR "/tmp/weston-xdg" is not configured
correctly.  Unix access mode must be 0700 (current mode is 755),
and must be owned by the user (current owner is UID 0).
Refer to your distribution on how to get it, or
http://www.freedesktop.org/wiki/Specifications/basedir-spec
on how to implement it.
[05:39:33.367] Using config file '/etc/xdg/weston/weston.ini'
[05:39:33.368] Output repaint window is 7 ms maximum.
[05:39:33.370] Loading module '/usr/lib/arm-linux-gnueabihf/libweston-5/drm-backend.so'
[05:39:33.400] initializing drm backend
[05:39:33.402] logind: not running in a systemd session
[05:39:33.403] logind: cannot setup systemd-logind helper (-61), using legacy fallback
[05:39:33.412] using /dev/dri/card0
[05:39:33.413] DRM: supports universal planes
[05:39:33.413] DRM: supports atomic modesetting
[05:39:33.413] DRM: supports picture aspect ratio
[05:39:33.415] Loading module '/usr/lib/arm-linux-gnueabihf/libweston-5/gl-renderer.so'
gbm: failed to open any driver (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
gbm: Last dlopen error: /usr/lib/dri/mxsfb-drm_dri.so: cannot open shared object file: No such file or directory
failed to load driver: mxsfb-drm
[05:39:34.176] EGL 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_EXT_client_extensions EGL_KHR_debug
               EGL_EXT_platform_wayland EGL_EXT_platform_x11
               EGL_MESA_platform_gbm EGL_MESA_platform_surfaceless
[05:39:34.189] warning: neither EGL_EXT_swap_buffers_with_damage or EGL_KHR_swap_buffers_with_damage is supported. Performance could be affected.
[05:39:34.189] warning: Disabling render GPU timeline due to missing EGL_ANDROID_native_fence_sync extension
[05:39:34.189] EGL_KHR_surfaceless_context available
[05:39:34.302] EGL version: 1.4
[05:39:34.303] EGL vendor: Mesa Project
[05:39:34.303] EGL client APIs: OpenGL OpenGL_ES
[05:39:34.303] EGL extensions: EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import
               EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_create_context
               EGL_KHR_create_context_no_error 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_reusable_sync
               EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float
               EGL_KHR_wait_sync EGL_MESA_configless_context
               EGL_MESA_image_dma_buf_export
[05:39:34.305] GL version: OpenGL ES 3.0 Mesa 18.3.6
[05:39:34.305] GLSL version: OpenGL ES GLSL ES 3.00
[05:39:34.305] GL vendor: VMware, Inc.
[05:39:34.306] GL renderer: llvmpipe (LLVM 7.0, 128 bits)
[05:39:34.307] GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
               GL_EXT_texture_compression_s3tc GL_EXT_occlusion_query_boolean
               GL_EXT_texture_compression_dxt1 GL_EXT_texture_format_BGRA8888
               GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24
               GL_OES_element_index_uint GL_OES_fbo_render_mipmap
               GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_standard_derivatives
               GL_OES_stencil8 GL_OES_texture_3D GL_OES_texture_float
               GL_OES_texture_float_linear GL_OES_texture_half_float
               GL_OES_texture_half_float_linear GL_OES_texture_npot
               GL_OES_vertex_half_float GL_EXT_texture_sRGB_decode
               GL_OES_EGL_image GL_OES_depth_texture
               GL_OES_packed_depth_stencil GL_EXT_texture_type_2_10_10_10_REV
               GL_OES_get_program_binary GL_APPLE_texture_max_level
               GL_EXT_discard_framebuffer GL_EXT_read_format_bgra
               GL_EXT_frag_depth GL_NV_fbo_color_attachments
               GL_OES_EGL_image_external GL_OES_EGL_sync
               GL_OES_vertex_array_object GL_ANGLE_texture_compression_dxt3
               GL_ANGLE_texture_compression_dxt5 GL_EXT_texture_rg
               GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer
               GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil
               GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug
               GL_KHR_texture_compression_astc_ldr
               GL_OES_depth_texture_cube_map GL_OES_required_internalformat
               GL_OES_surfaceless_context GL_EXT_color_buffer_float
               GL_EXT_separate_shader_objects GL_EXT_shader_integer_mix
               GL_EXT_base_instance GL_EXT_compressed_ETC1_RGB8_sub_texture
               GL_EXT_copy_image GL_EXT_draw_buffers_indexed
               GL_EXT_draw_elements_base_vertex GL_EXT_polygon_offset_clamp
               GL_EXT_texture_border_clamp GL_KHR_context_flush_control
               GL_OES_copy_image GL_OES_draw_buffers_indexed
               GL_OES_draw_elements_base_vertex GL_OES_texture_border_clamp
               GL_OES_texture_stencil8 GL_EXT_blend_func_extended
               GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d
               GL_OES_EGL_image_external_essl3 GL_EXT_clip_cull_distance
               GL_EXT_disjoint_timer_query GL_MESA_shader_integer_functions
[05:39:34.315] GL ES 2 renderer features:
               read-back format: BGRA
               wl_shm sub-image to texture: yes
               EGL Wayland extension: no
[05:39:34.379] event1  - gpio-keys: is tagged by udev as: Keyboard
[05:39:34.379] event1  - gpio-keys: device is a keyboard
[05:39:34.397] event0  - AD7879 Touchscreen: is tagged by udev as: Touchscreen
[05:39:34.402] event0  - AD7879 Touchscreen: device is a touch device
[05:39:34.421] event2  - PixArt Dell MS116 USB Optical Mouse: is tagged by udev as: Mouse
[05:39:34.422] event2  - PixArt Dell MS116 USB Optical Mouse: device set to 1000 DPI
[05:39:34.423] event2  - PixArt Dell MS116 USB Optical Mouse: device is a pointer
[05:39:34.494] Touchscreen - AD7879 Touchscreen - /sys/devices/platform/soc/30800000.aips-bus/30a20000.i2c/i2c-0/0-002c/input/input0/event0
[05:39:34.494] input device event0 has no enabled output associated (none named), skipping calibration for now.
[05:39:34.495] DRM: head 'Unknown-1' found, connector 31 is connected, EDID make 'unknown', model 'unknown', serial 'unknown'
[05:39:34.496] Registered plugin API 'weston_drm_output_api_v1' of size 12
[05:39:34.497] Chosen EGL config details:
               RGBA bits: 8 8 8 0
               swap interval range: 1 - 1
[05:39:34.497] No backlight control for output 'Unknown-1'
[05:39:34.497] Output Unknown-1 (crtc 33) video modes:
               800x480@60.1, preferred, current, 33.2 MHz
[05:39:34.497] associating input device event1 with output Unknown-1 (none by udev)
[05:39:34.498] associating input device event0 with output Unknown-1 (none by udev)
[05:39:34.503] associating input device event2 with output Unknown-1 (none by udev)
[05:39:34.503] Output 'Unknown-1' enabled with head(s) Unknown-1
[05:39:34.504] Compositor capabilities:
               arbitrary surface rotation: yes
               screen capture uses y-flip: yes
               presentation clock: CLOCK_MONOTONIC, id 1
               presentation clock resolution: 0.000000001 s
[05:39:34.510] Loading module '/usr/lib/arm-linux-gnueabihf/weston/desktop-shell.so'
[05:39:34.521] launching '/usr/lib/weston/weston-keyboard'
[05:39:34.587] Loading module '/usr/lib/arm-linux-gnueabihf/libweston-5/xwayland.so'
[05:39:34.662] Registered plugin API 'weston_xwayland_v1' of size 16
[05:39:34.663] Registered plugin API 'weston_xwayland_surface_v1' of size 8
[05:39:34.664] xserver listening on display :0
[05:39:34.664] launching '/usr/lib/weston/weston-desktop-shell'
[05:39:36.554] atomic: couldn't commit new state: Invalid argument
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'
weston-touch-calibrator error: "DPI-1" was not found.
^C[05:39:51.313] caught signal 2
[05:39:51.314] output for input device event1 removed
[05:39:51.314] output for input device event0 removed
[05:39:51.315] output for input device event2 removed
[05:39:51.321] event1  - gpio-keys: device removed
[05:39:51.321] event0  - AD7879 Touchscreen: device removed
[05:39:51.321] event2  - PixArt Dell MS116 USB Optical Mouse: device removed
failed to restore keyboard mode: Invalid argument
failed to set KD_TEXT mode on tty: Invalid argument
colibri-imx7-06581424:~$ login as: torizon
colibri-imx7-06581424:~$ docker stop $(docker ps -q)
dfccbef41aec
colibri-imx7-06581424:~$ docker run -ti --rm --privileged -v /dev:/dev -v /run/udev/:/run/udev/ -v /etc/udev/rules.d:/etc/udev/rules.d torizon/arm32v7-debian-weston-touch-calibrator
Date: 2020-07-12 UTC
[05:39:33.360] weston 5.0.0
               https://wayland.freedesktop.org
               Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
               Build: unknown (not built from git or tarball)
[05:39:33.361] Command line: /usr/bin/weston
[05:39:33.362] OS: Linux, 5.4.43-rt25-4.0.0-devel+git.ed141ad4be96, #1-TorizonCore SMP PREEMPT_RT Wed Jul 1 15:32:52 UTC 2020, armv7l
[05:39:33.363] warning: XDG_RUNTIME_DIR "/tmp/weston-xdg" is not configured
correctly.  Unix access mode must be 0700 (current mode is 755),
and must be owned by the user (current owner is UID 0).
Refer to your distribution on how to get it, or
http://www.freedesktop.org/wiki/Specifications/basedir-spec
on how to implement it.
[05:39:33.367] Using config file '/etc/xdg/weston/weston.ini'
[05:39:33.368] Output repaint window is 7 ms maximum.
[05:39:33.370] Loading module '/usr/lib/arm-linux-gnueabihf/libweston-5/drm-backend.so'
[05:39:33.400] initializing drm backend
[05:39:33.402] logind: not running in a systemd session
[05:39:3login: Cannot possibly work without effective root
3.403] logind: cannot setup systemd-logind helper (-61), using legacy fallback
[05:39:33.412] using /dev/dri/card0
[05:39:33.413] DRM: supports universal planes
[05:39:33.413] DRM: supports atomic modesetting
[05:39:33.413] DRM: supports picture aspect ratio
[05:39:33.415] Loading module '/usr/lib/arm-linux-gnueabihf/libweston-5/gl-renderer.so'
gbm: failed to open any driver (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
gbm: Last dlopen error: /usr/lib/dri/mxsfb-drm_dri.so: cannot open shared object file: No such file or directory
failed to load driver: mxsfb-drm
[05:39:34.176] EGL 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_EXT_client_extensions EGL_KHR_debug
               EGL_EXT_platform_wayland EGL_EXT_platform_x11
               EGL_MESA_platform_gbm EGL_MESA_platform_surfaceless
[05:39:34.189] warning: neither EGL_EXT_swap_buffers_with_damage or EGL_KHR_swap_buffers_with_damage is supported. Performance could be affected.
colibri-imx7-06581424:~$ torizon@192.168.0.100's password:
[05:39:34.189] warning: Disabling render GPU timeline due to missing EGL_ANDROID_native_fence_sync extension
[05:39:34.189] EGL_KHR_surfaceless_context available
[05:39:34.302] EGL version: 1.4
[05:39:34.303] EGL vendor: Mesa Project
[05:39:34.303] EGL client APIs: OpenGL OpenGL_ES
[05:39:34.303] EGL extensions: EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import
               EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_create_context
               EGL_KHR_create_context_no_error 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_reusable_sync
               EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float
               EGL_KHR_wait_sync EGL_MESA_configless_context
               EGL_MESA_image_dma_buf_export
[05:39:34.305] GL version: OpenGL ES 3.0 Mesa 18.3.6
[05:39:34.305] GLSL version: OpenGL ES GLSL ES 3.00
[05:39:34.305] GL vendor: VMware, Inc.
[05:39:34.306] GL renderer: llvmpipe (LLVM 7.0, 128 bits)
[05:39:34.307] GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
               GL_EXT_texture_compression_s3tc GL_EXT_occlusion_query_boolean
               GL_EXT_texture_compression_dxt1 GL_EXT_texture_format_BGRA8888
               GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24
               GL_OES_element_index_uint GL_OES_fbo_render_mipmap
-sh: torizon@192.168.0.100s password:
Last login: Sun Jul 12 05:25:11 2020 from 192.168.0.101
colibri-imx7-06581424:~$ docker stop $(docker ps -q)
dfccbef41aec
colibri-imx7-06581424:~$ docker run -ti --rm --privileged -v /dev:/dev -v /run/udev/:/run/udev/ -v /etc/udev/rules.d:/etc/udev/rules.d torizon/arm32v7-debian-weston-touch-calibrator
Date: 2020-07-12 UTC
[05:39:33.360] weston 5.0.0
               https://wayland.freedesktop.org
               Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
               Build: unknown (not built from git or tarball)
[05:39:33.361] Command line: /usr/bin/weston
[05:39:33.362] OS: Linux, 5.4.43-rt25-4.0.0-devel+git.ed141ad4be96, #1-TorizonCore SMP PREEMPT_RT Wed Jul 1 15:32:52 UTC 2020, armv7l
[05:39:33.363] warning: XDG_RUNTIME_DIR "/tmp/weston-xdg" is not configured
correctly.  Unix access mode must be 0700 (current mode is 755),
and must be owned by the user (current owner is UID 0).
Refer to your distribution on how to get it, or
http://www.freedesktop.org/wiki/Specifications/basedir-spec
on how to implement it.
[05:39:33.367] Using config file /etc/xdg/weston/weston.ini
[05:39:33.368] Output repaint window is 7 ms maximum.
[05:39:33.370] Loading module /usr/lib/arm-linux-gnueabihf/libweston-5/drm-backend.so
[05:39:33.400] initializing drm backend
[05:39:33.402] logind: not running in a systemd session
[05:39:33.403] logind: cannot setup systemd-logind helper (-61), using legacy fallback
[05:39:33.412] using /dev/dri/card0
[05:39:33.413] DRM: supports universal planes
[05:39:33.413] DRM: supports atomic modesetting
[05:39:33.413] DRM: supports picture aspect ratio
[05:39:33.415] Loading module /usr/lib/arm-linux-gnueabihf/libweston-5/gl-renderer.so
gbm: failed to open any driver (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
gbm: Last dlopen error: /usr/lib/dri/mxsfb-drm_dri.so: cannot open shared object file: No such file or directory
failed to load driver: mxsfb-drm
[05:39:34.176] EGL 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_EXT_client_extensions EGL_KHR_debug
               EGL_EXT_platform_wayland EGL_EXT_platform_x11
               EGL_MESA_platform_gbm EGL_MESA_platform_surfaceless
[05:39:34.189] warning: neither EGL_EXT_swap_buffers_with_damage or EGL_KHR_swap_buffers_with_damage is supported. Performance could be affected.
[05:39:34.189] warning: Disabling render GPU timeline due to missing EGL_ANDROID_native_fence_sync extension
[05:39:34.189] EGL_KHR_surfaceless_context available
[05:39:34.302] EGL version: 1.4
[05:39:34.303] EGL vendor: Mesa Project
[05:39:34.303] EGL client APIs: OpenGL OpenGL_ES
[05:39:34.303] EGL extensions: EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import
               EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_create_context
               EGL_KHR_create_context_no_error 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_reusable_sync
               EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float
               EGL_KHR_wait_sync EGL_MESA_configless_context
               EGL_MESA_image_dma_buf_export
[05:39:34.305] GL version: OpenGL ES 3.0 Mesa 18.3.6
[05:39:34.305] GLSL version: OpenGL ES GLSL ES 3.00
[05:39:34.305] GL vendor: VMware, Inc.
[05:39:34.306] GL renderer: llvmpipe (LLVM 7.0, 128 bits)
[05:39:34.307] GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
               GL_EXT_texture_compression_s3tc GL_EXT_occlusion_query_boolean
               GL_EXT_texture_compression_dxt1 GL_EXT_texture_format_BGRA8888
               GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24
               GL_OES_element_index_uint GL_OES_fbo_render_mipmap
               GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_standard_derivatives
               GL_OES_stencil8 GL_OES_texture_3D GL_OES_texture_float
               GL_OES_texture_float_linear GL_OES_texture_half_float
               GL_OES_texture_half_float_linear GL_OES_texture_npot
               GL_OES_vertex_half_float GL_EXT_texture_sRGB_decode
               GL_OES_EGL_image GL_OES_depth_texture
               GL_OES_packed_depth_stencil GL_EXT_texture_type_2_10_10_10_REV
               GL_OES_get_program_binary GL_APPLE_texture_max_level
               GL_EXT_discard_framebuffer GL_EXT_read_format_bgra
               GL_EXT_frag_depth GL_NV_fbo_color_attachments
               GL_OES_EGL_image_external GL_OES_EGL_sync
               GL_OES_vertex_array_object GL_ANGLE_texture_compression_dxt3
               GL_ANGLE_texture_compression_dxt5 GL_EXT_texture_rg
               GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer
               GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil
               GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug
               GL_KHR_texture_compression_astc_ldr
               GL_OES_depth_texture_cube_map GL_OES_required_internalformat
               GL_OES_surfaceless_context GL_EXT_color_buffer_float
               GL_EXT_separate_shader_objects GL_EXT_shader_integer_mix
               GL_EXT_base_instance GL_EXT_compressed_ETC1_RGB8_sub_texture
               GL_EXT_copy_image GL_EXT_draw_buffers_indexed
               GL_EXT_draw_elements_base_vertex GL_EXT_polygon_offset_clamp
               GL_EXT_texture_border_clamp GL_KHR_context_flush_control
               GL_OES_copy_image GL_OES_draw_buffers_indexed
               GL_OES_draw_elements_base_vertex GL_OES_texture_border_clamp
               GL_OES_texture_stencil8 GL_EXT_blend_func_extended
               GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d
               GL_OES_EGL_image_external_essl3 GL_EXT_clip_cull_distance
               GL_EXT_disjoint_timer_query GL_MESA_shader_integer_functions
[05:39:34.315] GL ES 2 renderer features:
               read-back format: BGRA
               wl_shm sub-image to texture: yes
               EGL Wayland extension: no
[05:39:34.379] event1  - gpio-keys: is tagged by udev as: Keyboard
[05:39:34.379] event1  - gpio-keys: device is a keyboard
[05:39:34.397] event0  - AD7879 Touchscreen: is tagged by udev as: Touchscreen
[05:39:34.402] event0  - AD7879 Touchscreen: device is a touch device
[05:39:34.421] event2  - PixArt Dell MS116 USB Optical Mouse: is tagged by udev as: Mouse
[05:39:34.422] event2  - PixArt Dell MS116 USB Optical Mouse: device set to 1000 DPI
[05:39:34.423] event2  - PixArt Dell MS116 USB Optical Mouse: device is a pointer
[05:39:34.494] Touchscreen - AD7879 Touchscreen - /sys/devices/platform/soc/30800000.aips-bus/30a20000.i2c/i2c-0/0-002c/input/input0/event0
[05:39:34.494] input device event0 has no enabled output associated (none named), skipping calibration for now.
[05:39:34.495] DRM: head Unknown-1 found, connector 31 is connected, EDID make unknown, model unknown, serial unknown
[05:39:34.496] Registered plugin API weston_drm_output_api_v1 of size 12
[05:39:34.497] Chosen EGL config details:
               RGBA bits: 8 8 8 0
               swap interval range: 1 - 1
[05:39:34.497] No backlight control for output Unknown-1
[05:39:34.497] Output Unknown-1 (crtc 33) video modes:
               800x480@60.1, preferred, current, 33.2 MHz
[05:39:34.497] associating input device event1 with output Unknown-1 (none by udev)
[05:39:34.498] associating input device event0 with output Unknown-1 (none by udev)
[05:39:34.503] associating input device event2 with output Unknown-1 (none by udev)
[05:39:34.503] Output Unknown-1 enabled with head(s) Unknown-1
[05:39:34.504] Compositor capabilities:
               arbitrary surface rotation: yes
               screen capture uses y-flip: yes
               presentation clock: CLOCK_MONOTONIC, id 1
               presentation clock resolution: 0.000000001 s
[05:39:34.510] Loading module /usr/lib/arm-linux-gnueabihf/weston/desktop-shell.so
[05:39:34.521] launching /usr/lib/weston/weston-keyboard
[05:39:34.587] Loading module /usr/lib/arm-linux-gnueabihf/libweston-5/xwayland.so
[05:39:34.662] Registered plugin API weston_xwayland_v1 of size 16
[05:39:34.663] Registered plugin API weston_xwayland_surface_v1 of size 8
[05:39:34.664] xserver listening on display :0
[05:39:34.664] launching /usr/lib/weston/weston-desktop-shell
[05:39:36.554] atomic: couldnt: File name too long
colibri-imx7-06581424:~$ could not load cursor 'dnd-move'
-sh: could: command not found
colibri-imx7-06581424:~$ could not load cursor 'dnd-copy'
-sh: could: command not found
colibri-imx7-06581424:~$ could not load cursor 'dnd-none'
-sh: could: command not found
colibri-imx7-06581424:~$ could not load cursor 'dnd-move'
-sh: could: command not found
colibri-imx7-06581424:~$ could not load cursor 'dnd-copy'
-sh: could: command not found
colibri-imx7-06581424:~$ could not load cursor 'dnd-none'
-sh: could: command not found
colibri-imx7-06581424:~$ could not load cursor 'dnd-move'
-sh: could: command not found
colibri-imx7-06581424:~$ could not load cursor 'dnd-copy'
-sh: could: command not found
colibri-imx7-06581424:~$ could not load cursor 'dnd-none'
-sh: could: command not found
colibri-imx7-06581424:~$ weston-touch-calibrator error: "DPI-1" was not found.
-sh: weston-touch-calibrator: command not found
colibri-imx7-06581424:~$ ^C[05:39:51.313] caught signal 2
-sh: :s^C[05:39:51.313] caught signal 2: substitution failed
colibri-imx7-06581424:~$ [05:39:51.314] output for input device event1 removed
-sh: [05:39:51.314]: command not found
colibri-imx7-06581424:~$ [05:39:51.314] output for input device event0 removed
-sh: [05:39:51.314]: command not found
colibri-imx7-06581424:~$ [05:39:51.315] output for input device event2 removed
-sh: [05:39:51.315]: command not found
colibri-imx7-06581424:~$ [05:39:51.321] event1  - gpio-keys: device removed
-sh: [05:39:51.321]: command not found
colibri-imx7-06581424:~$ [05:39:51.321] event0  - AD7879 Touchscreen: device removed
-sh: [05:39:51.321]: command not found
colibri-imx7-06581424:~$ [05:39:51.321] event2  - PixArt Dell MS116 USB Optical Mouse: device removed
-sh: [05:39:51.321]: command not found
colibri-imx7-06581424:~$ failed to restore keyboard mode: Invalid argument
-sh: failed: command not found
colibri-imx7-06581424:~$ failed to set KD_TEXT mode on tty: Invalid argument
-sh: failed: command not found
1 Like

This is getting worse with Torizon, the Visual Studio hangs randomly. I do not have much time to waste in this. I have a project to finish with my team to develop an application.
I am using Torizon core with Pre emp RT. The details of the image is shown in the screen shots attached here.
All Torizon toolbars get disabled with no reason. after that i am not even able to edit the program in c file.
Below attached is the screenshot of Visual Studio.

Pleas suggest me a stable development procedure so that i can proceed with my development.
From last 4 weeks, i am facing problem with some thing or other. There are lot of examples out there but none of them are complete. I am not able to make a sample screenGUI and run on the hardware and display on my touchscreen.

alt text

I am having a very similar issue to this where running Weston gives:

[23:38:59.657] launching '/usr/lib/aarch64-linux-gnu/weston-desktop-shell'
[23:38:59.666] atomic: couldn't commit new state: Invalid argument
[23:38:59.667] repaint-flush failed: Invalid argument
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'```