使用 System76 驱动程序时 Nvidia 显示器撕裂

使用 System76 驱动程序时 Nvidia 显示器撕裂
Laptop: Sytem76 Bonobo 15, 2024
PopOS 22.04
NVIDIA GeForce RTX 4080
x11 (not Wayland)

打开笔记本电脑包装后,我插入了运行 PopOS 22.04 的 Dell XPS 9710 笔记本电脑的 NVMe 棒。它立即启动,但外部显示器不可用,所以我猜想它使用的是内置/英特尔 GPU。运行驱动程序更新后apt,Nvidia GPU 可用,但存在严重的图形撕裂问题,显示屏最活跃的部分会不断跳跃和刷新。我与 System76 通话,他们告诉我以下情况:

问题似乎是您安装了适用于 Ubuntu 的 Nvidia 驱动程序,并尝试使用 Prime 进行设置。虽然您说得没错,这是一台通常会使用 Prime 的 Optimus 笔记本电脑,但我们发现使用我们的包装可以获得更好的体验。

# add the system76 PPA
sudo apt-add-repository -y ppa:system76-dev/stable
sudo apt update
# remove the current Nvidia packages
sudo apt purge ~nnvidia
# make sure we are getting the most recent release
sudo apt update
# make sure apt and dpkg were not interrupted
sudo dpkg --configure -a  
sudo apt install -f  
# remove supporting libraries as well
sudo apt autoremove --purge
# install the nvidia driver
sudo apt install system76-driver-nvidia
# reboot the system to start using the new driver
sudo reboot

我确实遵循了这些步骤,但问题仍然存在,即使用 Nvidia 显卡时屏幕撕裂,如果图形活动较少,则在混合模式下会以某种方式稳定,并且内部显卡不会出现此类问题。

这是的输出nvidia-smi

# nvidia-smi 
Sat Mar 16 21:02:48 2024       

| NVIDIA-SMI 550.54.14              Driver Version: 550.54.14      CUDA Version: 12.4     |

| 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 GeForce RTX 4080 ...    Off |   00000000:02:00.0 Off |                  N/A |
| N/A   46C    P8              4W /  150W |       9MiB /  12282MiB |      0%      Default |
|                                         |                        |                  N/A |

| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |

|    0   N/A  N/A      2619      G   /usr/lib/xorg/Xorg                              4MiB |

需要注意的是,在nvidia-settingsNvidia 显卡上运行时,会出现以下错误:

** (nvidia-settings:92652): WARNING **: 21:23:21.908: PRIME: Failed to execute child process “/usr/bin/prime-supported” (No such file or directory)

这是 的输出nvidia-settings,寻找 PRIME: 在此处输入图片描述

我不确定为什么prime-supported丢失了,但是当我尝试安装它时,它会报告以下内容:

# apt install nvidia-prime
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
pop-desktop : PreDepends: pop-de-gnome but it is not going to be installed
Recommends: libreoffice-calc but it is not going to be installed
Recommends: libreoffice-impress but it is not going to be installed
Recommends: libreoffice-writer but it is not going to be installed
Recommends: libreoffice-ogltrans
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

# apt install pop-desktop
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
pop-desktop is already the newest version (2.0.0~1697231037~22.04~733a5e2).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

# apt install pop-de-gnome
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
pop-de-gnome is already the newest version (2.0.0~1697231037~22.04~733a5e2).
pop-de-gnome set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

编辑1

# apt list --installed|grep -i system76
gnome-shell-extension-system76-power/jammy,jammy,now 2.0.6~1710179797~22.04~b484f01 all [installed,automatic]
linux-firmware/jammy,now 20240202.git36777504-0ubuntu1+system76~1707150982~22.04~57636e6 amd64 [installed,automatic]
linux-system76/jammy,now 6.6.10.76060610.202401051437~1709085277~22.04~31d73d8 amd64 [installed]
system76-acpi-dkms/jammy,now 1.0.2~1707324865~22.04~19ad0c5 amd64 [installed]
system76-dkms/jammy,now 1.0.14~1707324875~22.04~da04fd6 amd64 [installed]
system76-driver-nvidia/jammy,jammy,now 20.04.87~1710180195~22.04~5d0680a all [installed]
system76-driver/jammy,jammy,now 20.04.87~1710180195~22.04~5d0680a all [installed]
system76-firmware-daemon/jammy,now 1.0.59~1709142062~22.04~5250a40 amd64 [installed,automatic]
system76-io-dkms/jammy,now 1.0.3~1707324885~22.04~3dd4c32 amd64 [installed]
system76-oled/jammy,now 0.1.5~1664307225~22.04~98f778d amd64 [installed,automatic]
system76-power/jammy,now 1.1.26~1710180257~22.04~d7f73b2 amd64 [installed,automatic]
system76-scheduler/jammy,now 2.0.0~1701988455~22.04~b8d6545 amd64 [installed,automatic]
system76-wallpapers/jammy,jammy,now 18.04.2~1611351210~22.04~52abc1e all [installed,automatic]

# apt list --installed|grep -i nvidia
libnvidia-cfg1-550/jammy,now 550.54.14-1pop0~1709151545~22.04~c91e06a amd64 [installed,automatic]
libnvidia-common-550/jammy,jammy,now 550.54.14-1pop0~1709151545~22.04~c91e06a all [installed,automatic]
libnvidia-compute-550/jammy,now 550.54.14-1pop0~1709151545~22.04~c91e06a amd64 [installed,automatic]
libnvidia-compute-550/jammy,now 550.54.14-1pop0~1709151545~22.04~c91e06a i386 [installed,automatic]
libnvidia-decode-550/jammy,now 550.54.14-1pop0~1709151545~22.04~c91e06a amd64 [installed,automatic]
libnvidia-decode-550/jammy,now 550.54.14-1pop0~1709151545~22.04~c91e06a i386 [installed,automatic]
libnvidia-egl-wayland1/jammy,now 1:1.1.13-2pop1~1707162632~22.04~c5241b5 amd64 [installed,automatic]
libnvidia-encode-550/jammy,now 550.54.14-1pop0~1709151545~22.04~c91e06a amd64 [installed,automatic]
libnvidia-encode-550/jammy,now 550.54.14-1pop0~1709151545~22.04~c91e06a i386 [installed,automatic]
libnvidia-extra-550/jammy,now 550.54.14-1pop0~1709151545~22.04~c91e06a amd64 [installed,automatic]
libnvidia-fbc1-550/jammy,now 550.54.14-1pop0~1709151545~22.04~c91e06a amd64 [installed,automatic]
libnvidia-fbc1-550/jammy,now 550.54.14-1pop0~1709151545~22.04~c91e06a i386 [installed,automatic]
libnvidia-gl-550/jammy,now 550.54.14-1pop0~1709151545~22.04~c91e06a amd64 [installed,automatic]
libnvidia-gl-550/jammy,now 550.54.14-1pop0~1709151545~22.04~c91e06a i386 [installed,automatic]
nvidia-compute-utils-550/jammy,now 550.54.14-1pop0~1709151545~22.04~c91e06a amd64 [installed,automatic]
nvidia-dkms-550/jammy,now 550.54.14-1pop0~1709151545~22.04~c91e06a amd64 [installed,automatic]
nvidia-driver-525/jammy,now 550.54.14-1pop0~1709151545~22.04~c91e06a amd64 [installed,automatic]
nvidia-driver-550/jammy,now 550.54.14-1pop0~1709151545~22.04~c91e06a amd64 [installed,automatic]
nvidia-firmware-550-550.54.14/jammy,now 550.54.14-1pop0~1709151545~22.04~c91e06a amd64 [installed,automatic]
nvidia-kernel-common-550/jammy,now 550.54.14-1pop0~1709151545~22.04~c91e06a amd64 [installed,automatic]
nvidia-kernel-source-550/jammy,now 550.54.14-1pop0~1709151545~22.04~c91e06a amd64 [installed,automatic]
nvidia-settings/jammy,now 510.47.03-0ubuntu1 amd64 [installed,automatic]
nvidia-utils-550/jammy,now 550.54.14-1pop0~1709151545~22.04~c91e06a amd64 [installed,automatic]
system76-driver-nvidia/jammy,jammy,now 20.04.87~1710180195~22.04~5d0680a all [installed]
xserver-xorg-video-nvidia-550/jammy,now 550.54.14-1pop0~1709151545~22.04~c91e06a amd64 [installed,automatic]

答案1

我还没有找到解决撕裂问题的方法。我最终从头开始重新安装了操作系统,以为这样可以解决问题,因为这可能是由于之前在 Dell XPS 上安装时配置错误造成的。结果是 System76 告诉我的不是正常行为,即nvidia-settings寻找prime-supported,是标准行为,因为它在全新安装时就是这样做的。此外,System76 要求我从 X11 切换到 Wayland,但它没有安装在我之前的安装中。同样,全新安装默认没有安装 Wayland。完整的 Nvidia 模式不够稳定,因为 PopOS 22.04 上存在相当多的撕裂。我不知道它在其他发行版上是否更稳定。我恢复到了混合模式,它更实用,即非常稳定。在混合模式下,Nvidia 可以正常工作,并且可以观察到nvtop

相关内容