Ubuntu 20.04 not using gpu

I have an MSI GEFORCE GTX 1060 GAMING X 6G. I have the most recent drivers installed, but for some reason my pc is running onboard graphics, and I can’t figure out why.

I’m wondering if I have a bad pci-e cable, or a hardware problem elsewhere, or if my gpu is going bad.

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.39       Driver Version: 460.39       CUDA Version: 11.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  GeForce GTX 106...  Off  | 00000000:09:00.0  On |                  N/A |
|  0%   44C    P8    11W / 200W |    301MiB /  6077MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1211      G   /usr/lib/xorg/Xorg                 35MiB |
|    0   N/A  N/A      1717      G   /usr/lib/xorg/Xorg                140MiB |
|    0   N/A  N/A      1845      G   /usr/bin/gnome-shell               47MiB |
|    0   N/A  N/A      3207      G   ...gAAAAAAAAA --shared-files       43MiB |
|    0   N/A  N/A     14458      G   ...AAAAAAAAA= --shared-files       22MiB |
+-----------------------------------------------------------------------------+

nvidia-bug-report.zip (375.5 KB)

Everything looks fine, what doesn’t work. You don’t have integrated graphics.