Omarchy

How-To: Run an App on the NVIDIA GPU of a Hybrid Omarchy Laptop, and Prove It Worked

Leave a comment

My Omarchy laptop has Intel graphics plus an NVIDIA GPU. The desktop runs fine on Intel, which saves battery, but sometimes you want a game, a render or a local model on the NVIDIA card. Here’s how to do that per app instead of switching the whole desktop.

1. See both GPUs and their drivers

lspci -k | grep -A3 -E 'VGA|3D'
nvidia-smi

You want to see the Intel GPU using i915 or xe, the NVIDIA one using nvidia, and nvidia-smi answering.

2. Run one app on the NVIDIA GPU

Arch’s nvidia-prime package gives you a prime-run wrapper. It just sets the PRIME render offload variables for that one process:

sudo pacman -S --needed nvidia-prime mesa-utils vulkan-tools
prime-run glxinfo | grep "OpenGL renderer"
prime-run vulkaninfo --summary | grep -i devicename

If the renderer says NVIDIA, offload works. Without the wrapper, the same command should show Intel. To launch something, just put prime-run in front of it. Without the package, these are the variables it sets:

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia __VK_LAYER_NV_optimus=NVIDIA_only some-app

3. Confirm it’s really on the GPU

watch -n1 nvidia-smi

Your app should show up in the process list while it runs.

4. Make sure the NVIDIA card sleeps when you’re done

lspci -D | grep -i nvidia
cat /sys/bus/pci/devices/<that-address>/power/runtime_status

suspended is what you want when nothing is using it. If it stays active, check nvidia-smi for something left running.

Tips

  • Don’t set the offload variables globally in your Hyprland config. You’ll keep the dGPU awake and burn battery.
  • Keep a note of which apps you launch with prime-run; it’s easy to forget after an update.

God Bless, and Happy hacking!

References & Further Reading

Subscribe (RSS) Follow How-Tos via RSS

Leave a note

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.