将内核从 5.4.0-56-generic 升级到 5.4.0-58-generic 会破坏 NVIDIA 驱动程序

将内核从 5.4.0-56-generic 升级到 5.4.0-58-generic 会破坏 NVIDIA 驱动程序

我使用的是 ubuntu 20.04,之前一直使用 Linux 内核 5.4.0-54-generic,后来又使用了 5.4.0-56-generic。今天我运行apt upgrade后,它引入了一个新内核 5.4.0-58-generic。重启后,我的 NVIDIA 驱动程序似乎不再工作。我的屏幕分辨率是 1024x768,无法更改。如果我重新启动到 5.4.0-56-generic,一切都正常。

如何让 NVIDIA 驱动程序与这个新内核正常配合?

nvidia-smi告诉我:

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 455.32.00    Driver Version: 455.32.00    CUDA Version: 11.1     |
|-------------------------------+----------------------+----------------------+
| 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  Graphics Device     Off  | 00000000:0A:00.0  On |                  N/A |
|  0%   44C    P8     8W / 220W |    178MiB /  7979MiB |      4%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1185      G   /usr/lib/xorg/Xorg                 41MiB |
|    0   N/A  N/A      2077      G   /usr/lib/xorg/Xorg                 91MiB |
|    0   N/A  N/A      2199      G   /usr/bin/gnome-shell               32MiB |
+-----------------------------------------------------------------------------+

相关内容