Ubuntu – Can’t use nvidia after upgrading kernel


If I use the kernel that came with ubuntu 18.04 after a fresh-install, I can use the nvidia GPU.

However, after using ukuu to install kernel 4.17.2 I can't use the nvidia GPU anymore.

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

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 

When running nvidia-settings I get to see:

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.

Interestingly, there is no /usr/share/nvidia/nvidia-application-profiles-key-documentation but a 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

Everything is solved if -at boot time- I go choose kernel 4.15.0-22.generic, which is the kernel that came with the fresh install.

What can I do?


Related Question