System not using Nvidia Graphics card despite driver being installed

My laptop has GP108M [GeForce MX150] card. It is on dual boot with windows 10 and ubuntu 19.04. The problem is in ubuntu where despite the driver installed, the system is not using the graphics card. Running “nvidia-settings” gives the following output.

ERROR: Unable to load info from any available system

(nvidia-settings:5808): GLib-GObject-CRITICAL **: 18:33:32.098: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
** Message: 18:33:32.103: PRIME: Requires offloading
** Message: 18:33:32.103: PRIME: is it supported? yes

and opens windows where i can only select which card to use.

I have attached the nvidia-bug-report.log file.

nvidia-bug-report.log.gz (189 KB)
nvidia-bug-report.log (2.95 MB)

It’s truncated, please delete the wall-of-text and attach as file:
Hovering the mouse over an existing post of yours will reveal a paperclip icon.
[url]https://devtalk.nvidia.com/default/topic/1043347/announcements/attaching-files-to-forum-topics-posts/[/url]

I have attached the file

Please try this:

  • install nvidia-prime (sudo apt install nvidia-prime)
  • switch to nvidia (sudo prime-select nvidia)
  • remove stray blacklist files (sudo rm /lib/modprobe.d/blacklist-nvidia.conf /etc/modprobe.d/blacklist-nvidia.conf)
  • update the initrd (sudo update-initramfs -u)
  • reboot
    If this doesn’t resolve the issue, please create a new nvidia-bug-report.log.

The above steps did not resolve the issue.
I am attaching the new nvidia-bug-report.log file.
nvidia-bug-report.log (4.3 MB)

The nvidia driver now correctly loads but no Xorg logs get created so I suspect a GDM bug. Please switch to lightdm using
sudo apt install lightdm
and check if that resolves the issue.

No, the issue is still not resolved.
I am attaching new nvidia-bug-report.log file.
nvidia-bug-report.log (4.23 MB)

Ok, at least you now get an xorg log. Please delete the file
/usr/share/X11/xorg.conf.d/20-intel.conf
that is restricting the xserver to intel only usage. If it still doesn’t resolve the issue, create a new nvidia-bug-report.log afterwards.

It worked! The graphics card is in use now.
Just a little doubt. Will using lightdm instead of gdm in 19.04 affect the performance in any way or does it have any disadvantage?

Thanx!

With gdm it’s easy to do fast user switching but has other quirks.
You can switch back to it using
sudo dpkg-reconfigure gdm

Okay. Thanks!

Hi there,
I am having similar problems and have followed the steps above. I am running Ubuntu 18.04 on a AMD Ryzen 7 5800h with GeForce RTX 3070 Laptop GPU on an Omen 15. I have successfully installed nvidia-driver-470 and get the attached output with nvidia-smi. I’ve swapped to lightdm and it seems to generate the xorg logs you mention previously.


I’ve also attached the nvidia bug report. Any advice would be great to get my laptop to use the nvidia-driver and not llvmpipe. nvidia-bug-report.log.gz (294.7 KB)
Cheers for any help.

The problem is that Ubuntu 18.04 doesn’t really support your AMD/Nvidia combo. You should rather use 21.04 and up which supports your system ootb.
If you really can’t upgrade, you’ll have to install a newer kernel, firmware files and config manually
Kernel:
You will need 4 packages
linux-headers-XX
linux-headers-XX-generic
linux-image-unsigned-XX-generic
linux-modules-XX-generic
from https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.10.75/

Firmware:
fetch all files that begin with green_sardine from
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/amdgpu
via the ‘plain’ link and put them into /lib/firmware/amdgpu
Then run
sudo update-initramfs -u
After reboot, llvm should be gone in the system info and AMDgpu should be shown.
Afterwards, check this on hoe to get the nvidia gpu working together with the amdgpu:
https://forums.developer.nvidia.com/t/nvidia-xconfig-doesnt-do-what-i-want-it-to-nor-does-nvidia-settings/107883/7?u=generix

Hi I’m facing similar issue here. I’m using Supermicro SYS-1028GQ-TRT on Ubuntu 22.04 .1 LTS, with a NVIDIA GeForce GTX 1080 Ti and nvidia driver 525 installed. However, my system doesnt seem to be utilising the nvidia gpu.
This is what I get from nvidia-smi:

Wed Mar 1 13:56:36 2023
±----------------------------------------------------------------------------+
| NVIDIA-SMI 525.78.01 Driver Version: 525.78.01 CUDA Version: 12.0 |
|-------------------------------±---------------------±---------------------+
| 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 NVIDIA GeForce … Off | 00000000:81:00.0 Off | N/A |
| 27% 49C P2 58W / 250W | 184MiB / 11264MiB | 1% Default |
| | | N/A |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 3256 G /usr/lib/xorg/Xorg 4MiB |
| 0 N/A N/A 4606 C /usr/NX/bin/nxnode.bin 175MiB |
±----------------------------------------------------------------------------+