Actually,with the 470 drivers,the nvidia card now automatically power off when not used in integrated mode with optimus-manager,and I can use the nvidia card there too (integrated mode),meaning hybrid mode is kind of deprecated now (kinda because integrated mode doesn’t work HDMI port yet,you need hybrid or nvidia mode for that). I have a 1050 Ti for reference.
To answer @_Undercover ,you just need to install optimus-manager and switch from hybrid (the mode you are right now) to integrated mode.
Now when you do nvidia-smi
you should have something like this
❯ nvidia-smi
Sat Jul 31 21:43:33 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.57.02 Driver Version: 470.57.02 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 39C P0 N/A / N/A | 0MiB / 4040MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
I don’t use CUDA,but I know that Vulkan applications (such as games) detect and uses the nvidia card without doing the prime-run command,so maybe CUDA should be the same,if not you can use the prime-run normally to force it.
Here is a example of a Vulkan application wiithout prime-run
Edit:
obs uses cuda? if so then that means cuda applications also works because my obs also detects the nvidia card without prime-run.