GPU Switch Integrated AMD -> Dedicated NVIDIA

Output:

##
## Generated by mhwd - Manjaro Hardware Detection
##
 
blacklist nouveau
blacklist ttm
blacklist drm_kms_helper
blacklist drm
options nvidia "NVreg_DynamicPowerManagement=0x02"
# Added by VMware.

alias char-major-10-229 fuse

Output:

/etc/X11/mhwd.d/:
nvidia.conf

/etc/X11/xorg.conf.d/:
00-keyboard.conf  30-touchpad.conf  90-mhwd.conf

You know you can edit a single post and include everything? No need to post 10 times in a row.

OK and can we also see:

cat /etc/X11/mhwd.d/nvidia.conf
cat /etc/X11/xorg.conf.d/90-mhwd.conf

you just came here to say to dont post 3 times in a row instead of actually helping me :skull:

Yes, I did that. :stuck_out_tongue:

1 Like

Output:

##
## Generated by mhwd - Manjaro Hardware Detection
##
 

Output: (Same nothing):

##
## Generated by mhwd - Manjaro Hardware Detection
##
 
 

Like, in the system monitor app I use called “Mission Center” I t detects the Nvidia GPU
image

And what about

prime-run glxinfo | grep 'renderer string'
OpenGL renderer string: NVIDIA GeForce RTX 3050 Ti Laptop GPU/PCIe/SSE2

:sunglasses:

Cool.
So now you will want to run anything you want to use nvidia with prime-run
In the case of steam - edit game launch options;

prime-run %command%

(%command% is a special steam variable that means ‘this game’)

well, im very rich so I use TOTALLY LEGAL GAMES NON CRACKED 101% OFFICIAL 2025, how can I run those with that command? You understand what I’m saying…

I dont know how you launch any of your applications.
But the principle is the same … use prime-run.

I only included steam because its special - you dont want to launch steam itself with prime-run, but instead edit the game launch options.

I install with the installer .exe with wine, it puts a shortcut in desktop and I run it

prime-run in the commandds to launch the game? It works on proprieties of the shortcut too?

For wine … I have no idea. Probably launch wine with prime-run.

The actual command/script is probably something like wine /path/somewhere … so you would make it prime-run wine /path/somewhere … or if it is a script then prime-run thatscript.sh … and so on.

In steam anyways.
prime-run is just a command to say ‘run everything about to be launched with the nvidia’.
prime-run firefox would launch firefox on nvidia, and so on.

anything here to do that?

.desktop files are just text files.
You are choosing to open it in this ‘helpful’ format.
The above post is still about all the instructions you should need.
For more … theres the arch wiki.
https://wiki.archlinux.org/title/PRIME

1 Like

Thanks for helping

May the wind be always at your back.

PS.
Just a note … the 6.5 kernel is EOL.
( kernel.org )
So I might suggest you hop on to 6.6 (and/or keep/add 6.1)
And then remove 6.5 when booted into an LTS (long term support) kernel.
ex;

sudo mhwd-kernel -i linux66

Reboot and select 6.6 from grub menu.
(and check running kernel with uname -a)
And if not booted into it, you can remove the 6.5

sudo mhwd-kernel -r linux65

As a side note.

If a game uses proton, it automatically sets: (If you have a Nvidia)

__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only

Witch is exactly what prime-run does.

See: Chapter 34. PRIME Render Offload

Close.

__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia "$@"

But that glx vendor library thing might be superfluous, maybe in the case of steam.