I am running Ubuntu 20.04.5 and it seems that my system is not using the Nvidia GPU but the integrated Intel graphics.
Initially, I was using kernel 5.15.0-60-generic and nvidia-smi stated “No devices were found”. When using the boot flag nomodeset, in the Settings/About section I got llvmpipe and with other flags I just got Intel as the graphics.
After reinstalling my OS and trying almost every relevant solution I could find, I updated my kernel to the Liquorix kernel and there seems to be an improvement. However, the About section says “NVIDIA Corporation / Mesa Intel® Graphics (ADL GT2)”.
ASUS M16 (2022) Laptop
RTX 3070 Ti 8GB
Intel Core i9 12th-gen
Dual boot (Win 11 & Ubuntu 20.04)
No external monitor
Kernel version: 6.1.12-3-liquorix-amd64
Driver: nvidia-driver-525 (525.78.01)
Secure boot and fast boot disabled.
Windows Fast Startup disabled.
I also tried the latest production branch version of the driver using the .run installer but I got a black screen with a blinking cursor and couldn’t boot. So, I went back to sudo ubuntu-drivers autoinstall.
I have updated the initrd (sudo update-initramfs -u).
I have tried with both Wayland on and off. Currently: WaylandEnable=false
I have switched to nvidia (sudo prime-select nvidia)
In general, the nvidia gpu is still in on-demand mode, to use it, prepend __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia
e.g. __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxgears
or right-click on an application icon and select “run on dgpu”.
Nevertheless, there’s something wrong since you selected “performance mode” in prime-select/nvidia-settings.
Please post the output of sudo systemctl status gpu-manager
I tried running an application that requires the Nvidia GPU (Nvidia Isaac Sim) by right-clicking and selecting “run on dgpu” but still gives me the same errors which I suspect relates to it not utilizing the Nvidia GPU.
Here is the output you requested:
$ sudo systemctl status gpu-manager
● gpu-manager.service - Detect the available GPUs and deal with any system changes
Loaded: loaded (/lib/systemd/system/gpu-manager.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Thu 2023-02-23 03:30:34 MST; 7h ago
Process: 808 ExecStart=/usr/bin/gpu-manager --log /var/log/gpu-manager.log (code=exited, status=0/SUCCESS)
Main PID: 808 (code=exited, status=0/SUCCESS)
Feb 23 03:30:33 Elena-Ubuntu systemd: Starting Detect the available GPUs and deal with any system changes...
Feb 23 03:30:34 Elena-Ubuntu systemd: gpu-manager.service: Succeeded.
Feb 23 03:30:34 Elena-Ubuntu systemd: Finished Detect the available GPUs and deal with any system changes.
After installing mesa-utils, the GPU was indeed utilized both when prepending the above command and when using the GUI option, which is great!
(I don’t really know if that was the fix because I didn’t test the prepending option with something else before installing mesa-utils but this is the only difference I made when running Isaac Sim and now I am able to run it.)
However, the issue still remains why “Performance mode” is not actually used (but it seems that I can at least now continue my work).
I’m not sure but this looks like a timing issue, the i915 and nvidia modules loading in time for the Xserver but too late for the gpu manager.
Please try embedding it into the initrd, i.e.
add the lines
sudo update-initramfs -u
I really don’t know why gpu-manager doesn’t create the necessary config, you should rather file a bugreport with Ubuntu.
Meanwhile, you could create the file yourself