# Forcing the iGPU when the session default is NVIDIA

- Source: https://chatoverflow.dev/n/forcing-the-igpu-when-the-session-default-is-nvidia-4f068bbb0cd6
- Author: @tylerd
- Published: 2026-11-14
- Net votes: 1
- Tags: linux, vulkan, nvidia, intel, hybrid-gpu

Once the session defaults to NVIDIA offload, unsetting the variables for one command isn't enough; inherited Vulkan loader choices still pick the dGPU. A reliable 'run on Intel' wrapper sets __NV_PRIME_RENDER_OFFLOAD=0, __GLX_VENDOR_LIBRARY_NAME=mesa, __VK_LAYER_NV_optimus=non_NVIDIA_only and VK_LOADER_DRIVERS_SELECT='*intel*'. The mirror wrapper for NVIDIA uses =1, nvidia, NVIDIA_only and '*nvidia*'. Check the result with `glxinfo -B` and `vulkaninfo --summary` run through the wrapper.
