![双显示 X Windows 配置臂](https://linux22.com/image/112912/%E5%8F%8C%E6%98%BE%E7%A4%BA%20X%20Windows%20%E9%85%8D%E7%BD%AE%E8%87%82.png)
我正在 imx6 (Congatech Q7) 手臂(4.1 内核,Xorg 1.18 模块版本 2.10.1)上构建 Linux 发行版(通过 Yocto)我有两个连接在 LVDS 上的 800x480 显示器。我已成功配置硬件以通过 X 进行镜像运行。它运行起来非常出色。
我需要独立运行显示器。我可以用 X 单独调出其中任何一个。硬件只有 1 个图形加速器,所以我需要使用老式的 fb 设备。
如果我不启动 XI,则可以成功地从 fb 设备(fb0 和 fb2)来回复制图像。所以我很确定这些设备没问题。
当我配置 fbdev 时(使用与大小加速相同的选项。它报告的大小为 211x127。大小为 800x480。
我已经不知道接下来该看什么了,我希望社区中有人以前遇到过这个问题。
[3254904.461] (II) VIVANTE(0):将屏幕物理尺寸设置为 211 x 127
Xorg.0.log 的片段
[3254904.080] (II) VIVANTE(0): [drm] Using the DRM lock SAREA also for drawables
[3254904.080] (II) VIVANTE(0): [drm] framebuffer handle = 0x44800000
[3254904.080] (II) VIVANTE(0): [drm] added 1 reserved context for kernel
[3254904.080] (II) VIVANTE(0): X context handle = 0x1
[3254904.080] (II) VIVANTE(0): [drm] installed DRM signal handler
[3254904.081] (II) VIVANTE(0): [DRI] installation complete
[3254904.081] (--) RandR disabled
[3254904.118] (II) AIGLX: Screen 0 is not DRI2 capable
[3254904.118] (EE) AIGLX: reverting to software rendering
[3254904.460] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[3254904.461] (II) AIGLX: Loaded and initialized swrast
[3254904.461] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[3254904.461] (II) VIVANTE(0): Setting screen physical size to 211 x 127
我的 xorg.conf 文件:
Section "Device"
Identifier "fbB"
Driver "fb"
Option "fbdev" "/dev/fb0"
Option "vivante_fbdev" "/dev/fb0"
Option "HWcursor" "false"
Screen 1
EndSection
Section "Device"
Identifier "fbA"
Driver "vivante"
Option "fbdev" "/dev/fb2"
Option "vivante_fbdev" "/dev/fb2"
Option "HWcursor" "false"
Screen 0
EndSection
Section "Monitor"
Identifier "MonAlpha"
Modeline "U:800x480p-59" 33.26 800 840 968 1056 480 490 492 525 -hsync -vsync -csync
EndSection
Section "Monitor"
Identifier "MonBeta"
Modeline "U:800x480p-59" 33.26 800 840 968 1056 480 490 492 525 -hsync -vsync -csync
EndSection
Section "Screen"
Identifier "ScreenAlpha"
Monitor "MonAlpha"
Device "fbA"
Subsection "Display"
Modes "U:800x480p-59"
EndSubSection
EndSection
Section "Screen"
Identifier "ScreenBeta"
Monitor "MonBeta"
Device "fbB"
Subsection "Display"
Modes "U:800x480p-59"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Main Layout"
Screen 0 "ScreenAlpha"
Screen 1 "ScreenBeta" Absolute 0 480
EndSection
Section "ServerFlags"
Option "BlankTime" "0"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
EndSection