安装 nvidia 550 驱动程序后,Ubuntu 22 出现滞后,我无法恢复

安装 nvidia 550 驱动程序后,Ubuntu 22 出现滞后,我无法恢复

我遇到了一个奇怪的问题。我意外升级到了 nvidia-driver-550,出现了严重的延迟问题。

使用键盘或计时的时候,这一点非常明显。

我怎么知道滞后与 GPU 有关?

  • 我恢复了 nouveau 驱动程序,一切都运行良好,但是由于屏幕数量太多,CPU 变得疯狂,所以我想使用 GPU。

我尝试过什么?

  • 我曾尝试使用 ubuntu-drivers 安装版本 525。但它认为它已经安装好了。
  • 我已经使用以下方法清除了所有 nvidiasudo apt-get --purge remove *nvidia*
  • 我尝试按如下方式安装 525sudo apt install nvidia-driver-525
    • 然而,如果你研究软件包,只需在重新启动后重新安装 550,你就会发现它是 550 而不是 525。
    udo apt-get install nvidia-driver-535
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    The following additional packages will be installed:
      dctrl-tools dkms libnvidia-cfg1-550 libnvidia-common-550 libnvidia-compute-550 libnvidia-decode-550 libnvidia-egl-wayland1 libnvidia-encode-550 libnvidia-extra-550
      libnvidia-fbc1-550 libnvidia-gl-550 nvidia-compute-utils-550 nvidia-dkms-550 nvidia-driver-550 nvidia-firmware-550-550.54.14 nvidia-kernel-common-550 nvidia-kernel-source-550
      nvidia-settings nvidia-utils-550 screen-resolution-extra xserver-xorg-video-nvidia-550
    Suggested packages:
      debtags menu
    Recommended packages:
      libnvidia-compute-550:i386 libnvidia-decode-550:i386 libnvidia-encode-550:i386 libnvidia-fbc1-550:i386 libnvidia-gl-550:i386
    The following NEW packages will be installed:
      dctrl-tools dkms libnvidia-cfg1-550 libnvidia-common-550 libnvidia-compute-550 libnvidia-decode-550 libnvidia-egl-wayland1 libnvidia-encode-550 libnvidia-extra-550
      libnvidia-fbc1-550 libnvidia-gl-550 nvidia-compute-utils-550 nvidia-dkms-550 nvidia-driver-535 nvidia-driver-550 nvidia-firmware-550-550.54.14 nvidia-kernel-common-550
      nvidia-kernel-source-550 nvidia-settings nvidia-utils-550 screen-resolution-extra xserver-xorg-video-nvidia-550
    0 upgraded, 22 newly installed, 0 to remove and 0 not upgraded.
    Need to get 10.6 kB/284 MB of archives.
    After this operation, 721 MB of additional disk space will be used.
    
  • 我尝试安装 525-open,但出现以下错误
    sudo apt install nvidia-driver-525-open
    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:
    nvidia-driver-525-open : Depends: libnvidia-gl-525 (= 525.147.05-0ubuntu0.22.04.1) but 550.54.14-1pop0~1709151545~22.04~c91e06a~dev is to be installed
                            Depends: nvidia-dkms-525-open (<= 525.147.05-1)
                            Depends: nvidia-dkms-525-open (>= 525.147.05)
                            Depends: nvidia-kernel-common-525 (<= 525.147.05-1) but 550.54.14-1pop0~1709151545~22.04~c91e06a~dev is to be installed
                            Depends: nvidia-kernel-source-525-open (= 525.147.05-0ubuntu0.22.04.1) but it is not going to be installed
                            Depends: libnvidia-compute-525 (= 525.147.05-0ubuntu0.22.04.1) but 550.54.14-1pop0~1709151545~22.04~c91e06a~dev is to be installed
                            Depends: libnvidia-extra-525 (= 525.147.05-0ubuntu0.22.04.1) but 550.54.14-1pop0~1709151545~22.04~c91e06a~dev is to be installed
                            Depends: nvidia-compute-utils-525 (= 525.147.05-0ubuntu0.22.04.1) but 550.54.14-1pop0~1709151545~22.04~c91e06a~dev is to be installed
                            Depends: libnvidia-decode-525 (= 525.147.05-0ubuntu0.22.04.1) but 550.54.14-1pop0~1709151545~22.04~c91e06a~dev is to be installed
                            Depends: libnvidia-encode-525 (= 525.147.05-0ubuntu0.22.04.1) but 550.54.14-1pop0~1709151545~22.04~c91e06a~dev is to be installed
                            Depends: nvidia-utils-525 (= 525.147.05-0ubuntu0.22.04.1) but 550.54.14-1pop0~1709151545~22.04~c91e06a~dev is to be installed
                            Depends: xserver-xorg-video-nvidia-525 (= 525.147.05-0ubuntu0.22.04.1) but 550.54.14-1pop0~1709151545~22.04~c91e06a~dev is to be installed
                            Depends: libnvidia-cfg1-525 (= 525.147.05-0ubuntu0.22.04.1) but 550.54.14-1pop0~1709151545~22.04~c91e06a~dev is to be installed
                            Depends: libnvidia-fbc1-525 (= 525.147.05-0ubuntu0.22.04.1) but 550.54.14-1pop0~1709151545~22.04~c91e06a~dev is to be installed
                            Recommends: nvidia-prime (>= 0.8)
                            Recommends: libnvidia-compute-525:i386 (= 525.147.05-0ubuntu0.22.04.1) but it is not installable
                            Recommends: libnvidia-decode-525:i386 (= 525.147.05-0ubuntu0.22.04.1) but it is not installable
                            Recommends: libnvidia-encode-525:i386 (= 525.147.05-0ubuntu0.22.04.1) but it is not installable
                            Recommends: libnvidia-fbc1-525:i386 (= 525.147.05-0ubuntu0.22.04.1) but it is not installable
                            Recommends: libnvidia-gl-525:i386 (= 525.147.05-0ubuntu0.22.04.1) but it is not installable
    E: Unable to correct problems, you have held broken packages.
    
  • 我已尝试安装nvidia-dkms-525以尝试解决最后一个问题,但没有成功。

我没主意了,唯一的解决办法是重新安装和设置我的开发机器,这很麻烦,但说实话

我在跑步Ubuntu 22.04.4 LTS

当前 nvidia 驱动程序和显卡

+-----------------------------------------------------------------------------------------+
| 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 3070 ...    Off |   00000000:01:00.0  On |                  N/A |
| N/A   56C    P8             19W /   80W |     428MiB /   8192MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      2300      G   /usr/lib/xorg/Xorg                            205MiB |
|    0   N/A  N/A      2449      G   /usr/bin/gnome-shell                           94MiB |
|    0   N/A  N/A      3085      G   ...yOnDemand --variations-seed-version         47MiB |
|    0   N/A  N/A      3266      G   ...seed-version=20240401-050216.270000         35MiB |
|    0   N/A  N/A      5917      G   ...sion,SpareRendererForSitePerProcess         33MiB |
+-----------------------------------------------------------------------------------------+

答案1

检查问题是否与Ubuntu 22.04.4 终端上的输入延迟

mutter如果是这样,您应该使用此 ppa 提供的方法修复滞后问题:

sudo add-apt-repository ppa:vanvugt/mutter
sudo apt update
sudo apt upgrade

相关内容