Ubuntu20.04, renderer is not using nvidia after driver installed

Installed nvidia proprietary driver and nvidia-smi runs fine. However, the inxi -G outputs the following:

Graphics: Device-1: Intel UHD Graphics 630 driver: i915 v: kernel
Device-2: NVIDIA TU104M [GeForce RTX 2080 Mobile] driver: nvidia v: 515.65.01
Display: wayland server: X.Org 1.20.13 driver: modesetting,nvidia unloaded: fbdev,nouveau,vesa
resolution: 3840x2160~60Hz, 1920x1080~240Hz
OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 3.3 Mesa 21.2.6

could someone help to figure out what is going on? I tried to search in the internet, but not too much info with wayland…

You’re in on-demand, render offload mode
https://download.nvidia.com/XFree86/Linux-x86_64/495.44/README/primerenderoffload.html
Use prime-select to switch to other modes if you prefer.

1 Like

hi, thanks for the help. I already switched to NVIDIA using prime-select nvidia, and query returns nvidia as well… is there other commands i could use in this case?

Please run nvidia-bug-report.sh as root and attach the resulting nvidia-bug-report.log.gz file to your post.

nvidia-bug-report.log.gz (341.6 KB)
Here is the bug report.

You’re running a wayland session so the intel is always primary gpu.

that is true for x11 as i tested. sadly to hear nvidia not working on native wayland application. one surprise for today. Thanks for help

AFAIK, native wayland applications currently can’t be offloaded to the nvidia gpu but X applications might work with Xwayland through the mentioned render offload, but I don’t know for sure.
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxgears