ardera / flutter-pi

A light-weight Flutter Engine Embedder for Linux Embedded that runs without X11 or Wayland.
MIT License
1.58k stars 159 forks source link

flickering area on the screen #226

Closed iboldurev closed 1 year ago

iboldurev commented 2 years ago

Hi, after starting the project, I have a problem, when update the state, I see blink on the screen

if run the project without rotate parameters everything works fine, but if I pass a rotate, get this problem

flutter-pi -r 270 /home/pi/testapp

attached video https://youtu.be/565MMXQY2Yk

I see https://github.com/ardera/flutter-pi/issues/197#issuecomment-934250626

but I can't use dtoverlay=vc4-kms-v3d because then when I run it I get an error

[flutter-pi] Could not find a preferred output mode!

i use https://www.waveshare.com/wiki/11.9inch_HDMI_LCD

[flutter-pi] WARNING: display didn't provide valid physical dimensions.
             The device-pixel ratio will default to 1.0, which may not be the fitting device-pixel ratio for your display.
===================================
display mode:
  resolution: 320 x 1480
  refresh rate: 62Hz
  physical size: 0mm x 0mm
  flutter device pixel ratio: 1.000000
===================================
EGL information:
  version: 1.4
  vendor: "Mesa Project"
  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_device EGL_EXT_platform_wayland EGL_KHR_platform_wayland EGL_EXT_platform_x11 EGL_KHR_platform_x11 EGL_MESA_platform_gbm EGL_KHR_platform_gbm EGL_MESA_platform_surfaceless"
  display extensions: "EGL_ANDROID_blob_cache EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers 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_drm_image EGL_MESA_image_dma_buf_export EGL_MESA_query_driver EGL_WL_bind_wayland_display "
===================================
OpenGL ES information:
  version: "OpenGL ES 3.1 Mesa 20.3.5"
  shading language version: "OpenGL ES GLSL ES 3.10"
  vendor: "Broadcom"
  renderer: "V3D 4.2"
  extensions: "GL_EXT_blend_minmax GL_EXT_multi_draw_arrays GL_EXT_texture_compression_s3tc 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_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_half_float GL_EXT_draw_instanced 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_pack_reverse_row_order GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_EXT_occlusion_query_boolean 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_NV_pixel_buffer_object GL_OES_depth_texture_cube_map GL_OES_required_internalformat GL_OES_surfaceless_context GL_EXT_color_buffer_float GL_EXT_sRGB_write_control GL_EXT_separate_shader_objects GL_EXT_shader_implicit_conversions GL_EXT_shader_integer_mix GL_EXT_base_instance GL_EXT_compressed_ETC1_RGB8_sub_texture GL_EXT_draw_elements_base_vertex GL_EXT_primitive_bounding_box GL_EXT_shader_io_blocks GL_EXT_texture_border_clamp GL_KHR_context_flush_control GL_NV_image_formats GL_OES_draw_elements_base_vertex GL_OES_primitive_bounding_box GL_OES_shader_io_blocks GL_OES_texture_border_clamp GL_OES_texture_stencil8 GL_OES_texture_storage_multisample_2d_array GL_EXT_buffer_storage GL_EXT_float_blend GL_EXT_geometry_point_size GL_EXT_geometry_shader GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_OES_EGL_image_external_essl3 GL_OES_geometry_point_size GL_OES_geometry_shader GL_OES_shader_image_atomic GL_EXT_texture_compression_s3tc_srgb GL_MESA_shader_integer_functions GL_KHR_parallel_shader_compile GL_EXT_EGL_image_storage GL_MESA_framebuffer_flip_y GL_EXT_texture_query_lod "
===================================
ardera commented 2 years ago

It should actually work even with the could not find a preferred output mode message. What pi are you using? Maybe attach the output if the raspinfo command

iboldurev commented 2 years ago

Hi, @ardera thanks for responding

I use raspberry 4b pi os lite 64b + https://www.waveshare.com/wiki/11.9inch_HDMI_LCD

run command

flutter-pi -o landscape_right /home/pi/testapp 

or

flutter-pi -r 270 /home/pi/testapp

if I use fkms overlay and rotation or orientations, I see flickering

pi@pi:~ $ flutter-pi -o landscape_right /home/pi/testapp
[flutter-pi] WARNING: display didn't provide valid physical dimensions.
             The device-pixel ratio will default to 1.0, which may not be the fitting device-pixel ratio for your display.
WARNING: Kernel didn't return a valid vblank timestamp. (timestamp == 0)
         VSync will be disabled.
         See https://github.com/ardera/flutter-pi/issues/38 for more info.
===================================
display mode:
  resolution: 320 x 1480
  refresh rate: 62Hz
  physical size: 0mm x 0mm
  flutter device pixel ratio: 1.000000
===================================
EGL information:
  version: 1.4
  vendor: "Mesa Project"
  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_device EGL_EXT_platform_wayland EGL_KHR_platform_wayland EGL_EXT_platform_x11 EGL_KHR_platform_x11 EGL_MESA_platform_gbm EGL_KHR_platform_gbm EGL_MESA_platform_surfaceless"
  display extensions: "EGL_ANDROID_blob_cache EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers 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_drm_image EGL_MESA_image_dma_buf_export EGL_MESA_query_driver EGL_WL_bind_wayland_display "
===================================
OpenGL ES information:
  version: "OpenGL ES 3.1 Mesa 20.3.5"
  shading language version: "OpenGL ES GLSL ES 3.10"
  vendor: "Broadcom"
  renderer: "V3D 4.2"
  extensions: "GL_EXT_blend_minmax GL_EXT_multi_draw_arrays GL_EXT_texture_compression_s3tc 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_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_half_float GL_EXT_draw_instanced 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_pack_reverse_row_order GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_EXT_occlusion_query_boolean 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_NV_pixel_buffer_object GL_OES_depth_texture_cube_map GL_OES_required_internalformat GL_OES_surfaceless_context GL_EXT_color_buffer_float GL_EXT_sRGB_write_control GL_EXT_separate_shader_objects GL_EXT_shader_implicit_conversions GL_EXT_shader_integer_mix GL_EXT_base_instance GL_EXT_compressed_ETC1_RGB8_sub_texture GL_EXT_draw_elements_base_vertex GL_EXT_primitive_bounding_box GL_EXT_shader_io_blocks GL_EXT_texture_border_clamp GL_KHR_context_flush_control GL_NV_image_formats GL_OES_draw_elements_base_vertex GL_OES_primitive_bounding_box GL_OES_shader_io_blocks GL_OES_texture_border_clamp GL_OES_texture_stencil8 GL_OES_texture_storage_multisample_2d_array GL_EXT_buffer_storage GL_EXT_float_blend GL_EXT_geometry_point_size GL_EXT_geometry_shader GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_OES_EGL_image_external_essl3 GL_OES_geometry_point_size GL_OES_geometry_shader GL_OES_shader_image_atomic GL_EXT_texture_compression_s3tc_srgb GL_MESA_shader_integer_functions GL_KHR_parallel_shader_compile GL_EXT_EGL_image_storage GL_MESA_framebuffer_flip_y GL_EXT_texture_query_lod "
===================================
flutter: Observatory listening on http://127.0.0.1:40599/OguKNIuQoBQ=/

but if I change overlay to dtoverlay=vc4-kms-v3d I receive message

[flutter-pi] Could not find a preferred output mode!

my config.txt

# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
hdmi_group=2
hdmi_mode=87

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
#dtparam=i2s=on
dtparam=spi=on

# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

# Automatically load overlays for detected cameras
camera_auto_detect=1

# Automatically load overlays for detected DSI displays
display_auto_detect=1

# Enable DRM VC4 V3D driver
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
max_framebuffer_height=1480

# Run in 64-bit mode
arm_64bit=1

# Disable compensation for displays with overscan
disable_overscan=1

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1

[all]

[pi4]
# Run as fast as firmware / board allows
arm_boost=1

[all]
hdmi_timings=320 0 80 16 32 1480 0 16 4 12 0 0 0 60 0 42000000 3
gpu_mem=64

my cmdline.txt

console=serial0,115200 console=tty1 root=PARTUUID=2b1c724f-02 rootfstype=ext4 fsck.repair=yes rootwait video=HDMI-A-1:320x1480M@60,rotate=90 silent

my raspinfo

pi@pi:~ $ raspinfo
System Information
------------------

Raspberry Pi 4 Model B Rev 1.4
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"

Raspberry Pi reference 2022-01-28
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, fbe448ccdc995d295d24c7596e5f0ef62cc2488f, stage2

Linux pi 5.10.92-v8+ #1514 SMP PREEMPT Mon Jan 17 17:39:38 GMT 2022 aarch64 GNU/Linux
Revision    : c03114
Serial      : 10000000f3f0a5e5
Model       : Raspberry Pi 4 Model B Rev 1.4
Throttled flag  : throttled=0x0
Camera          : supported=0 detected=0

Videocore information
---------------------

Jan 20 2022 13:56:48
Copyright (c) 2012 Broadcom
version bd88f66f8952d34e4e0613a85c7a6d3da49e13e2 (clean) (release) (start)

alloc failures:     0
compactions:        0
legacy block fails: 0

Filesystem information
----------------------
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/root       30388284 2362332  26757552   9% /
devtmpfs         1783484       0   1783484   0% /dev
tmpfs            1949180       0   1949180   0% /dev/shm
tmpfs             779672     832    778840   1% /run
tmpfs               5120       4      5116   1% /run/lock
/dev/mmcblk0p1    258095   32029    226067  13% /boot
tmpfs             389836       0    389836   0% /run/user/1000

Filename                Type        Size        Used        Priority
/var/swap                               file        102396      0       -2

Package version information
---------------------------
raspberrypi-ui-mods:
  Installed: (none)
raspberrypi-sys-mods:
  Installed: 20220110+1
openbox:
  Installed: (none)
lxpanel:
  Installed: (none)
pcmanfm:
  Installed: (none)
rpd-plym-splash:
  Installed: (none)

Networking Information
----------------------

eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether m.m.m.m  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet x.x.x.x  netmask x.x.x.x
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 14  bytes 1746 (1.7 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 14  bytes 1746 (1.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet x.x.x.x  netmask x.x.x.x  broadcast x.x.x.x
        inet6 y::y.y.y.y  prefixlen 64  scopeid 0x20<link>
        ether m.m.m.m  txqueuelen 1000  (Ethernet)
        RX packets 247  bytes 32032 (31.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 224  bytes 52534 (51.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

USB Information
---------------

/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 2: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 3: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 3: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 12M

config.txt
----------

arm_64bit=1
arm_boost=1
arm_freq=1800
audio_pwm_mode=514
camera_auto_detect=1
config_hdmi_boost=5
core_freq=500
core_freq_min=200
disable_commandline_tags=2
disable_l2cache=1
disable_overscan=1
disable_touchscreen=1
display_auto_detect=1
display_hdmi_rotate=-1
display_lcd_rotate=-1
dvfs=3
enable_gic=1
enable_uart=1
force_eeprom_read=1
force_pwm_open=1
framebuffer_ignore_alpha=1
framebuffer_swap=1
gpu_freq=500
gpu_freq_min=250
init_uart_clock=0x2dc6c00
lcd_framerate=60
mask_gpu_interrupt0=1024
mask_gpu_interrupt1=0x10000
max_framebuffer_height=1480
max_framebuffers=2
over_voltage_avs=-30000
pause_burst_frames=1
program_serial_random=1
total_mem=4096
hdmi_force_cec_address:0=65535
hdmi_force_cec_address:1=65535
hdmi_force_hotplug:0=1
hdmi_group:0=2
hdmi_mode:0=87
hdmi_pixel_freq_limit:0=0x11e1a300
hdmi_pixel_freq_limit:1=0x11e1a300
device_tree=-
overlay_prefix=overlays/
hdmi_cvt:0=
hdmi_cvt:1=
hdmi_edid_filename:0=
hdmi_edid_filename:1=
hdmi_timings:0=320 0 80 16 32 1480 0 16 4 12 0 0 0 60 0 42000000 3
hdmi_timings:1=

cmdline.txt
-----------
coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 video=HDMI-A-1:320x1480M@60 smsc95xx.macaddr=E4:5F:01:2B:2B:29 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=2b1c724f-02 rootfstype=ext4 fsck.repair=yes rootwait video=HDMI-A-1:320x1480M@60,rotate=90 silent

raspi-gpio settings
-------------------

BANK0 (GPIO 0 to 27):
GPIO 0: level=1 fsel=0 func=INPUT pull=UP
GPIO 1: level=1 fsel=0 func=INPUT pull=UP
GPIO 2: level=1 fsel=4 alt=0 func=SDA1 pull=UP
GPIO 3: level=1 fsel=4 alt=0 func=SCL1 pull=UP
GPIO 4: level=1 fsel=0 func=INPUT pull=UP
GPIO 5: level=1 fsel=0 func=INPUT pull=UP
GPIO 6: level=1 fsel=0 func=INPUT pull=UP
GPIO 7: level=1 fsel=1 func=OUTPUT pull=UP
GPIO 8: level=1 fsel=1 func=OUTPUT pull=UP
GPIO 9: level=0 fsel=4 alt=0 func=SPI0_MISO pull=DOWN
GPIO 10: level=0 fsel=4 alt=0 func=SPI0_MOSI pull=DOWN
GPIO 11: level=0 fsel=4 alt=0 func=SPI0_SCLK pull=DOWN
GPIO 12: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 13: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 14: level=1 fsel=2 alt=5 func=TXD1 pull=NONE
GPIO 15: level=1 fsel=2 alt=5 func=RXD1 pull=UP
GPIO 16: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 17: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 18: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 19: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 20: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 21: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 22: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 23: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 24: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 25: level=1 fsel=0 func=INPUT pull=DOWN
GPIO 26: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 27: level=0 fsel=0 func=INPUT pull=DOWN
BANK1 (GPIO 28 to 45):
GPIO 28: level=1 fsel=2 alt=5 func=RGMII_MDIO pull=UP
GPIO 29: level=0 fsel=2 alt=5 func=RGMII_MDC pull=DOWN
GPIO 30: level=0 fsel=7 alt=3 func=CTS0 pull=UP
GPIO 31: level=0 fsel=7 alt=3 func=RTS0 pull=NONE
GPIO 32: level=1 fsel=7 alt=3 func=TXD0 pull=NONE
GPIO 33: level=1 fsel=7 alt=3 func=RXD0 pull=UP
GPIO 34: level=1 fsel=7 alt=3 func=SD1_CLK pull=NONE
GPIO 35: level=1 fsel=7 alt=3 func=SD1_CMD pull=UP
GPIO 36: level=1 fsel=7 alt=3 func=SD1_DAT0 pull=UP
GPIO 37: level=1 fsel=7 alt=3 func=SD1_DAT1 pull=UP
GPIO 38: level=1 fsel=7 alt=3 func=SD1_DAT2 pull=UP
GPIO 39: level=1 fsel=7 alt=3 func=SD1_DAT3 pull=UP
GPIO 40: level=0 fsel=4 alt=0 func=PWM1_0 pull=NONE
GPIO 41: level=0 fsel=4 alt=0 func=PWM1_1 pull=NONE
GPIO 42: level=0 fsel=1 func=OUTPUT pull=UP
GPIO 43: level=1 fsel=0 func=INPUT pull=UP
GPIO 44: level=1 fsel=0 func=INPUT pull=UP
GPIO 45: level=1 fsel=0 func=INPUT pull=UP
BANK2 (GPIO 46 to 53):
GPIO 46: level=0 fsel=0 func=INPUT pull=UP
GPIO 47: level=0 fsel=0 func=INPUT pull=UP
GPIO 48: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 49: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 50: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 51: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 52: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 53: level=0 fsel=0 func=INPUT pull=DOWN

vcdbg log messages
------------------

sudo: vcdbg: command not found

dmesg log
---------

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
[    0.000000] Linux version 5.10.92-v8+ (dom@buildbot) (aarch64-linux-gnu-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1514 SMP PREEMPT Mon Jan 17 17:39:38 GMT 2022
[    0.000000] random: fast init done
[    0.000000] Machine model: Raspberry Pi 4 Model B Rev 1.4
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x000000001ac00000, size 320 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000]   DMA32    [mem 0x0000000040000000-0x00000000fbffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000003bffffff]
[    0.000000]   node   0: [mem 0x0000000040000000-0x00000000fbffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000000fbffffff]
[    0.000000] On node 0 totalpages: 1015808
[    0.000000]   DMA zone: 3840 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 245760 pages, LIFO batch:63
[    0.000000]   DMA32 zone: 12032 pages used for memmap
[    0.000000]   DMA32 zone: 770048 pages, LIFO batch:63
[    0.000000] percpu: Embedded 32 pages/cpu s91416 r8192 d31464 u131072
[    0.000000] pcpu-alloc: s91416 r8192 d31464 u131072 alloc=32*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] CPU features: detected: Spectre-v2
[    0.000000] CPU features: detected: Spectre-v4
[    0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 999936
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 video=HDMI-A-1:320x1480M@60 smsc95xx.macaddr=m.m.m.m vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=2b1c724f-02 rootfstype=ext4 fsck.repair=yes rootwait video=HDMI-A-1:320x1480M@60,rotate=90 silent
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0x0000000038000000-0x000000003c000000] (64MB)
[    0.000000] Memory: 3566968K/4063232K available (11136K kernel code, 1950K rwdata, 3988K rodata, 3712K init, 1253K bss, 168584K reserved, 327680K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 36801 entries in 144 pages
[    0.000000] ftrace: allocated 144 pages with 2 groups
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] random: get_random_bytes called from start_kernel+0x3b0/0x570 with crng_init=1
[    0.000000] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
[    0.000006] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[    0.000264] Console: colour dummy device 80x25
[    0.000786] printk: console [tty1] enabled
[    0.000848] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=216000)
[    0.000889] pid_max: default: 32768 minimum: 301
[    0.001038] LSM: Security Framework initializing
[    0.001271] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.001344] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.002623] cgroup: Disabling memory control group subsystem
[    0.004934] rcu: Hierarchical SRCU implementation.
[    0.005985] EFI services will not be available.
[    0.006493] smp: Bringing up secondary CPUs ...
[    0.007449] Detected PIPT I-cache on CPU1
[    0.007526] CPU1: Booted secondary processor 0x0000000001 [0x410fd083]
[    0.008675] Detected PIPT I-cache on CPU2
[    0.008724] CPU2: Booted secondary processor 0x0000000002 [0x410fd083]
[    0.009786] Detected PIPT I-cache on CPU3
[    0.009834] CPU3: Booted secondary processor 0x0000000003 [0x410fd083]
[    0.009982] smp: Brought up 1 node, 4 CPUs
[    0.010069] SMP: Total of 4 processors activated.
[    0.010093] CPU features: detected: 32-bit EL0 Support
[    0.010116] CPU features: detected: CRC32 instructions
[    0.010139] CPU features: detected: 32-bit EL1 Support
[    0.043448] CPU: All CPU(s) started at EL2
[    0.043528] alternatives: patching kernel code
[    0.045091] devtmpfs: initialized
[    0.056212] Enabled cp15_barrier support
[    0.056273] Enabled setend support
[    0.056480] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.056526] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.065102] pinctrl core: initialized pinctrl subsystem
[    0.065893] DMI not present or invalid.
[    0.066261] NET: Registered protocol family 16
[    0.069390] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
[    0.069671] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.070592] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.070718] audit: initializing netlink subsys (disabled)
[    0.071076] audit: type=2000 audit(0.068:1): state=initialized audit_enabled=0 res=1
[    0.071566] thermal_sys: Registered thermal governor 'step_wise'
[    0.072008] cpuidle: using governor menu
[    0.072429] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.072615] ASID allocator initialised with 65536 entries
[    0.072757] Serial: AMBA PL011 UART driver
[    0.106068] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[    0.112350] raspberrypi-firmware soc:firmware: Attached to firmware from 2022-01-20T13:56:48, variant start
[    0.116362] raspberrypi-firmware soc:firmware: Firmware hash is bd88f66f8952d34e4e0613a85c7a6d3da49e13e2
[    0.151024] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
[    0.155549] vgaarb: loaded
[    0.155973] SCSI subsystem initialized
[    0.156194] usbcore: registered new interface driver usbfs
[    0.156264] usbcore: registered new interface driver hub
[    0.156342] usbcore: registered new device driver usb
[    0.156796] usb_phy_generic phy: supply vcc not found, using dummy regulator
[    0.158594] clocksource: Switched to clocksource arch_sys_counter
[    1.190766] VFS: Disk quotas dquot_6.6.0
[    1.190883] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    1.191053] FS-Cache: Loaded
[    1.191300] CacheFiles: Loaded
[    1.192307] simple-framebuffer 3ea29000.framebuffer: framebuffer at 0x3ea29000, 0x1d1000 bytes, mapped to 0x(____ptrval____)
[    1.192343] simple-framebuffer 3ea29000.framebuffer: format=a8r8g8b8, mode=320x1480x32, linelength=1280
[    1.195352] Console: switching to colour frame buffer device 40x92
[    1.198089] simple-framebuffer 3ea29000.framebuffer: fb0: simplefb registered!
[    1.208630] NET: Registered protocol family 2
[    1.209156] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    1.212695] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    1.212838] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    1.213119] TCP bind hash table entries: 32768 (order: 7, 524288 bytes, linear)
[    1.213681] TCP: Hash tables configured (established 32768 bind 32768)
[    1.213969] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    1.214101] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    1.214438] NET: Registered protocol family 1
[    1.215429] RPC: Registered named UNIX socket transport module.
[    1.215506] RPC: Registered udp transport module.
[    1.215565] RPC: Registered tcp transport module.
[    1.215624] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.215708] PCI: CLS 0 bytes, default 64
[    1.218131] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
[    1.218530] kvm [1]: IPA Size Limit: 44 bits
[    1.219766] kvm [1]: vgic interrupt IRQ9
[    1.220095] kvm [1]: Hyp mode initialized successfully
[    1.222344] Initialise system trusted keyrings
[    1.222781] workingset: timestamp_bits=46 max_order=20 bucket_order=0
[    1.229089] zbud: loaded
[    1.230869] FS-Cache: Netfs 'nfs' registered for caching
[    1.231563] NFS: Registering the id_resolver key type
[    1.231655] Key type id_resolver registered
[    1.231712] Key type id_legacy registered
[    1.231874] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.231955] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.237557] Key type asymmetric registered
[    1.242048] Asymmetric key parser 'x509' registered
[    1.246597] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    1.253592] io scheduler mq-deadline registered
[    1.258116] io scheduler kyber registered
[    1.266725] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[    1.271407] brcm-pcie fd500000.pcie:   No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[    1.278466] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x063fffffff -> 0x00c0000000
[    1.285581] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x00ffffffff -> 0x0400000000
[    1.356688] brcm-pcie fd500000.pcie: link up, 5.0 GT/s PCIe x1 (SSC)
[    1.361784] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[    1.366601] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.371375] pci_bus 0000:00: root bus resource [mem 0x600000000-0x63fffffff] (bus address [0xc0000000-0xffffffff])
[    1.378523] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[    1.383448] pci 0000:00:00.0: PME# supported from D0 D3hot
[    1.392341] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[    1.397151] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    1.402254] pci 0000:01:00.0: PME# supported from D0 D3hot
[    1.422235] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[    1.426959] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
[    1.433973] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.438650] pci 0000:00:00.0:   bridge window [mem 0x600000000-0x6000fffff]
[    1.448902] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[    1.454430] bcm2835-aux-uart fe215040.serial: there is not valid maps for state default
[    1.463685] iproc-rng200 fe104000.rng: hwrng registered
[    1.468768] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    1.477113] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[    1.484495] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    1.500092] brd: module loaded
[    1.514403] loop: module loaded
[    1.518828] Loading iSCSI transport class v2.0-870.
[    1.526487] libphy: Fixed MDIO Bus: probed
[    1.532743] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
[    1.546633] libphy: bcmgenet MII bus: probed
[    1.602749] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
[    1.608519] usbcore: registered new interface driver r8152
[    1.613240] usbcore: registered new interface driver lan78xx
[    1.617942] usbcore: registered new interface driver smsc95xx
[    1.668425] pci 0000:00:00.0: enabling device (0000 -> 0002)
[    1.673268] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.677938] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    1.685548] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x00000e0000000890
[    1.693784] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    1.700751] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.707699] usb usb1: Product: xHCI Host Controller
[    1.712343] usb usb1: Manufacturer: Linux 5.10.92-v8+ xhci-hcd
[    1.716994] usb usb1: SerialNumber: 0000:01:00.0
[    1.722311] hub 1-0:1.0: USB hub found
[    1.727107] hub 1-0:1.0: 1 port detected
[    1.732371] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.737091] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    1.744089] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    1.749138] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10
[    1.756340] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.763340] usb usb2: Product: xHCI Host Controller
[    1.768014] usb usb2: Manufacturer: Linux 5.10.92-v8+ xhci-hcd
[    1.772697] usb usb2: SerialNumber: 0000:01:00.0
[    1.778026] hub 2-0:1.0: USB hub found
[    1.782844] hub 2-0:1.0: 4 ports detected
[    1.789172] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.794222] dwc_otg: FIQ enabled
[    1.794233] dwc_otg: NAK holdoff enabled
[    1.794244] dwc_otg: FIQ split-transaction FSM enabled
[    1.794257] Module dwc_common_port init
[    1.794809] usbcore: registered new interface driver uas
[    1.799625] usbcore: registered new interface driver usb-storage
[    1.804536] mousedev: PS/2 mouse device common for all mice
[    1.811268] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    1.819527] sdhci: Secure Digital Host Controller Interface driver
[    1.824254] sdhci: Copyright(c) Pierre Ossman
[    1.829608] mmc-bcm2835 fe300000.mmcnr: could not get clk, deferring probe
[    1.834898] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.843685] ledtrig-cpu: registered to indicate activity on CPUs
[    1.848729] hid: raw HID events driver (C) Jiri Kosina
[    1.853745] usbcore: registered new interface driver usbhid
[    1.858523] usbhid: USB HID core driver
[    1.863593] ashmem: initialized
[    1.875061] Initializing XFRM netlink socket
[    1.879970] NET: Registered protocol family 17
[    1.884852] Key type dns_resolver registered
[    1.890163] registered taskstats version 1
[    1.895722] Loading compiled-in X.509 certificates
[    1.900916] Key type ._fscrypt registered
[    1.905649] Key type .fscrypt registered
[    1.910360] Key type fscrypt-provisioning registered
[    1.926120] uart-pl011 fe201000.serial: there is not valid maps for state default
[    1.933744] uart-pl011 fe201000.serial: cts_event_workaround enabled
[    1.938637] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 21, base_baud = 0) is a PL011 rev2
[    1.953890] bcm2835-aux-uart fe215040.serial: there is not valid maps for state default
[    1.961605] printk: console [ttyS0] disabled
[    1.966464] fe215040.serial: ttyS0 at MMIO 0xfe215040 (irq = 24, base_baud = 62500000) is a 16550
[    1.998197] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    2.226454] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[    2.226468] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.226479] usb 1-1: Product: USB2.0 Hub
[    2.251399] hub 1-1:1.0: USB hub found
[    2.257044] hub 1-1:1.0: 4 ports detected
[    3.387370] printk: console [ttyS0] enabled
[    3.397196] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    3.412561] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    3.423391] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[    3.464043] of_cfs_init
[    3.469041] of_cfs_init: OK
[    3.491747] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    3.499355] mmc0: SDHCI controller on fe340000.mmc [fe340000.mmc] using ADMA
[    3.503641] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    3.514450] Waiting for root device PARTUUID=2b1c724f-02...
[    3.525957] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    3.547593] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    3.559469] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    3.615096] mmc0: new ultra high speed DDR50 SDHC card at address aaaa
[    3.626628] usb 1-1.2: new full-speed USB device number 3 using xhci_hcd
[    3.638840] mmcblk0: mmc0:aaaa SC32G 29.7 GiB
[    3.646354] mmc1: new high speed SDIO card at address 0001
[    3.662352]  mmcblk0: p1 p2
[    3.683252] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[    3.697634] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[    3.748248] usb 1-1.2: New USB device found, idVendor=0712, idProduct=0009, bcdDevice= 2.00
[    3.763700] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.778057] usb 1-1.2: Product: WaveShare
[    3.786753] usb 1-1.2: Manufacturer: WaveShare
[    3.795886] usb 1-1.2: SerialNumber: 000000000089
[    3.808511] EXT4-fs (mmcblk0p2): recovery complete
[    3.821874] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    3.827149] input: WaveShare WaveShare as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2/1-1.2:1.0/0003:0712:0009.0001/input/input0
[    3.837333] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    3.864859] hid-generic 0003:0712:0009.0001: input,hidraw0: USB HID v1.11 Device [WaveShare WaveShare] on usb-0000:01:00.0-1.2/input0
[    3.883622] devtmpfs: mounted
[    3.911702] Freeing unused kernel memory: 3712K
[    3.921093] Run /sbin/init as init process
[    3.929848]   with arguments:
[    3.929859]     /sbin/init
[    3.929869]     silent
[    3.929879]   with environment:
[    3.929888]     HOME=/
[    3.929898]     TERM=linux
[    3.978647] usb 1-1.3: new full-speed USB device number 4 using xhci_hcd
[    4.102294] usb 1-1.3: New USB device found, idVendor=4037, idProduct=2804, bcdDevice= 1.10
[    4.117774] usb 1-1.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    4.132190] usb 1-1.3: Product: 2.4G Composite Devic
[    4.151676] input: 2.4G Composite Devic as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.0/0003:4037:2804.0002/input/input1
[    4.243456] hid-generic 0003:4037:2804.0002: input,hidraw1: USB HID v1.10 Keyboard [2.4G Composite Devic] on usb-0000:01:00.0-1.3/input0
[    4.274363] input: 2.4G Composite Devic Mouse as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.1/0003:4037:2804.0003/input/input2
[    4.302286] systemd[1]: System time before build time, advancing clock.
[    4.302855] input: 2.4G Composite Devic Consumer Control as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.1/0003:4037:2804.0003/input/input3
[    4.402981] input: 2.4G Composite Devic System Control as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.1/0003:4037:2804.0003/input/input4
[    4.432577] hid-generic 0003:4037:2804.0003: input,hidraw2: USB HID v1.10 Mouse [2.4G Composite Devic] on usb-0000:01:00.0-1.3/input1
[    4.440022] NET: Registered protocol family 10
[    4.465141] Segment Routing with IPv6
[    4.521082] systemd[1]: systemd 247.3-6 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified)
[    4.563807] systemd[1]: Detected architecture arm64.
[    4.593486] systemd[1]: Set hostname to <pi>.
[    5.180059] systemd[1]: Configuration file /etc/systemd/system/raspberrypi-fast-ts.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[    5.210099] systemd[1]: /etc/systemd/system/raspberpi@pi:~ $ rypi-fast-ts.service:5: Failed to parse service type, ignoring: Simple
[    5.276196] systemd[1]: Queued start job for default target Graphical Interface.
[    5.291991] random: systemd: uninitialized urandom read (16 bytes read)
[    5.305429] systemd[1]: Created slice system-getty.slice.
[    5.318773] random: systemd: uninitialized urandom read (16 bytes read)
[    5.331212] systemd[1]: Created slice system-modprobe.slice.
[    5.344357] random: systemd: uninitialized urandom read (16 bytes read)
[    5.356697] systemd[1]: Created slice system-serial\x2dgetty.slice.
[    5.371376] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[    5.385918] systemd[1]: Created slice User and Session Slice.
[    5.399559] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[    5.417586] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    5.435863] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    5.455220] systemd[1]: Reached target Local Encrypted Volumes.
[    5.468716] systemd[1]: Reached target Paths.
[    5.480513] systemd[1]: Reached target Slices.
[    5.492381] systemd[1]: Reached target Swap.
[    5.504833] systemd[1]: Listening on Syslog Socket.
[    5.517744] systemd[1]: Listening on fsck to fsckd communication Socket.
[    5.532190] systemd[1]: Listening on initctl Compatibility Named Pipe.
[    5.547195] systemd[1]: Listening on Journal Audit Socket.
[    5.560726] systemd[1]: Listening on Journal Socket (/dev/log).
[    5.574897] systemd[1]: Listening on Journal Socket.
[    5.594928] systemd[1]: Listening on udev Control Socket.
[    5.608417] systemd[1]: Listening on udev Kernel Socket.
[    5.621859] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[    5.640779] systemd[1]: Mounting POSIX Message Queue File System...
[    5.658229] systemd[1]: Mounting RPC Pipe File System...
[    5.675374] systemd[1]: Mounting Kernel Debug File System...
[    5.692569] systemd[1]: Mounting Kernel Trace File System...
[    5.706122] systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped.
[    5.729110] systemd[1]: Starting Restore / save the current clock...
[    5.747115] systemd[1]: Starting Set the console keyboard layout...
[    5.765355] systemd[1]: Starting Create list of static device nodes for the current kernel...
[    5.789168] systemd[1]: Starting Load Kernel Module configfs...
[    5.807555] systemd[1]: Starting Load Kernel Module drm...
[    5.825630] systemd[1]: Starting Load Kernel Module fuse...
[    5.851888] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[    5.870445] fuse: init (API version 7.32)
[    5.872374] systemd[1]: Starting File System Check on Root Device...
[    5.900662] systemd[1]: Starting Journal Service...
[    5.921623] systemd[1]: Starting Load Kernel Modules...
[    5.939511] systemd[1]: Starting Coldplug All udev Devices...
[    5.965913] systemd[1]: Mounted POSIX Message Queue File System.
[    5.980511] systemd[1]: Mounted RPC Pipe File System.
[    5.993841] systemd[1]: Mounted Kernel Debug File System.
[    5.994451] cryptd: max_cpu_qlen set to 1000
[    6.015999] systemd[1]: Mounted Kernel Trace File System.
[    6.030756] systemd[1]: Finished Restore / save the current clock.
[    6.047030] systemd[1]: Finished Create list of static device nodes for the current kernel.
[    6.067753] systemd[1]: modprobe@configfs.service: Succeeded.
[    6.079616] systemd[1]: Finished Load Kernel Module configfs.
[    6.095162] systemd[1]: modprobe@drm.service: Succeeded.
[    6.105463] i2c /dev entries driver
[    6.106803] systemd[1]: Finished Load Kernel Module drm.
[    6.126416] systemd[1]: modprobe@fuse.service: Succeeded.
[    6.137895] systemd[1]: Finished Load Kernel Module fuse.
[    6.153154] systemd[1]: Finished File System Check on Root Device.
[    6.168971] systemd[1]: Finished Load Kernel Modules.
[    6.187113] systemd[1]: Mounting FUSE Control File System...
[    6.204508] systemd[1]: Mounting Kernel Configuration File System...
[    6.222327] systemd[1]: Started File System Check Daemon to report status.
[    6.241011] systemd[1]: Starting Remount Root and Kernel File Systems...
[    6.259152] systemd[1]: Starting Apply Kernel Variables...
[    6.280853] systemd[1]: Mounted FUSE Control File System.
[    6.316703] systemd[1]: Started Journal Service.
[    6.379689] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    6.430160] systemd-journald[146]: Received client request to flush runtime journal.
[    6.447361] systemd-journald[146]: File /var/log/journal/0df421e458414c9a95afde07089aaaf1/system.journal corrupted or uncleanly shut down, renaming and replacing.
[    7.314692] rpivid-mem feb00000.hevc-decoder: rpivid-hevcmem initialised: Registers at 0xfeb00000 length 0x00010000
[    7.315273] rpivid-mem feb10000.rpivid-local-intc: rpivid-intcmem initialised: Registers at 0xfeb10000 length 0x00001000
[    7.320943] rpivid-mem feb20000.h264-decoder: rpivid-h264mem initialised: Registers at 0xfeb20000 length 0x00010000
[    7.321607] rpivid-mem feb30000.vp9-decoder: rpivid-vp9mem initialised: Registers at 0xfeb30000 length 0x00010000
[    7.366386] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    7.372851] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    7.374732] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[    7.374759] [vc_sm_connected_init]: start
[    7.378985] mc: Linux media interface: v0.10
[    7.381670] bcm2835_audio bcm2835_audio: card created with 4 channels
[    7.383408] [vc_sm_connected_init]: installed successfully
[    7.420927] bcm2835_audio bcm2835_audio: card created with 4 channels
[    7.436020] videodev: Linux video capture interface: v2.00
[    7.458985] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    7.461977] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    7.467134] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[    7.470942] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[    7.474430] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[    7.486739] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[    7.487650] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[    7.489811] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[    7.489859] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[    7.491270] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[    7.491688] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[    7.491716] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    7.491736] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    7.491754] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    7.491777] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    7.492179] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[    7.492217] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[    7.496958] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video20
[    7.497033] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[    7.497083] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[    7.500295] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video21
[    7.501775] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
[    7.501828] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx
[    7.508704] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video22
[    7.510778] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video23
[    7.510814] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    7.510836] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    7.510855] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    7.510872] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    7.511309] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[    7.590753] i2c i2c-22: Added multiplexed i2c bus 0
[    7.591247] i2c i2c-22: Added multiplexed i2c bus 10
[    7.668800] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 0
[    7.755169] checking generic (3ea29000 1d1000) vs hw (0 ffffffffffffffff)
[    7.755194] fb0: switching to vc4drmfb from simple
[    7.755697] Console: switching to colour dummy device 80x25
[    7.757383] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    7.760775] vc4-drm gpu: bound fe600000.firmwarekms (ops vc4_fkms_ops [vc4])
[    7.767486] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 1
[    7.776150] Console: switching to colour frame buffer device 185x20
[    7.795593] vc4-drm gpu: [drm] fb0: vc4drmfb frame buffer device
[    7.799605] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    7.857420] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[    7.905514] brcmfmac: F1 signature read @0x18000000=0x15264345
[    7.944714] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    7.945813] usbcore: registered new interface driver brcmfmac
[    8.028964] input: WaveShare WaveShare as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2/1-1.2:1.0/0003:0712:0009.0001/input/input5
[    8.029544] hid-multitouch 0003:0712:0009.0001: input,hidraw0: USB HID v1.11 Device [WaveShare WaveShare] on usb-0000:01:00.0-1.2/input0
[    8.195225] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    8.195404] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    8.202631] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Nov  1 2021 00:37:25 version 7.45.241 (1a2f2fa CY) FWID 01-703fd60
[    8.302677] random: crng init done
[    8.302700] random: 7 urandom warning(s) missed due to ratelimiting
[    9.058126] uart-pl011 fe201000.serial: no DMA platform data
[    9.286678] Adding 102396k swap on /var/swap.  Priority:-2 extents:2 across:110588k SSFS
[    9.493805] 8021q: 802.1Q VLAN Support v1.8
[    9.793374] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[    9.888909] ieee80211 phy0: brcmf_cfg80211_reg_notifier: Firmware rejected country setting
[    9.969689] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[    9.970138] bcmgenet fd580000.ethernet eth0: Link is Down
[   15.741921] Bluetooth: Core ver 2.22
[   15.742055] NET: Registered protocol family 31
[   15.742068] Bluetooth: HCI device and connection manager initialized
[   15.742095] Bluetooth: HCI socket layer initialized
[   15.742114] Bluetooth: L2CAP socket layer initialized
[   15.742146] Bluetooth: SCO socket layer initialized
[   15.753699] Bluetooth: HCI UART driver ver 2.3
[   15.753722] Bluetooth: HCI UART protocol H4 registered
[   15.753837] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   15.754177] Bluetooth: HCI UART protocol Broadcom registered
[   16.055767] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   16.055778] Bluetooth: BNEP filters: protocol multicast
[   16.055789] Bluetooth: BNEP socket layer initialized
[   16.068050] NET: Registered protocol family 38
[   16.483003] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   16.492663] ieee80211 phy0: brcmf_cfg80211_reg_notifier: Firmware rejected country setting
[   21.382202] systemd-journald[146]: File /var/log/journal/0df421e458414c9a95afde07089aaaf1/user-1000.journal corrupted or uncleanly shut down, renaming and replacing.
[   33.758651] cam-dummy-reg: disabling
[   33.758680] cam1-reg: disabling
ardera commented 2 years ago

Can you try commenting out the hdmi_force_hotplug, hdmi_mode, hdmi_group & hdmi_timings config options? I know the wiki for the display says you need those but I'm not sure how those work in combination with full KMS, could be they cause some problems. If you really need to force some specific timings there are other ways to do that for full KMS

(note: full KMS is the vc4-kms-v3d overlay, vc4-fkms-v3d means fake-KMS or firmware-KMS)

iboldurev commented 2 years ago

If i comment lines

hdmi_group=2 hdmi_mode=87 hdmi_timings=320 0 80 16 32 1480 0 16 4 12 0 0 0 60 0 42000000 3

Then the screen does not start, only the backlight is visible, but if I run the application in the console, there are no errors.

ardera commented 2 years ago

that basically means your display has a broken EDID (hdmi_timings etc is a workaround for that)

You can try adding a video=HDMI-A-1:320x1480@62 parameter (again, with commented out hdmi_* in config.txt) to /boot/cmdline.txt. If that doesn't work you can try forcing a custom edid with the correct timings set. (See here, section forcing modes and EDID)

Other than that, I can add some commandline options to force a specific mode, but not sure when I'll get to that.

iboldurev commented 2 years ago

Hi, @ardera everything worked when i added video=HDMI-A-1:320x1480@62,rotate=90 and comment all hdmi_*

but I faced a new problem (artifacts on the screen)

flutter-pi -o landscape_right /home/pi/testapp

photo_2022-02-20 16 31 38

photo_2022-02-20 16 31 36

flutter-pi -o landscape_left /home/pi/testapp

photo_2022-02-20 16 40 01

ardera commented 2 years ago

Seems like something about the timings is still off. If you just put video=HDMI-A-1:320x1480@62, KMS will calculate some default timings (you can calculate them yourself here) which don't match what the panel expects, at least when looking at the values for the hdmi_timings command.

Not sure how you specify custom timings for a HDMI display though. I think you can only specify custom timings by editing the EDID

iboldurev commented 2 years ago

This my display https://www.waveshare.com/wiki/11.9inch_HDMI_LCD

in docs I found this line Working with Raspberry P

max_framebuffer_height=1480 max_usb_current=1 hdmi_group=2 hdmi_mode=87 hdmi_timings=320 0 80 16 32 1480 0 16 4 12 0 0 0 60 0 42000000 3

Now I use hdmi_timings=320 0 80 16 32 1480 0 16 4 12 0 0 0 60 0 42000000 3

https://user-images.githubusercontent.com/17103170/154847745-f31808d2-189c-4a2a-8eb2-aaf86172f6d3.jpeg

my cmdline.text

video=HDMI-A-1:320x1480@62,rotate=90

and config.txt

dtoverlay=vc4-kms-v3d max_framebuffers=2

[all] hdmi_timings=320 0 80 16 32 1480 0 16 4 12 0 0 0 60 0 42000000 3

hdmi_timings=
<h_active_pixels>320 
<h_sync_polarity>0 
<h_front_porch>80 
<h_sync_pulse>16 
<h_back_porch>32 
<v_active_lines>1480 
<v_sync_polarity>0 
<v_front_porch>16 
<v_sync_pulse>4 
<v_back_porch>12 
<v_sync_offset_a>0 
<v_sync_offset_b>0 
<pixel_rep>0 
<frame_rate>60 
<interlaced>0 
<pixel_freq>42000000 
<aspect_ratio>3
iboldurev commented 2 years ago

My EDID

edid-decode (hex):

00 ff ff ff ff ff ff 00 21 94 24 1f 0a 00 00 00
1c 1e 01 03 80 94 30 78 0a 0d c9 a0 57 47 98 27
12 48 4c 00 00 00 01 01 01 01 01 01 01 01 01 01
01 01 01 01 01 01 68 10 40 8d 10 c8 20 50 3c 17
04 04 80 38 74 00 00 18 c8 19 40 97 11 c8 20 50
59 04 04 44 80 38 74 00 00 18 00 00 00 fc 00 57
61 76 65 53 68 61 72 65 20 20 20 20 00 00 00 fd
00 14 78 01 ff 1d 00 0a 20 20 20 20 20 20 01 ee

02 03 1a 71 47 00 00 00 00 00 00 00 23 09 07 01
83 01 00 00 65 03 0c 00 10 00 c8 19 40 97 11 c8
20 50 59 04 04 44 80 38 74 00 00 18 c8 19 40 97
11 c8 20 50 59 04 04 44 80 38 74 00 00 18 c8 19
40 97 11 c8 20 50 59 04 04 44 80 38 74 00 00 18
c8 19 40 97 11 c8 20 50 59 04 04 44 80 38 74 00
00 18 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45

----------------

Block 0, Base EDID:
  EDID Structure Version & Revision: 1.3
  Vendor & Product Identification:
    Manufacturer: HLT
    Model: 7972
    Serial Number: 10
    Made in: week 28 of 2020
  Basic Display Parameters & Features:
    Digital display
    Maximum image size: 148 cm x 48 cm
    Gamma: 2.20
    RGB color display
    First detailed timing is the preferred timing
  Color Characteristics:
    Red  : 0.6250, 0.3398
    Green: 0.2802, 0.5947
    Blue : 0.1552, 0.0703
    White: 0.2832, 0.2978
  Established Timings I & II: none
  Standard Timings: none
  Detailed Timing Descriptors:
    DTD 1:   320x1480   60.255483 Hz   8:37    91.106 kHz     42.000000 MHz (1920 mm x 1080 mm)
                 Hfront   60 Hsync  23 Hback   58 Hpol N
                 Vfront   16 Vsync   4 Vback   12 Vpol N
    DTD 2:   320x1480   60.042357 Hz   8:37    90.784 kHz     66.000000 MHz (1920 mm x 1080 mm)
                 Hfront  345 Hsync   4 Hback   58 Hpol N
                 Vfront   16 Vsync   4 Vback   12 Vpol N
    Display Product Name: 'WaveShare    '
    Display Range Limits:
      Monitor ranges (GTF): 20-120 Hz V, 1-255 kHz H, max dotclock 290 MHz
  Extension blocks: 1
Checksum: 0xee

----------------

Block 1, CTA-861 Extension Block:
  Revision: 3
  Basic audio support
  Supports YCbCr 4:4:4
  Supports YCbCr 4:2:2
  Native detailed modes: 1
  Video Data Block:
  Audio Data Block:
    Linear PCM:
      Max channels: 2
      Supported sample rates (kHz): 48 44.1 32
      Supported sample sizes (bits): 16
  Speaker Allocation Data Block:
    FL/FR - Front Left/Right
  Vendor-Specific Data Block (HDMI), OUI 00-0C-03:
    Source physical address: 1.0.0.0
  Detailed Timing Descriptors:
    DTD 3:   320x1480   60.042357 Hz   8:37    90.784 kHz     66.000000 MHz (1920 mm x 1080 mm)
                 Hfront  345 Hsync   4 Hback   58 Hpol N
                 Vfront   16 Vsync   4 Vback   12 Vpol N
    DTD 4:   320x1480   60.042357 Hz   8:37    90.784 kHz     66.000000 MHz (1920 mm x 1080 mm)
                 Hfront  345 Hsync   4 Hback   58 Hpol N
                 Vfront   16 Vsync   4 Vback   12 Vpol N
    DTD 5:   320x1480   60.042357 Hz   8:37    90.784 kHz     66.000000 MHz (1920 mm x 1080 mm)
                 Hfront  345 Hsync   4 Hback   58 Hpol N
                 Vfront   16 Vsync   4 Vback   12 Vpol N
    DTD 6:   320x1480   60.042357 Hz   8:37    90.784 kHz     66.000000 MHz (1920 mm x 1080 mm)
                 Hfront  345 Hsync   4 Hback   58 Hpol N
                 Vfront   16 Vsync   4 Vback   12 Vpol N
Checksum: 0x45
ardera commented 2 years ago

Can you try to edit the EDID and only leave one detailed timing descriptor that has the same timings as hdmi_timings=320 0 80 16 32 1480 0 16 4 12 0 0 0 60 0 42000000 3 and then force it, similar to these instructions

BigGitWorld commented 2 years ago

@iboldurev Did you solve the problem? I have a similar problem and at first I want to test the above recommended solutions. I hope that work for me and will report the result here.

iboldurev commented 2 years ago

Hi @BigGitWorld, no

if you can fix it let me know

github-actions[bot] commented 1 year ago

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens and logs. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.