LCD Portrait Setting

Hardware:
Colibri iMX6DL
with Viola Carrier Board Rev 1.2
TorizonCore 5.7.2

image

Hi,
We have 240x320 18bpp LCD display.
Running the example Weston docker container, we can see the following image on the screen…

Looks like the some setting is correct, but not sure which one(s) to change.

  1. The device overlay tree is set as:
width-mm = <44>;
	height-mm = <58>;

	panel-timing {
		clock-frequency = <6350000>;
		hactive = <240>;
		vactive = <320>;
		hsync-len = <10>;
		hfront-porch = <10>;
		hback-porch = <20>;
		vsync-len = <2>;
		vfront-porch = <4>;
		vback-porch = <2>;
		pixelclk-active = <1>;
	 };
  1. fbset returns:
mode "240x320-0"
        # D: 0.000 MHz, H: 0.000 kHz, V: 0.000 Hz
        geometry 240 320 240 320 16
        timings 0 0 0 0 0 0 0
        accel true
        rgba 5/11,6/5,5/0,0/0
endmode
  1. The weston.ini file is set as
[core]
idle-time=0
require-input=false
xwayland=true
modules=screen-share.so
# uncomment line below to use kiosk shell
#shell=kiosk-shell.so

[shell]
background-image=
background-color=0x00000000
panel-position=none
locking=false
allow-zap=false
num-workspaces=1

[keyboard]
vt-switching=false

# uncomment the [output] line below if you set any output configuration
[output]
# you must uncomment the "name” line and provide the name of the output interface being customized, otherwise, changes will not apply
name=DPI-1
# uncomment line below to configure screen rotation/flipping
#transform=rotate-90
# uncomment line below to redirect the output; supported by kiosk shell
#app-ids=my-app-id
# uncomment line below to turn off the output
#mode=off
# uncomment line below to set an output resolution. Run for example 'cat /sys/class/drm/card1-HDMI-A-1/modes' to list the available modes.
mode=240x320@69.1
# or use the more detailed (mode=dotclock hdisp hsyncstart hsyncend htotal vdisp vsyncstart vsyncend vtotal hflag vflag)
#mode=146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync
# uncomment line below to make this output a clone of another
#same-as=DPI-1

#For multi-display support and other configurations, please read the article: https://developer.toradex.com/knowledge-base/working-with-weston-on-torizoncore

Is there any other settings we should check?

Cheers Jon

Hi @jon2023 !

Could you please share the output of tdx-info? (reference: Getting Device Information with Tdx-Info | Toradex Developer Center)

About the issue with the image on the display, you must use the information from the timings of the display’s datasheet. Did you double-check them?

Also, are you sure you need to add that mode property on weston.ini’s output section?

Best regards,

Hi Henrique,

Good to hear from yourself.

Here’s the details from running the tdx-info command…

Connecting to raw.githubusercontent.com (185.199.108.133:443)
wget: note: TLS certificate validation not implemented
saving to 'tdx-info'
tdx-info             100% |****************************************************| 10774  0:00:00 ETA
'tdx-info' saved
Password: 

Software summary
Kernel version:           5.4.193-5.7.2+git.f5d73fd6e9f8 #1-TorizonCore SMP Fri Jun 24 10:15:32 UTC 2022
Kernel command line:      enable_wait_mode=off galcore.contiguousSize=50331648 root=LABEL=otaroot rootfstype=ext4 quiet logo.nologo vt.global_cursor_default=0 plymouth.ignore-serial-consoles splash fbcon=map:3 ostree=/ostree/boot.0/torizon/890fd83dd070627f985fee681040211a9cee82ae1f6f8e64a2588065e1279a26/0
Distro name:              NAME="TorizonCore Upstream"
Distro version:           VERSION_ID=5.7.2-build.20
Distro variant:           VARIANT="Docker"
Hostname:                 colibri-imx6-11096746
------------------------------------------------------------

Hardware info
------------------------------------------------------------
HW model:                 Toradex Colibri iMX6DL/S on Colibri Evaluation Board V3
Toradex version:          0017 V1.1B
Serial number:            11096746
Processor arch:           armv7l
------------------------------------------------------------







Device tree
------------------------------------------------------------
Device tree enabled:      imx6dl-colibri-eval-v3.dtb
Compatible string:        toradex,colibri_imx6dl-eval-v3toradex,colibri_imx6dlfsl,imx6dl
Device trees available:   imx6dl-colibri-eval-v3.dtb
------------------------------------------------------------

Device tree overlays
------------------------------------------------------------
Overlays enabled:         fdt_overlays=colibri-imx6_parallel-rgb_overlay.dtbo display-lcd2.8_overlay.dtbo
Overlays available:
                          colibri-imx6_atmel-mxt-adapter_overlay.dtbo
                          colibri-imx6_atmel-mxt-connector_overlay.dtbo
                          colibri-imx6_hdmi_overlay.dtbo
                          colibri-imx6_parallel-rgb-lvds_overlay.dtbo
                          colibri-imx6_parallel-rgb_overlay.dtbo
                          colibri-imx6_stmpe-ts_overlay.dtbo
                          display-dpi-lt170410_overlay.dtbo
                          display-edt5.7_overlay.dtbo
                          display-edt7_overlay.dtbo
                          display-fullhd_overlay.dtbo
                          display-lcd2.8_overlay.dtbo
                          display-lt161010_overlay.dtbo
                          display-lt170410_overlay.dtbo
                          display-vga_overlay.dtbo
------------------------------------------------------------

i) I will double check the datasheet timings
ii) Not sure if the mode property is required. There seems to be only one supported mode (240x320), so I would guess it would default to that. I can try without it, and see if it makes any difference.

Best Regards
Jon