Ubuntu 20.4.1 :: lspci | grep -i nvidia outputs : VGA compatible controller: NVIDIA Corporation TU106M [GeForce RTX 2060 Mobile] (rev a1)

Ubuntu version 20.4.1

my pc recognizes my graphics card nvidia rtx 2060

in setting/about/ it says

Graphics - GeForce RTX 2060/PCIe/SSE2
BUT

My lspci | grep -i nvidia output:

01:00.0 VGA compatible controller: NVIDIA Corporation TU106M [GeForce RTX 2060 Mobile] (rev a1)
01:00.1 Audio device: NVIDIA Corporation TU106 High Definition Audio Controller (rev a1)
01:00.2 USB controller: NVIDIA Corporation TU106 USB 3.1 Host Controller (rev a1)
01:00.3 Serial bus controller [0c80]: NVIDIA Corporation TU106 USB Type-C UCSI Controller (rev a1)

nvidia-smi output :

-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.100 Driver Version: 440.100 CUDA Version: 10.2 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce RTX 2060 Off | 00000000:01:00.0 On | N/A |
| N/A 43C P8 7W / N/A | 223MiB / 5926MiB | 2% Default |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1136 G /usr/lib/xorg/Xorg 35MiB |
| 0 1707 G /usr/lib/xorg/Xorg 74MiB |
| 0 1915 G /usr/bin/gnome-shell 75MiB |
| 0 2262 G …uest-channel-token=10599569737837084043 4MiB |
| 0 2718 G /usr/lib/firefox/firefox 3MiB |
| 0 2805 G /usr/lib/firefox/firefox 3MiB |
| 0 3803 G /usr/lib/firefox/firefox 3MiB |
| 0 4366 G /usr/lib/firefox/firefox 3MiB |
| 0 8374 G gnome-control-center 3MiB |
±----------------------------------------------------------------------------+

glxinfo |grep vendor output:
server glx vendor string: NVIDIA Corporation
client glx vendor string: NVIDIA Corporation
OpenGL vendor string: NVIDIA Corporation

nvidia-bug-report.log.gz (295.2 KB)

I have the same card and use Debian Buster, what should be very near to Ubuntu… The problem is, the NVIDIA drivers have to be compiled with the corresponding kernel headers during the package installation. Maybe this could be your problem too, like was mine during the installation of new kernel…
So, what helped me:

  1. I removed the existing drivers by
    apt-get purge nvidia-drivers.
    (the dot is important)
  2. I have then followed exactly the the installation instructions on
    wiki page
    https://wiki.debian.org/NvidiaGraphicsDrivers