0

Currently on wayland with an nvidia dGPU

I generally would like to leave the gpu mode to hybrid mode to save power and occasionally run a program using the dGPU specifically. This program requires openGL support.

Is there a command I can type to start a program using the dGPU?

Apparently in windows, you can right click on desktop shortcut and "run with high performance GPU".

Wondering if this is also possible with wayland-nvidia.

4
  • askubuntu.com/questions/1334825/… Commented Oct 29, 2021 at 2:41
  • thanks I figured it out. Installed nvidia-prime. Then ran prime-run Commented Oct 29, 2021 at 2:55
  • @ArtemS.Tashkinov IMO you should create the anwser from orginal ubuntu post with some context Commented Oct 29, 2021 at 9:45
  • 1
    @AlexBaranowski I create answers only when I can test them, and since I don't have an optimus laptop anywhere near me, I'll pass. Reposting something is not my forte. Commented Oct 29, 2021 at 9:48

1 Answer 1

0

I found this working in Fedora. When running the program:

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia <app_name>

Source. See the "Finer-Grained Control of GLX + OpenGL" section.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.