22.04 第二个监视器在登录或唤醒时丢失

Mat*_*hew 7 multiple-monitors suspend intel-graphics wayland 22.04

刚刚升级到22.04。我连接了 2 台相同的显示器(连接到 MB,使用 Intel 显卡,一台使用 HDMI,一台使用 DisplayPort)并遇到以下问题:

  • 开机时两台显示器都会唤醒并显示 MB 徽标(镜像)
  • 在登录屏幕上,两个监视器均被单独检测 - 即我在其中一个监视器上看到登录信息,但可以将鼠标光标移动到另一个监视器
  • 一旦我登录,第二个就消失了,我只有一个
  • 在“显示”设置中,将其设置为“单一显示”。然后我可以将其更改回“加入显示”以恢复第二个
  • 显示器睡眠也是如此 - 当我唤醒它时,我需要重新启用第二个显示器

当我使用 Xorg 时,我在 20.04 中偶尔遇到这个问题 - 但它现在与 22.04 wayland 非常一致(我想使用 Wayland,因为它解决了屏幕撕裂问题)。

有什么想法吗?我的第二个显示器实际上是纵向的并且有偏移,所以每次都重置它真的很笨重。

Man*_*oon 2

首先使用“设置”>“设备”>“显示”根据需要设置显示模式
,然后打开终端并剪切并粘贴下面的行。它在 20.04 和 22.04 对我有用。原帖链接JD

如果您看到错误消息,则可能是监视器.xml 的位置,您可以在链接中找到替代方案。

sudo cp ~/.config/monitors.xml /var/lib/gdm3/.config


小智 0

你只需要将以下内容放入 /etc/X11/xorg.conf 中,注销并重新登录,它就会起作用。

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "i915"
    VendorName     "UHD Graphics 750"
    BusID          "PCI:0:0:2"
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
Run Code Online (Sandbox Code Playgroud)