Laptop: Sytem76 Bonobo 15, 2024
PopOS 22.04
NVIDIA GeForce RTX 4080
x11 (not Wayland)
打开笔记本电脑包装后,我将在 Dell XPS 9710 笔记本电脑上运行 PopOS 22.04 的 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-settings
Nvidia显卡上运行时,会出现以下错误:
** (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]
我还没有找到修复撕裂的解决方案。我最终从 scatch 重新安装了操作系统,认为这可以解决问题,因为这可能是由于戴尔 XPS 上之前安装的配置错误造成的。结果是System76告诉我的不是正常行为,即
nvidia-settings
寻找prime-supported
,是标准行为,因为它只是在全新安装时执行此操作。另外,System76 要求我从 X11 切换到 Wayland,但我之前的安装中并未安装它。同样,全新安装默认情况下没有安装 Wayland。完整的 Nvidia 模式不够稳定,无法使用,因为 PopOS 22.04 上存在大量撕裂。我不知道它在其他发行版上是否更稳定。我恢复到混合,它更有用,即相当稳定。在混合模式下,Nvidia 参与并且可以通过nvtop
.