升级内核后无法使用 nvidia

升级内核后无法使用 nvidia

如果我使用全新安装后 ubuntu 18.04 附带的内核,我可以使用 nvidia GPU。

但是,安装ukuu内核 4.17.2 后,我无法再使用 nvidia GPU。

lucas@test:/boot$ uname -a
Linux test 4.17.2-041702-generic #201806160433 SMP Sat Jun 16 08:35:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

lucas@test:~$ prime-select query
nvidia

lucas@test:~$ glxinfo|egrep "OpenGL vendor|OpenGL renderer"
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile 

跑步时nvidia-settings我可以看到:

ERROR: NVIDIA driver is not loaded
ERROR: Error querying enabled displays on GPU 0 (Missing Extension).
ERROR: Error querying connected displays on GPU 0 (Missing Extension).

** Message: 20:49:20.826: PRIME: Requires offloading
** Message: 20:49:20.826: PRIME: is it supported? yes

ERROR: nvidia-settings could not find the registry key file. This file should
       have been installed along with this driver at
       /usr/share/nvidia/nvidia-application-profiles-key-documentation. The
       application profiles will continue to work, but values cannot be
       prepopulated or validated, and will not be listed in the help text.
       Please see the README for possible values and descriptions.

有趣的是,没有/usr/share/nvidia/nvidia-application-profiles-key-documentation但是nvidia-application-profiles-390.48-key-documentation

lucas@test:/usr/share/nvidia$ ls -l
total 16
-rw-r--r-- 1 root root 6041 mar 22 03:47 nvidia-application-profiles-390.48-key-documentation
-rw-r--r-- 1 root root 6052 mar 22 03:47 nvidia-application-profiles-390.48-rc

如果在启动时我选择内核 4.15.0-22.generic(即全新安装时附带的内核),那么所有问题都解决了。

我能做些什么?

谢谢!

相关内容