问题
现在已从 20.04 LTS 升级到 23.04:笔记本电脑上的主显示器不工作。Thunderbolt 4 底座上的三个显示器中只有一个可以使用。我在底座上使用两个 DisplayPort 和一个 HDMI,所有端口都连接到显示器上的 HDMI。如果我使用笔记本电脑上的 HDMI 端口,我可以让另一个显示器工作。
我之前一直使用 NVIDIA 530 驱动程序,但由于某种原因,23.04 没有该驱动程序,所以现在使用 525。
目标
让所有三个外接显示器都工作。另外,如果有笔记本电脑屏幕就更好了。
涉及硬件。
联想 P15 工作站 A2000
https://ubuntu.com/certified/202108-29350
https://psref.lenovo.com/syspool/Sys/PDF/ThinkPad/ThinkPad_P15_Gen_2/ThinkPad_P15_Gen_2_Spec.pdf
三台戴尔 P2721Q 4k 显示器。
https://www.dell.com/ae/business/p/dell-p2721q-monitor/pd
ThinkPad Thunderbolt 4 工作站底座 - 美国(最新固件)
电缆
https://www.amazon.com/dp/B08FBGNR8C?ref=ppx_yo2ov_dt_b_product_details&th=1 https://www.amazon.com/dp/B07WNM2NJ5?psc=1&ref=ppx_yo2ov_dt_b_product_details
系统信息
$ uname -r
6.2.0-20-generic
#sudo nvidia-smi
Fri May 12 20:21:10 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.105.17 Driver Version: 525.105.17 CUDA Version: 12.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA RTX A200... Off | 00000000:01:00.0 On | N/A |
| N/A 49C P8 10W / 60W | 1610MiB / 4096MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 2977 G /usr/lib/xorg/Xorg 748MiB |
| 0 N/A N/A 3358 G /usr/bin/gnome-shell 118MiB |
| 0 N/A N/A 3376 G ...libexec/mutter-x11-frames 35MiB |
| 0 N/A N/A 5185 G ...271467521750677320,262144 561MiB |
+-----------------------------------------------------------------------------+
#xrandr --query
Screen 0: minimum 8 x 8, current 7680 x 2160, maximum 32767 x 32767
DP-4.1.6 connected primary 3840x2160+3840+0 (normal left inverted right x axis y axis) 597mm x 336mm
3840x2160 60.00*+ 60.00 59.94 50.00 29.97 25.00 23.98
2560x1440 59.95
2048x1280 59.92
1920x1080 60.00 59.94 50.00 29.97 25.00 23.98
1600x900 60.00
1280x1024 75.02 60.02
1280x720 59.94 50.00
1152x864 75.00
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x480 59.94
640x480 75.00 59.94 59.93
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected 3840x2160+0+0 (normal left inverted right x axis y axis) 597mm x 336mm
3840x2160 60.00*+ 60.00 59.94 50.00 29.97 25.00 23.98
2560x1440 59.95
2048x1280 59.92
1920x1080 60.00 59.94 50.00 29.97 25.00 23.98
1600x900 60.00
1280x1024 75.02 60.02
1280x720 59.94 50.00
1152x864 75.00
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x480 59.94
640x480 75.00 59.94 59.93
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)
#xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x217 cap: 0x1, Source Output crtcs: 4 outputs: 8 associated providers: 0 name:NVIDIA-0
$ sudo dmesg|grep nvidia
[ 4.160298] nvidia: loading out-of-tree module taints kernel.
[ 4.160305] nvidia: module license 'NVIDIA' taints kernel.
[ 4.174545] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[ 4.242337] nvidia-nvlink: Nvlink Core is being initialized, major device number 509
[ 4.242837] nvidia 0000:01:00.0: enabling device (0000 -> 0003)
[ 4.243044] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[ 4.299669] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 525.105.17 Tue Mar 28 22:18:37 UTC 2023
[ 4.304755] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[ 7.035908] audit: type=1400 audit(1683915797.311:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe" pid=782 comm="apparmor_parser"
[ 7.035912] audit: type=1400 audit(1683915797.311:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe//kmod" pid=782 comm="apparmor_parser"
[ 7.343491] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 1
[ 7.358384] nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
[ 7.380408] nvidia-uvm: Loaded the UVM driver, major device number 507.
[ 41.338234] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 41.338427] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 41.338550] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 41.338656] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 41.391042] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 41.391268] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 41.391393] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 41.391503] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 41.443284] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 41.443505] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 41.443640] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ 41.443763] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[20597.967084] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[20597.967185] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[20597.967235] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[20597.967283] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership