How to use garuda-nvidia-prime-config?

how to use garuda-nvidia-prime-config? and set nvidia

Read the wiki. :slightly_smiling_face:


Hi, thx for ur answer.
I read it and i got error

╭─venomlightpro@venomlightpro in ~ took 25s
[:red_circle:] × DRI_PRIME=1 glxinfo -B | grep "OpenGL vendor string"

libGL error: glx: failed to create dri3 screen
libGL error: failed to load driver: nouveau
OpenGL vendor string: Intel

are you using the open source nouveou nvidia drivers? You can check your garuda-inxi for this info. Or upload it here.

no proprietary

Then why are you using DRI_PRIME to offload programs to the nvidia card? The wiki clearly says to use prime-run for proprietary.

Whenever you wish that a certain program uses the nvidia card instead of the integrated one you have to

prime-run programName

from terminal

In steam you can offload games to your nvidia cards by

prime-run %command%

in the launch option.
You can watch what programs are using your nvidia card using

1 Like

can i use nvidia for all programs?

on default Archlinux, I always used the optimus manager, but in Garuda Linux, all animations break down and the PC turns on every other time

You certainly can exclusively switch to the dedicated card but using these modes is an usually not recommended, because

  1. If your NVIDIA driver ever fails to load, your system will be unable to enter a graphical session

  2. In NVIDIA mode, the dedicated GPU is always used and therefore always turned on even if no software that could properly take advantage of it is running. The iGPU is much better suited for running low power common desktop applications.

so in my games intel always works instead of nvidia

You are playing on steam right?

yes and i play on tlanucher (minecraft-launcher) and in nvidia-settings i have only nvidia. but when i use optimus-manager i have nvidia and xorg screen

Open steam, go to library, go to game's preferences, go to launch options and add this line to the beginning of the game's launch option

prime-run %command%

You don't have to replace anything in this command, just place it at the beginning of your game's launch option and start the game. It will be offloaded to the nvidia card.

You can check


and see that the game's pid has been added to the list of processess.

i do it. but work only intel

What about garuda-inxi?

can you send ss of what you are doing and copy paste the output of


while running the said steam game?

╰─λ nvidia-smi
Wed Aug 23 22:15:37 2023
| NVIDIA-SMI 535.98 Driver Version: 535.98 CUDA Version: 12.2 |
| 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 GTX 1650 Off | 00000000:01:00.0 Off | N/A |
| N/A 52C P0 14W / 50W | 6MiB / 4096MiB | 0% Default |
| | | N/A |

| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |

Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: Hewlett-Packard
driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
ports: active: eDP-1 empty: DP-1,HDMI-A-1 bus-ID: 00:02.0
chip-ID: 8086:3e9b class-ID: 0300
Device-2: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q]
vendor: Hewlett-Packard driver: nvidia v: 535.98
alternate: nouveau,nvidia_drm non-free: 535.xx+
status: current (as of 2023-08) arch: Turing code: TUxxx
process: TSMC 12nm FF built: 2018-22 pcie: gen: 3 speed: 8 GT/s lanes: 8
link-max: lanes: 16 bus-ID: 01:00.0 chip-ID: 10de:1f91 class-ID: 0300
Device-3: Lite-On HP Wide Vision HD Camera driver: uvcvideo type: USB
rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-5:3 chip-ID: 04ca:707f
class-ID: 0e02 serial:
Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.2.0
compositor: kwin_x11 driver: X: loaded: modesetting,nvidia unloaded: nouveau
alternate: fbdev,intel,nv,vesa dri: iris gpu: i915 display-ID: :0
screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
s-diag: 582mm (22.93")
Monitor-1: eDP-1 model: LG Display 0x062e built: 2019 res: 1920x1080
dpi: 142 gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5")
ratio: 16:9 modes: 1920x1080
API: OpenGL v: 4.6 Mesa 23.1.6 renderer: Mesa Intel UHD Graphics 630 (CFL
GT2) direct-render: Yes

Open terminal and

prime-run tlauncher

or whatever else the package name is that you need to type to launch it from terminal. You can also edit the .desktop file to just change the Exec line to avoid using terminal.

it not program it open for comman "sudo java -jar TLauncher-2.885.jar"