Ubuntu 22.04.1 LTS GeForce RTX 3050 Ti

Hi all,
Can someone point me out on how to properly install drivers for the GeForce RTX 3050 Ti on Ubuntu 22.04.1 LTS ?
Till now i try all the methods like “apt” using drivers GUI app, using the .run from the NVIDIA page. The installation went ok but somehow the NVIDIA is not being used. Last i install them using apt but should i add some different repo PPA ?

Some output:

➜  ~ lspci -nn | grep -E 'VGA|Display'
00:02.0 VGA compatible controller [0300]: Intel Corporation Alder Lake-P Integrated Graphics Controller [8086:46a6] (rev 0c)
➜  ~ nvidia-smi         
Mon Oct 10 23:23:33 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.65.01    Driver Version: 515.65.01    CUDA Version: 11.7     |
|-------------------------------+----------------------+----------------------+
| 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:01:00.0 Off |                  N/A |
| N/A   46C    P3    N/A /  N/A |      4MiB /  4096MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      2372      G   /usr/lib/xorg/Xorg                  4MiB |
+-----------------------------------------------------------------------------+
➜  ~ glxinfo | grep OpenGL
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) Graphics (ADL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 22.0.5
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6 (Compatibility Profile) Mesa 22.0.5
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.0.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:

Disclaimer… i don’t use ubuntu but this looks like itd work but yes you need a ppa…

I did that but still have not being used. Still the integrated one is active and Nvidia is just siting there doing nothing

I already told you that you’re in offload aka on-demand mode
https://forums.developer.nvidia.com/t/ubuntu-22-04-1-lts-geforce-rtx-3050-ti-mobile/230063/19
I don’t know what more to say. You might check if Ubuntu provides “always run on dgpu” on right-click in application overview.

To be honest i dont quit catch it. As I understand you, you are telling me that there is some scenario where the Graphic card is being used when something is triggering and not the whole time and i need to change this ? Where should i add those env variables ?

I found some configuration from NVIDIA app and i change it to be in Performance Mode (From Nvidia Settings > PRIME PRofiles > NVIDIA (Performance Mode)).

So i change the also from the drivers to be used NVIDIA.
Now i have this as result:

➜  ~ nvidia-smi        
Thu Oct 13 10:46:56 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.65.01    Driver Version: 515.65.01    CUDA Version: 11.7     |
|-------------------------------+----------------------+----------------------+
| 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:01:00.0 Off |                  N/A |
| N/A   48C    P8     6W /  N/A |   1217MiB /  4096MiB |     18%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      2150      G   /usr/lib/xorg/Xorg                592MiB |
|    0   N/A  N/A      2789      G   /usr/bin/gnome-shell               99MiB |
|    0   N/A  N/A      3552      G   ...RendererForSitePerProcess       55MiB |
|    0   N/A  N/A      5057      G   ...793255411633242967,131072      220MiB |
|    0   N/A  N/A      5648      G   gnome-control-center                1MiB |
|    0   N/A  N/A      5692      G   /opt/viber/Viber                   59MiB |
|    0   N/A  N/A      5810      G   ...veSuggestionsOnlyOnDemand      132MiB |
|    0   N/A  N/A     14461      G   /usr/bin/nvidia-settings            0MiB |
+-----------------------------------------------------------------------------+
➜  ~ prime-select query
nvidia
➜  ~ 

I see some errors from the bug report but im not understanding them.
nvidia-bug-report.log.gz (318.2 KB)

Is there some other way to check that the Graphic card is being used and work properly?

This is also what I told you, to use prime-select to change modes (also available in the ubuntu patched version of nvidia-settings). You now switched to nvidia primary aka performance mode, everything now runs on the nvidia gpu at the cost of higher power consumption.
There are no errors in the logs.
You should have done your homework and use google to find out what “offload mode” and “prime-select” and not ask the same question again.