[MX8-DSI-OLED1] Display aspect ratio is wrong

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

[MX8-DSI-OLED1] Display aspect ratio is wrong

跳至解决方案
1,535 次查看
Takashi_Kashiwagi
Senior Contributor I

Hi everyone.

I have using "MIMX8MQ-EVK" with "fsl-image-qt5-validation-imx".

When I used HDMI, The aspect ratio was normal.

But when using MX8 - DSI - OLED 1, the aspect ratio was wrong as below.

Q. How can I adjust the aspect ratio?

IMG_3764.JPG

I used "fsl-imx8mq-evk-dcss-rm67191.dtb" and I modified "/etc/xdg/weston/weston.ini".

I can rotate the window, but aspect ratio is still wrong.

Am I misunderstanding?

weston.ini is as follows.

root@imx8mqevk:/sys/class/drm/card0# more /etc/xdg/weston/weston.ini
[core]
# i.MX: Disable idle timeout
idle-time=0
#use-g2d=1
gbm-format=argb8888
[libinput]
touchscreen_calibrator=true
[output]
name=DSI-1
mode=1920x1080@60 16:9
#mode=1080x1920@60
transform=90
[shell]
size=1920x1080
#[output]
#name=HDMI-A-2
#mode=off
#       WIDTHxHEIGHT    Resolution size width and height in pixels
#       off             Disables the output
#       preferred       Uses the preferred mode
#       current         Uses the current crt controller mode
#transform=90

Best Regards,

T.Kashiwagi

标记 (1)
1 解答
1,207 次查看
Takashi_Kashiwagi
Senior Contributor I

Hi Joan

Thank you for responding!

JUST NOW, I was able to solve the problem using the following weston.ini

Apparently, if I declare the output section and the shell section at the same time, the aspect ratio becames to be wrong.

root@imx8mqevk:~# more /etc/xdg/weston/weston.ini
[core]
# i.MX: Disable idle timeout
idle-time=0
#use-g2d=1
gbm-format=argb8888
[libinput]
touchscreen_calibrator=true
[output]
name=DSI-1
mode=1920x1080@60 16:9
#mode=1080x1920@60
transform=90
#[shell]
#size=1920x1080
#[output]
#name=HDMI-A-2
#mode=off
#       WIDTHxHEIGHT    Resolution size width and height in pixels
#       off             Disables the output
#       preferred       Uses the preferred mode
#       current         Uses the current crt controller mode
#transform=90
[screen-share]
command=/usr/bin/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --n
o-clients-resize
root@imx8mqevk:~#

enabe [shell] section. (The upper right time is NOT displayed.)

IMG_3767.JPG

disable [shell] section. (The upper right time is displayed.)

IMG_3768.JPG

Best Regards,

T.Kashiwagi

在原帖中查看解决方案

0 项奖励
2 回复数
1,207 次查看
joanxie
NXP TechSupport
NXP TechSupport

I tested the OLED, didn't find any aspect ratio issue, if you don't change westion, still has this issue?pls check the uboot command, you can change the uboot command to get the correct aspect ration you want to get

1,208 次查看
Takashi_Kashiwagi
Senior Contributor I

Hi Joan

Thank you for responding!

JUST NOW, I was able to solve the problem using the following weston.ini

Apparently, if I declare the output section and the shell section at the same time, the aspect ratio becames to be wrong.

root@imx8mqevk:~# more /etc/xdg/weston/weston.ini
[core]
# i.MX: Disable idle timeout
idle-time=0
#use-g2d=1
gbm-format=argb8888
[libinput]
touchscreen_calibrator=true
[output]
name=DSI-1
mode=1920x1080@60 16:9
#mode=1080x1920@60
transform=90
#[shell]
#size=1920x1080
#[output]
#name=HDMI-A-2
#mode=off
#       WIDTHxHEIGHT    Resolution size width and height in pixels
#       off             Disables the output
#       preferred       Uses the preferred mode
#       current         Uses the current crt controller mode
#transform=90
[screen-share]
command=/usr/bin/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --n
o-clients-resize
root@imx8mqevk:~#

enabe [shell] section. (The upper right time is NOT displayed.)

IMG_3767.JPG

disable [shell] section. (The upper right time is displayed.)

IMG_3768.JPG

Best Regards,

T.Kashiwagi

0 项奖励