Home / Blog / GPU Repair

Linux Laptop Games Slow While the Dedicated GPU Idles? PRIME Render Offload Diagnosis Guide

GPU Repair 2026-11-24 17 minutes HK GPU Fix Editorial Team
Linux Laptop Games Slow While the Dedicated GPU Idles? PRIME Render Offload Diagnosis Guide

Key takeaway

On a Linux laptop with two graphics cards, the integrated GPU drives the desktop by default and the dedicated NVIDIA GPU stays asleep until a program is explicitly told to use it. A game started normally therefore runs on the integrated GPU. Launch it through PRIME render offload, and prove which card renders with the OpenGL renderer string.

The symptom this guide covers

A Linux laptop has two graphics cards — an integrated GPU (Intel or AMD) and a dedicated NVIDIA GPU, in the Optimus hybrid design. A game is started and runs slowly, roughly 15–30 FPS, while the same machine runs the same game far more smoothly under Windows. At the same time, nvidia-smi shows the dedicated GPU at 0% utilisation: the dedicated card is idle, and the game is not using it at all.

This guide is about that specific symptom — a game running slowly because it is on the wrong card — and about the render offload layer that decides which card a program uses. It is not about a dedicated GPU that is working hard but still slow; if nvidia-smi shows high utilisation and the frame rate is still low, that is a bottleneck problem, not an offload problem. It is also not about a Windows laptop, a Linux installation that fails to boot after the NVIDIA driver is installed, an AMD graphics card on Linux, or a browser that stutters during video playback. Each of those belongs to a different guide.

How it works: the integrated GPU is the default, and the dedicated GPU must be asked program by program

An Optimus laptop has two cards with different jobs. The integrated GPU handles everyday display work and saves power. The dedicated GPU handles heavy loads and uses more power. On Linux, the desktop is driven by the integrated GPU by default, and the dedicated GPU sleeps. That is the design, not a fault. Windows assigns the dedicated GPU to programs automatically; Linux does not. That difference is the starting point of this whole guide.

PRIME Render Offload: borrowing the dedicated GPU for one program at a time

NVIDIA's proprietary driver has supported PRIME Render Offload since driver version 435.17, released in 2019. The user adds environment variables when starting a program — __NV_PRIME_RENDER_OFFLOAD=1 and __GLX_VENDOR_LIBRARY_NAME=nvidia, with __VK_LAYER_NV_optimus=NVIDIA_only added for Vulkan programs — and that program renders on the dedicated GPU. The finished frames are then handed back to the integrated GPU for display. prime-run is a convenience wrapper that bundles this set of variables together; on Ubuntu-based systems it is provided by the nvidia-prime package. This is the basis of Test 1.

Note that the environment variable set has two published forms, and they are not in conflict. Some sources list two variables, the render-offload flag and the GLX vendor library name. Others list three, adding the Vulkan layer variable. The third variable is only needed by Vulkan programs; OpenGL programs do not need it. A guide that lists only one set as the single answer would be wrong for the other kind of program.

prime-select: changing the mode of the whole system

On distributions that ship the nvidia-prime package, such as Ubuntu and Linux Mint, the prime-select command offers three system-wide modes: on-demand (the integrated GPU by default, with named programs offloaded — the recommended setting for a gaming laptop), nvidia (every program uses the dedicated GPU, the best performance and the highest power use), and intel (every program uses the integrated GPU, and the dedicated GPU never runs). Changing the mode only takes effect after logging out and back in. This is the basis of Test 2.

Distribution warning, stated plainly: prime-select is not a universal command. It exists only on distributions that ship the nvidia-prime package. Arch, Garuda, and Fedora do not have it, and on those systems there is no prime-select to run. On distributions without it, the diagnosis goes through Test 1 and Test 3 directly — the prime-run wrapper or the full environment variables, and the renderer string check. No single distribution's commands are presented here as the only path.

The glxinfo renderer string: the reliable evidence of which card is running

glxinfo | grep "OpenGL renderer" reports which renderer the program that runs it is using. If it shows a Mesa Intel entry, the program is running on the integrated GPU. If it shows an NVIDIA GeForce model, the program is running on the dedicated GPU. Run it once without the offload variables and once with them, and the two runs separate a driver problem from an offload problem. That is the basis of Test 3. glxinfo is part of the Mesa utilities package; on Debian and Ubuntu-based systems that package is called mesa-utils, and on other distributions it is packaged under a different name — check the distribution's own documentation rather than assuming one package name.

Two things that are often confused with this problem

CUDA computing does not need offload. A pure computing program, such as AI inference, does not go through the rendering pipeline. Once the driver is installed and nvidia-smi can see the card, a CUDA program uses the driver directly, with no offload variables. So nvidia-smi showing the card proves the driver is installed; it does not prove a game is using the card.

The old tools are dead. Bumblebee, primus, and nvidia-xrun have not been updated for more than eight years, perform poorly, and do not support current drivers. Do not install them. The open-source Nouveau driver also supports PRIME offload through DRI_PRIME=1, but that is the Mesa driver layer, not the NVIDIA proprietary driver layer, and it is not the subject of this guide.

Confirm the machine really has two cards

Before starting the diagnosis, confirm the laptop really has two graphics cards. In a terminal, run lspci; you should see both the integrated GPU and the NVIDIA dedicated GPU listed as two devices. If only one card appears, the problem is not at the offload layer — it is a hardware-recognition or driver-layer problem — and there is no point circling around this guide. This step is quick, but it can save an evening of trying settings at random.

Five suspect layers

LayerWhat it isTypical sign
1. Launch methodGame started without prime-run or offload variablesGame runs on the integrated GPU
2. System modeprime-select mode is wrong (on distributions that have it)intel mode locks the whole system to the integrated GPU
3. Verificationglxinfo renderer string shows which card is renderingRenderer string says Intel / Mesa
4. DriverProprietary driver not installed, too old, or Nouveau in usenvidia-smi cannot see the card
5. Display output / launcherExternal display wiring, Steam launch optionsOne display or one launcher behaves differently

Layers 1 to 3 are the focus of this guide. Layers 4 and 5 are boundary layers: driver installation belongs to its own guide, and launcher settings are checked only after the three decisive tests.

Test 1: prime-run comparison — the same game, normal launch vs prime-run

Purpose: find out whether the game is slow simply because it was never told to use the dedicated GPU.

Method: use the same game and change nothing else. First start it normally, note the frame rate, and check nvidia-smi utilisation. Then start it through prime-run <game> — or, in Steam, add prime-run %command% to the game's launch options. Where prime-run is not available, use the full environment variables instead: __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia <game>, adding __VK_LAYER_NV_optimus=NVIDIA_only for a Vulkan game. Note the frame rate and nvidia-smi again.

Reading the result:

  • After prime-run, the frame rate rises clearly, nvidia-smi shows the game process, and utilisation rises — the launch-method layer is confirmed. The fix is to keep launching the game this way, or to set it permanently in the Steam launch options.
  • If the frame rate rises but no game process appears in nvidia-smi, do not count that as offload working — something else may have changed at the same time.
  • Both launches are equally slow and the dedicated GPU is still at 0% — the launch method is not the cause. Move to Test 2 and Test 3.
  • The normal launch already uses the dedicated GPU — the problem is not the one this guide covers.

This is the most common cause, and it is also the cheapest to test: one launch, one comparison, and the answer is visible in nvidia-smi.

Test 2: prime-select mode comparison — check the mode, on-demand vs nvidia

Purpose: find out whether the whole system is locked to the wrong mode, so that no per-program launch can help.

Method: in a terminal, run prime-select query and note the current mode. If it reports intel, switch to on-demand with sudo prime-select on-demand, log out and back in, and then run Test 1 again. If it reports on-demand, Test 1 can already distinguish the layers. If the whole machine should use the dedicated GPU for everything, switch to nvidia and log out and back in, then check the game's frame rate.

Reading the result:

  • Under intel mode, Test 1 does nothing however it is tried; after switching to on-demand, Test 1 works immediately — the mode layer is confirmed.
  • Under on-demand, Test 1 works, and everyday programs stay on the integrated GPU — the mode is correct, and there is no need to switch to nvidia.
  • Under nvidia, everything uses the dedicated GPU, including the desktop — the best performance, and the highest power use.

Distribution warning, repeated because it matters: prime-select exists only on distributions that ship the nvidia-prime package, such as Ubuntu and Linux Mint. Arch, Garuda, and Fedora do not have this command, and on those systems this test cannot be run. There, the diagnosis uses Test 1 and Test 3 only. A guide that tells every reader to run prime-select query as the one path would leave those readers with a command that does not exist.

Changing the mode only takes effect after logging out and back in. Without the re-login, the old mode keeps running, and the test result means nothing.

Test 3: glxinfo renderer string comparison — without variables vs with offload variables

Purpose: find out which card a program is actually rendering on, and separate a driver problem from an offload problem.

Method: in a terminal, run glxinfo | grep "OpenGL renderer" and note the renderer. Then run it again with the offload variables in front: __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo | grep "OpenGL renderer", and note the renderer again.

Reading the result:

  • The first run shows Intel / Mesa, the second shows an NVIDIA GeForce model — the driver is installed and the offload path works; the problem is only the launch method. Go back to Test 1 and fix how the game is started.
  • Both runs show Intel / Mesa — this is a driver-layer problem: the proprietary driver is not properly installed, is older than the 435.17 threshold at which PRIME offload was introduced, or the system is running Nouveau. That belongs to the driver-installation guide, not to offload diagnosis.
  • Both runs show NVIDIA — the program is already running on the dedicated GPU, and the problem is not the one this guide covers.

An overlap, acknowledged openly: the glxinfo renderer string is also mentioned in the cross-system comparison guide, where it is used to confirm that a live environment has loaded the real driver — the question there is whether that live test is valid at all. Here the question is different: on an already installed Linux laptop, which card is this particular program running on? The variable (the renderer string) is the same, but the question it answers is different, and this test adds the two-run comparison with and without the offload variables, which the cross-system guide does not have.

Do not guess from the frame rate. The renderer string is the evidence. A game can feel slow for many reasons; only the renderer string says which card is doing the work.

The seven-step diagnosis

  1. Confirm the symptom is an idle dedicated GPU, not a weak one. While the game is running, check nvidia-smi: 0% utilisation with a low frame rate points to this guide; high utilisation with a low frame rate points to a bottleneck.
  2. Mode comparison (Test 2). Run prime-select query on distributions that have the nvidia-prime package. If it reports intel, switch to on-demand and log out and back in.
  3. Renderer string comparison (Test 3). Run glxinfo twice, with and without the offload variables, to separate the driver layer from the offload layer.
  4. Launch method comparison (Test 1). Run the same game normally and through prime-run, and compare the frame rate and nvidia-smi.
  5. Steam and launcher settings. For a Steam game, add prime-run %command% to the launch options, or the environment variables followed by %command%. In Lutris, choose the dedicated GPU in the settings.
  6. Driver-layer check (when Test 3 shows Intel on both runs). Check whether nvidia-smi can see the card, whether the driver is version 435.17 or newer, and whether the system is running Nouveau. This layer belongs to the driver-installation guide; do not circle around it here.
  7. Stop point. If all seven steps are done and the problem remains, the cause may be a particular game or distribution combination, or a hardware-layer problem. Do not keep changing settings at random. That is the point to stop and have the machine checked in the shop: Dali Plaza 1209, Shek Mun, phone 2186 8010.

prime-select modes at a glance

ModeWhat it doesWhen to use it
on-demandIntegrated GPU by default; named programs offload to the dedicated GPURecommended for a gaming laptop
nvidiaEvery program uses the dedicated GPUBest performance, highest power use
intelEvery program uses the integrated GPU; the dedicated GPU never runsPower saving only — games will not use the dedicated GPU

Available only on distributions that ship the nvidia-prime package, such as Ubuntu and Linux Mint. Other distributions use Test 1 and Test 3 directly.

Environment variables at a glance

Program typeVariables to add before the program name
OpenGL programs__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia
Vulkan programsThe same two variables, plus __VK_LAYER_NV_optimus=NVIDIA_only

prime-run bundles these variables together on systems that provide it. The third variable is only needed for Vulkan; an OpenGL program does not need it.

Boundary cases: what this guide does not cover

  • A Windows laptop where games are slow and the dedicated GPU idles. That is a Windows graphics-settings assignment problem, checked through the operating system's graphics settings and the task manager's GPU utilisation.
  • Linux fails to boot, or nvidia-smi reports no device, after the NVIDIA driver is installed. That is a driver-installation problem, covering boot options, Secure Boot signing, and DKMS.
  • Windows misbehaves and a Linux live USB works fine. That is a cross-system comparison, where prime-run and glxinfo appear only as a reminder to test the right card, not as the tests in this guide.
  • An AMD graphics card on Linux. AMD uses the open-source Mesa driver, with a different mechanism and no proprietary module signing or DKMS layer of this kind.
  • A CUDA computing program cannot find the card. CUDA does not use offload; once the driver is installed, a computing program uses the driver directly. That is a compute-API problem, not a rendering problem.
  • PRIME behaviour under Wayland. PRIME offload is supported under both X11 and Wayland, but the limits under Wayland change with the compositor and driver version. This guide does not pin down any Wayland behaviour; X11 is the most stable path, and for Wayland the reader should follow the current documentation of the distribution in use.

Common misconceptions

  1. "Once the NVIDIA driver is installed, games should automatically use the dedicated GPU." Wrong. On Linux every program runs on the integrated GPU by default. Installing the driver only makes the dedicated GPU usable; it does not make games use it automatically. Each program must be started through prime-run or the offload environment variables.
  2. "If nvidia-smi can see the card, the game must be using it." Wrong. nvidia-smi only says the driver is installed and the card is recognised. Which card a game is running on is shown by the glxinfo renderer string, or by nvidia-smi utilisation while the game is running.
  3. "prime-run and DRI_PRIME=1 are the same thing." Wrong. prime-run is the offload wrapper for the NVIDIA proprietary driver. DRI_PRIME=1 is the method of the Mesa open-source driver layer, for AMD, Intel, and Nouveau. The two cannot be swapped.
  4. "After switching with prime-select, the change takes effect immediately." Wrong. Changing the mode only takes effect after logging out and back in. Without the re-login, the old mode keeps running.
  5. "Bumblebee is also a switching tool, so installing it will fix this." Wrong. Bumblebee has not been updated for more than eight years, does not support current drivers, and performs poorly. Do not use it.
  6. "If games are slow on Linux, Linux must be unsuitable for gaming." Wrong. Very often the game is simply running on the integrated GPU. Run Test 1 before blaming the operating system.

Frequently asked questions

Why does the same laptop run games smoothly on Windows but slowly on Linux?

Because Windows assigns the dedicated GPU to programs automatically, while Linux runs everything on the integrated GPU by default. On Linux the game must be started through PRIME render offload before it can use the dedicated card at all.

How do I know which card a game is actually using?

Do not guess from the frame rate. Run glxinfo | grep "OpenGL renderer" without the offload variables and again with them. Intel or Mesa means the integrated GPU; an NVIDIA GeForce model means the dedicated GPU. While a game is running, nvidia-smi utilisation is the second check.

What is the difference between prime-run and prime-select?

prime-run starts one program on the dedicated GPU. prime-select changes the mode of the whole system — on-demand, nvidia, or intel — and only takes effect after logging out and back in. They work at different levels, and both are needed to understand the system.

I am on Arch, Garuda, or Fedora. There is no prime-select. What do I do?

Use Test 1 and Test 3 only: start the game with prime-run or the full environment variables, and check the renderer string with glxinfo. prime-select exists only on distributions that ship the nvidia-prime package, such as Ubuntu and Linux Mint.

Do I need the third environment variable, __VK_LAYER_NV_optimus?

Only for Vulkan programs. OpenGL programs need only the two variables, __NV_PRIME_RENDER_OFFLOAD=1 and __GLX_VENDOR_LIBRARY_NAME=nvidia. Adding the third variable to an OpenGL program does nothing, and leaving it out of a Vulkan program can leave the game on the integrated GPU.

Can I just set the system to nvidia mode and forget about it?

On distributions that have prime-select, yes, but at a cost: every program, including the desktop, then runs on the dedicated GPU, which uses the most power. For a gaming laptop, on-demand with per-game offload is the recommended setting.

What if glxinfo shows Intel on both runs?

That is a driver-layer problem, not an offload problem: the proprietary driver may not be properly installed, may be older than the 435.17 threshold, or the system may be running Nouveau. That belongs to the driver-installation guide. If the driver is confirmed correct and the problem remains, bring the machine in for an in-shop check at Dali Plaza 1209, Shek Mun, phone 2186 8010, WhatsApp 6558 6806. In-shop diagnosis and repair follow the published three-tier repair pricing from HK$400 to HK$2,800.

Related Articles

Related Services

Looking for Chip-level GPU repair? Explore our service guides: