Nvidia driver failed and showing *nvidia-settings* shows this CRITICAL error message

Hello,

I installed the nvidia driver 510 and i have Dell precision 5560 with Nvidia rtx a2000:

  1. uname -a:
    Linux subuas-28 5.17.4-051704-generic #202204200842 SMP PREEMPT Wed Apr 20 09:30:50 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

  2. lspci -k shows this:
    01:00.0 3D controller: NVIDIA Corporation GA107GLM [RTX A2000 Mobile] (rev a1)
    Subsystem: Dell Device 0a62

but when i am trying to find using,
3. nvidia-smi: is giving me this:

NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running

.

4. sudo nvidia-settings showing me this:

image

ERROR: NVIDIA driver is not loaded

ERROR: Unable to load info from any available system

(nvidia-settings:9897): GLib-GObject-CRITICAL **: 10:57:43.417: g_object_unref: assertion ‘G_IS_OBJECT (object)’ failed
** Message: 10:57:43.420: PRIME: No offloading required. Abort
** Message: 10:57:43.420: PRIME: is it supported? no

Please help.

and this is the log:
nvidia-bug-report.log.txt (147.7 KB)

1 Like

You installed an incompatible kernel from mainline. Please either return to the 20.04 stock kernel or use the liquorix ppa to get a newer working one.

2 Likes

Hei @generix ,

Would you be able to share how you figured this out from the bug report log? Or it the uname output already indication enough? (v510 should support 5.17 kernel as far as I am aware)
I would really appreciate it if you could let us know so others can benefit from your finding as well.
Because it seems especially with Ubuntu 20.04 kernel incompatibilities are getting more common, for example in this post in the Gaming & Visualization forums.

Thank you in advance!

Ubuntu kernels follow a naming schema, stock kernels have
major.minor.0-patch-level, e.g. 5.13.0-41
kernels from the mainline repo have
major.minor.micro-majorminormicro, e.g. 5.13.41-051341

Mainline kernels are are built on the current latest Ubuntu version at build time.
While the kernel images itself are interchangeable, the problem is that the generic headers needed for building modules of later kernels introduced a dependency on a minimal glibc version, which mostly differ on the Ubuntu versions. Additionally, kernel 5.17 introduced new cpu vulnerability mitigation which requires a new gcc version when enabled not existing on older Ubuntu versions.

2 Likes

Thank you very much for the clarification!

@generix Thanks for pointing out the problem. I installed the liquorix ppa kernel for 20.04 and now the nvidia driver is working.