第三屏支持问题

第三屏支持问题

我在跑步Ubuntu 22.0.4.1 LTS x86_64具有 3 个逻辑连接的屏幕,如下所示:

Screen 0: minimum 8 x 8, current 5600 x 1920, maximum 32767 x 32767
DP-0 connected 1080x1920+4520+0 right (normal left inverted right x axis y axis) 527mm x 296mm
   1920x1080     60.00*+  74.97    59.94    50.00  
   1680x1050     59.95  
   1440x900      59.89  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x720      60.00    59.94    50.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94    59.93  
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected 3440x1440+1080+480 (normal left inverted right x axis y axis) 800mm x 335mm
   3440x1440     59.97*+  74.98    29.99  
   2560x1080     59.98    59.94    50.00  
   1920x1080     60.00    59.94    50.00  
   1720x1440     59.94  
   1680x1050     59.95  
   1440x900      59.89  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x720      60.00    59.94    50.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94    59.93  
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 connected primary 1080x1920+0+0 left (normal left inverted right x axis y axis) 527mm x 296mm
   1920x1080     60.00*+  74.97    59.94    50.00  
   1680x1050     59.95  
   1440x900      59.89  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x720      60.00    59.94    50.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94    59.93  

对于驱动程序,我正在运行 NVIDIA 的最新测试版本,如下所示:

  *-display                 
       description: VGA compatible controller
       product: TU104 [GeForce RTX 2070 SUPER]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:149 memory:53000000-53ffffff memory:40000000-4fffffff memory:50000000-51ffffff ioport:3000(size=128) memory:c0000-dffff
  *-graphics
       product: EFI VGA
       physical id: 4
       logical name: /dev/fb0
       capabilities: fb
       configuration: depth=32 resolution=1024,768

启动后,我会看到 2总是HDMI-0屏幕不乱动就无法工作。有时只需在“设置-显示”中移动方向即可,有时此命令有效:

sleep 5 && xrandr -d :1 --output HDMI-0 --auto

第三个屏幕始终在 NVIDIA 控制和设置中注册xrandr,但就是不打开(“黑屏”)。查找日志时,我找不到错误(/var/log/syslog),如下所示:

Aug 29 06:48:56 therion /usr/libexec/gdm-x-session[3560]: (II) NVIDIA(0): Setting mode "DP-4: nvidia-auto-select @1080x1920 +0+0 {ViewPortIn=1080x1920, ViewPortOut=1920x1080+0+0, Rotation=90}, DP-0: nvidia-auto-select @1080x1920 +4520+0 {ViewPortIn=1080x1920, ViewPortOut=1920x1080+0+0, Rotation=270}, HDMI-0: nvidia-auto-select @3440x1440 +1080+480 {ViewPortIn=3440x1440, ViewPortOut=3440x1440+0+0}"

最后,dmesg仅解决一些错误,例如:

[48033.822745] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership

(不过此时,屏幕曾是在职的)

我可以使用哪些日志或流程来诊断为什么一个屏幕偶尔不工作?我注意到进入睡眠状态和解锁有时也能解决我的问题。

相关内容