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.

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
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?


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
You will need 4 packages

fetch all files that begin with green_sardine from
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: