The problem is that everything I run through prime-run use 0% gpu.
For example, the game Alien Isolation use 0% if i run it in Steam Linux Runtime(this game supports linux, with settings prime-run %command%). But if I use a proton for this game, the problem disappears. this is also noticeable in the game. If I run a game like a Linux - lags and 2 fps, through a proton - stable 60 frames.
Also Cataclysm DDA Tiles not using any % of gpu . same behavior as Alien Isolation. use some gpu memory and is show in nvidia-smi, but not use gpu almost at all.
The feeling that the prime run does not work, although the nvidia driver itself is working properly and completely allows me to run the video card and use all its resources(only in proton, alas)
nvidia-smi
Mon Oct 11 22:55:06 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.63.01 Driver Version: 470.63.01 CUDA Version: 11.4 |
|-------------------------------+----------------------+----------------------+
| 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 50C P0 N/A / N/A | 57MiB / 4042MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 719 G /usr/lib/Xorg 34MiB |
| 0 N/A N/A 40758 G cataclysm-tiles 21MiB |
+-----------------------------------------------------------------------------+
inxi -G
Graphics: Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] driver: i915 v: kernel
Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] driver: nvidia v: 470.63.01
Device-3: Realtek EasyCamera type: USB driver: uvcvideo
Display: x11 server: X.Org 1.20.13 driver: loaded: modesetting,nvidia resolution: 1920x1080~60Hz
OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 21.2.2
prime-run nvidia-smi
Tue Oct 12 08:27:20 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.63.01 Driver Version: 470.63.01 CUDA Version: 11.4 |
|-------------------------------+----------------------+----------------------+
| 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 30C P8 N/A / N/A | 4MiB / 4042MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 791 G /usr/lib/Xorg 4MiB |
+-----------------------------------------------------------------------------+
cat /usr/bin/prime-run
#!/bin/bash
__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia "$@"