Ubutun 20.04 driver 440 installed but can't enable nvidia GC

Hello,

I have a Dell XPS-7590 for 1 year now and have recently upgraded my ubuntu to 20.04. Since that, I’m not able anymore to use my nvidia graphic card whereas it looks like the drivers is correctly installed. Here is some output:

$ glxinfo | grep render
direct rendering: Yes
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
    GLX_MESA_copy_sub_buffer, GLX_MESA_query_renderer, GLX_MESA_swap_control, 
Extended renderer info (GLX_MESA_query_renderer):
OpenGL renderer string: Mesa Intel(R) UHD Graphics 630 (CFL GT2)
    GL_ARB_conditional_render_inverted, GL_ARB_conservative_depth, 
    GL_NV_conditional_render, GL_NV_depth_clamp, 
    GL_ARB_conditional_render_inverted, GL_ARB_conservative_depth, 
    GL_NV_compute_shader_derivatives, GL_NV_conditional_render, 
    GL_EXT_render_snorm, GL_EXT_robustness, GL_EXT_sRGB_write_control, 
    GL_NV_conditional_render, GL_NV_draw_buffers, GL_NV_fbo_color_attachments, 
    GL_OES_element_index_uint, GL_OES_fbo_render_mipmap, 

Strangely, nvidia-smi does not work

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

Finally

$ sudo lshw -c video
  *-display UNCLAIMED       
       description: 3D controller
       product: TU117M [GeForce GTX 1650 Mobile / Max-Q]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress cap_list
       configuration: latency=0
       resources: memory:ec000000-ecffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:3000(size=128) memory:ed000000-ed07ffff
  *-display
       description: VGA compatible controller
       product: UHD Graphics 630 (Mobile)
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:164 memory:eb000000-ebffffff memory:80000000-8fffffff ioport:4000(size=64) memory:c0000-dffff

Here is the bug report !

nvidia-bug-report.log (514.9 KB)

Thank you !

There doesn’t seem to be any nvidia driver installed. Please install it using the Software&Updates application or use
sudo apt install nvidia-driver-440 nvidia-prime

Software&Updates tells me yes :(

I launched

sudo apt install nvidia-driver-440 nvidia-prime

But it says it already installed

Odd, there’s no trace of any driver in the logs. Please post the output of
cc --version
and
dkms status
Maybe just the kernel headers are missing, please install using

sudo apt-get install linux-headers-$(uname -r)

and check
dkms status
again afterwards.

cc --version

cc (Ubuntu 9.3.0-10ubuntu2) 9.3.0

dkms status

bcmwl, 6.30.223.271+bdcom, 5.3.0-050300-generic, x86_64: installed
bcmwl, 6.30.223.271+bdcom, 5.3.0-050300-lowlatency, x86_64: installed
bcmwl, 6.30.223.271+bdcom, 5.4.0-29-generic, x86_64: installed
bcmwl, 6.30.223.271+bdcom, 5.4.0-31-generic, x86_64: installed
bcmwl, 6.30.223.271+bdcom, 5.5.0-050500-generic, x86_64: installed
nvidia, 440.64: added
virtualbox, 6.1.6, 5.4.0-31-generic, x86_64: installed
virtualbox, 6.1.6, 5.5.0-050500-generic, x86_64: installed

sudo apt-get install linux-headers-$(uname -r)

E: Package 'linux-headers-5.5.0-050500-generic' has no installation candidate

Looks like you’re running a non-standard kernel, why? IDK if the Ubuntu provided 440.64 driver compiles with that at all. Please run
sudo dkms install nvidia/440.64 --all
and post any errors you’re getting.

I had a problem of not supported hardwar 6 months ago, I tried a lot of things and installing this kernel fixed it.

I ran sudo dkms install nvidia/440.64 --all

and got no output, it finishes instantly

Please post the output of
dpkg --list |grep “linux-headers”

ii  linux-headers-5.3.0-050300                    5.3.0-050300.201909152230                   all          Header files related to Linux kernel version 5.3.0
ii  linux-headers-5.3.0-050300-generic            5.3.0-050300.201909152230                   amd64        Linux kernel headers for version 5.3.0 on 64 bit x86 SMP
ii  linux-headers-5.3.0-050300-lowlatency         5.3.0-050300.201909152230                   amd64        Linux kernel headers for version 5.3.0 on 64 bit x86 SMP
ii  linux-headers-5.4.0-29                        5.4.0-29.33                                 all          Header files related to Linux kernel version 5.4.0
ii  linux-headers-5.4.0-29-generic                5.4.0-29.33                                 amd64        Linux kernel headers for version 5.4.0 on 64 bit x86 SMP
ii  linux-headers-5.4.0-31                        5.4.0-31.35                                 all          Header files related to Linux kernel version 5.4.0
ii  linux-headers-5.4.0-31-generic                5.4.0-31.35                                 amd64        Linux kernel headers for version 5.4.0 on 64 bit x86 SMP
ii  linux-headers-5.5.0-050500                    5.5.0-050500.202001262030                   all          Header files related to Linux kernel version 5.5.0
hi  linux-headers-generic                         5.4.0.31.36                                 amd64        Generic Linux kernel headers

You’re missing the image specific headers for the 5.5 kernel, please install
https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.5/linux-headers-5.5.0-050500-generic_5.5.0-050500.202001262030_amd64.deb
Then run
sudo dkms install nvidia/440.64 --all
and post the output of
dkms status

anthony@anthony-XPS-15-7590:~/Downloads$ sudo dkms install nvidia/440.64 --all
Module nvidia/440.64 already installed on kernel 5.5.0-050500-generic/x86_64

anthony@anthony-XPS-15-7590:~/Downloads$ dkms status
bcmwl, 6.30.223.271+bdcom, 5.3.0-050300-generic, x86_64: installed
bcmwl, 6.30.223.271+bdcom, 5.3.0-050300-lowlatency, x86_64: installed
bcmwl, 6.30.223.271+bdcom, 5.4.0-29-generic, x86_64: installed
bcmwl, 6.30.223.271+bdcom, 5.4.0-31-generic, x86_64: installed
bcmwl, 6.30.223.271+bdcom, 5.5.0-050500-generic, x86_64: installed
nvidia, 440.64, 5.5.0-050500-generic, x86_64: installed
virtualbox, 6.1.6, 5.4.0-31-generic, x86_64: installed
virtualbox, 6.1.6, 5.5.0-050500-generic, x86_64: installed

Should work now after a reboot.

I will reboot soon, thx you a lot for your help !

Re,

It took some time because it was working … but not really. I finally got the good GC running, thank you ! But got some problems with my wifi driver after that… Finally, I decided to give a new try to header 5.4, and to remove the backport iwlwifi drivers. Wifi was now working correctly, and I just had to repeat the commands you gave me today to me the graphic card works too !

Thank you a lot !

I’m having the same problem. I started with a non-standard kernel (5.6.14 better performance than 5.4 shipped with
Ubuntu 20.04) but went to the kernel shipped with Ubuntu, still no joy. I’m trying to get a GTX 1660 Super to work under
Ubuntu 20.04.

@nanook, please open a new thread, run nvidia-bug-report.sh as root and attach the resulting nvidia-bug-report.log.gz file to your post. You will have to rename the file ending to something else since the forum software doesn’t accept .gz files (nifty!).

Where do I obtain said nvidia-bug-report.sh file?

It’s installed alongside the driver, just run
sudo nvidia-bug-report.sh

If you’re talking using the nvidia.run file, it does not finish. It exploads when trying to load a module nvidia-drm.

Please open a new thread and use Ubuntu’s Software&update application to install the driver.