agherzan / meta-raspberrypi

Yocto/OE BSP layer for the Raspberry Pi boards
https://www.yoctoproject.org/
MIT License
520 stars 407 forks source link

PI4 mirror connect to two HDMI screens, the second screen x11 display range is smaller than the first one #1110

Open gitgonewithwind opened 1 year ago

gitgonewithwind commented 1 year ago

Hi all, sorry to bother you again. I use meta-raspberrypi commit e1014d41ef459af807f95cb7ff9105f077bc6daa in yocto for pi4 64bit on pi4 hardware version 1.4. for my application. I connect 2 same screens liliput 15.6" ( I tested 2 advantech screens ,same issue) at same time. the first hdmi port display works well that the x11 diplay edge is almost at the frame hardware edge , but the second hdmi port display range is a little smaller than the first one, the display is not full,there is a gap . I hope the two screens display are same as mirror. see attached picture. IMG_20221118_090701

so I tested like that, if I ONLY connect 1 screen individually. the two ports work well. the display no gap.
but at same time, I connected 2 screens . the issue happened.

I used image 2022-09-22-raspios-bullseye-arm64.img.xz from raspberry company to test. there is no error, the 2 display ranges are same. but the dispalys are not mirror. the first one has menu. I tried to set mirror dispplay, but can not be successful. anyway, image 2022-09-22-raspios-bullseye-arm64.img.xz shows the two HDMI ports can work well.

the below is my /etc/X11/xorg.conf.d/10-monitor.conf . the config file is correct. I think.

any help? thank you so much.

cat 10-monitor.conf Section "Monitor"
Identifier "HDMI-1"

    Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

EndSection

Section "Screen"
Identifier "Screen0"
Device "HDMI-1"
Monitor "HDMI-1"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1920x1080_60.00" EndSubSection
EndSection

Section "Monitor" Identifier "HDMI-2"

    Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

EndSection

Section "Screen" Identifier "Screen2" Device "HDMI-2" Monitor "HDMI-2" DefaultDepth 24 SubSection "Display" Depth 24 Modes "1920x1080_60.00" EndSubSection EndSection

gitgonewithwind commented 1 year ago

Hi all, I just build a few days ago, updated meta-raspberrypi commit 93dadf336ce11e3ed3ba75c7638b57fad60d6fdb (HEAD -> master, origin/master, origin/HEAD) Author: Martin Jansa Martin.Jansa@gmail.com Date: Mon Nov 7 12:52:06 2022 +0100

the issues are same. the default x11 settings(some where to set??) make hdmi-2 as extension to display not mirror. but the display is still smaller than the hdmi-1. I added file /etc/X11/xorg.conf.d/10-monitor.conf as upper, it changes to mirror, but the issue is still there. any help? the issue is x11 setting or somewhere ???