![将内核从 5.4.0-56-generic 升级到 5.4.0-58-generic 会破坏 NVIDIA 驱动程序](https://linux22.com/image/932383/%E5%B0%86%E5%86%85%E6%A0%B8%E4%BB%8E%205.4.0-56-generic%20%E5%8D%87%E7%BA%A7%E5%88%B0%205.4.0-58-generic%20%E4%BC%9A%E7%A0%B4%E5%9D%8F%20NVIDIA%20%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F.png)
我使用的是 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 |
+-----------------------------------------------------------------------------+