No image on main display (laptop)

that requires manual selection/setting, but my message is for automatic dynamic mechanism.


After reboot nvidia-smi shows only firefox process though there are 4 apps “prepended” with prime-run, is that ok?

$ nvidia-smi 
Thu Oct 13 19:07:26 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.76       Driver Version: 515.76       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  On |                  N/A |
| N/A   44C    P8     5W /  N/A |     57MiB /  6144MiB |     15%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1004      G   /usr/lib/Xorg                      53MiB |
|    0   N/A  N/A      1512      G   /usr/lib/firefox/firefox            1MiB |
+-----------------------------------------------------------------------------+

if you add the prime-run to the command line on that specific programm like you did with okular it launches automatically on nvidia…
but if you know how to set it up like that, so go ahead…

run some app with prime-run and see if it appears in nvidia-smi… the firefox is consuming like 1mib which is nothing…

Looks like there’s some confusion between application command exec string and krunner behaviour.
For ex. google chrome has exec string prime-run /usr/bin/google-chrome-stable %U but in process list it shows /opt/google/chrome/chrome as the command the chrome process was run with.
When I run gimp through app menu or krunner shortcut - it’s not shown in nvidia-smi list, though it’s pretty heavy process.

thats where the prime-run should be placed…
and is chrome detected in nvidia-smi?
and did you run gimp with prime-run? if no, run it and then open again nvidia-smi

That’s how I did with all the needed apps including chrome and gimp. Prepended, rebooted and then, wrote my previous comment with screenshots.

No. As well as gimp.

It should be started with prime-run, as presetted, as I’ve written earlier.

and if you just run:
prime-run gimp
and then check nvidia smi, is it detected?

launched prime-run gimp, then nvidia-smi: gimp is not there.
And the item /usr/lib/firefox/firefox 1MiB is also strange given the firefox is now runnig HD video.

my knowledge regarding this prime-run/nvidia is limited, but i just checked and only apps that support hardware accelaration can run with prime-run … i would suggest to create a new topic where you describe that the prime-run is not working correctly… also check on forum posts regarding prime-run…

you could try installing optimus as mentioned above, and switch completely to nvidia, and if you dont end up again with a black screen on laptop, keep only using nvidia…

I remember I had black screens along with optimus configuration, that makes me hesitate in choosing between optimus and prime.
I just wanted to get most of hybrid configuration: it would somehow carelessly to throw all the apps (small and complex) exclusively to NVIDIA having Intel in idle state.
Ok, agree, that deserves for another topic.

Thank you for a great help.
I don’t know if final solution can be combined from multiple posts within this topic, I see 2 stages here: 1) removing bbswitch, 2) managing GPU switching tool.

you are welcome…
the solution for your issue was removing bbswitch+bbswitch leftover configs.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.