21.10 双屏停止工作

21.10 双屏停止工作

我在华硕主板上运行 Xubuntu 21.10,带有原装内核(5.13.0-20)。内置英特尔 DVI 输出,以及带 HDMI 的 GeForce GT 430 卡。

我已经设置了很长时间,我的控制台上的 Intel DVI 显示 :0.0,连接到电视的 GT430 HDMI 显示 :0.1。一切都运行正常,直到最近,重启后没有 HDMI 输出,实际上根本没有显示 :0.1。

我搜索了网络,找到了很多不同的答案,包括使用 NVIDIA 驱动程序,但都不起作用。请帮忙:我的伴侣想念她的电视!

xrandr 仅显示控制台:

xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1920 x 1080, current 1920 x 1080, maximum 1920 x 1080
default connected 1920x1080+0+0 0mm x 0mm
   1920x1080     77.00* 

/etc/X11/xorg.conf 的相关部分:

Section "Monitor"
    Identifier      "ViewSonic-console"
    VendorName      "ViewSonic"
    ModelName       "VX2439 Series"
EndSection

Section "Monitor"
    Identifier      "Panasonic-TV"
    VendorName      "Panasonic"
    ModelName       "TH-42A410Z"
EndSection

Section "Device"
    Identifier      "IntelGPU-DVI"
    Driver          "intel"
EndSection

Section "Device"
    Identifier      "Asus-GT430-HDMI"
    Driver          "nouveau"
EndSection

Section "Screen"
    Identifier      "Screen-Console"
    Device          "IntelGPU-DVI"
    Monitor         "ViewSonic-console"
EndSection

Section "Screen"
    Identifier      "Screen-TV"
    Device          "Asus-GT430-HDMI"
    Monitor         "Panasonic-TV"
EndSection

Section "ServerLayout"
    Identifier      "Layout-normal"
    Screen          0               "Screen-Console"
    Screen          1               "Screen-TV"
    InputDevice     "Keyboard0"     "CoreKeyboard"
    InputDevice     "Mouse0"        "CorePointer"
EndSection

要求的输出:

$ xrandr --listproviders
Providers: number : 0

$ xrandr --query
Screen 0: minimum 0 x 0, current 1536 x 864, maximum 32768 x 32768
default connected primary 1536x864+0+0 406mm x 228mm
   1536x864       0.00*

此外,以下几行/var/log/Xorg.0.log可能相关:

(II) NOUVEAU driver Date:   Sat Jan 23 12:24:42 2021 -0500
(II) NOUVEAU driver for NVIDIA chipset families :
...
    GeForce GTX 4xx/5xx (GFxxx)
...
(EE) [drm] Failed to open DRM device for pci:0000:01:00.0: -19
(EE) [drm] Failed to open DRM device for pci:0000:01:00.0: -19
(EE) No devices detected.

答案1

原来是电视机的间歇性故障,有时无法提供 EDID,导致默认显示分辨率错误,最终无法识别输出。我通过在启动命令行上提供“预设”EDID 来解决这个问题。

相关内容