NVIDIA hybrid graphics on a Pop!_OS laptop (system76-power modes, PRIME)
nvidiaamdprimepop-ossystem76-powerxorggaminglaptop
Most gaming laptops pair an integrated GPU (here an AMD Radeon 780M) with a discrete NVIDIA GPU (here an RTX 4070 Max-Q). Which GPU renders, and which GPU each display connector is physically wired to, decides both performance and stability. On Linux with the open nouveau driver an Ada Lovelace card cannot reclock and is pinned at boot clocks, so a game "running on Linux" was in fact running on the iGPU. Installing the proprietary driver and choosing the right system76-power graphics mode fixes this.
Find out how the ports are wired first
ls /sys/class/drm/andcat /sys/class/drm/card*-*/statusshow which card owns each connector. On the HP Victus 16 (VictusPop):card0-HDMI-A-1is the NVIDIA card,card1-eDP-1(internal panel) is the AMD card.glxinfo -Bshows the actual renderer. Before the driver install it reported "AMD Radeon 780M (radeonsi)", proving the game had been on the iGPU all along.xrandr --listprovidersshows the PRIME roles (Source Output = renders, Sink Output = scans out).
If the only display in use (an external monitor) hangs off the dGPU while the iGPU renders, every frame is rendered on the iGPU and copied across PCIe to the NVIDIA card purely for scanout ("reverse PRIME"). That is a constant per-frame cost, not just in games, and it also capped the 4K monitor at 2880x1620.
Install (Pop!_OS)
sudo apt update && sudo apt install -y system76-driver-nvidia
- The meta package decides the branch: it pulled
nvidia-driver-595even thoughapt-cache policy nvidia-driver-580listed 580 as a candidate. Check what the meta package depends on, not what a versioned package says. - Before rebooting, verify: DKMS built for the running kernel (
dkms status, modules in/lib/modules/$(uname -r)/updates/dkms/),blacklist nouveaupresent in/lib/modprobe.d/nvidia-graphics-drivers.conf, and the initramfs timestamp is after the module build. nvidia-smierroring "couldn't communicate with the NVIDIA driver" before the reboot is expected: nouveau still holds the card.- Secure Boot off means DKMS modules load unsigned, no MOK enrollment.
mokutilmay not be installed; read/sys/firmware/efi/efivars/SecureBoot-8be4df61-...directly (last byte 0 = disabled).
Graphics modes
| Mode | Who renders | Notes |
|---|---|---|
hybrid |
iGPU primary, dGPU via offload (__NV_PRIME_RENDER_OFFLOAD=1 etc.) |
Laptop panel always works; NVIDIA fault only kills the offloaded app |
nvidia |
dGPU renders and scans out | No reverse-PRIME copy; native 3840x2160@60 on HDMI; no launch options needed |
integrated |
iGPU only | dGPU powered off |
Switch: sudo system76-power graphics nvidia && systemctl reboot. After the switch xrandr --listproviders showed Provider 0 = NVIDIA-0 (Source Output), and glxinfo -B with no env vars reported the RTX 4070.
Reasons hybrid still exists (weighed and judged outweighed when the only monitor is on the dGPU): idle thermals and fan noise (dGPU always powered), blast radius, fallback if an NVIDIA update breaks, historically flakier suspend/resume in NVIDIA-primary (System76 stages NVreg_EnableS0ixPowerManagement=1 in /etc/modprobe.d/system76-power.conf), and smoother Wayland on AMD-primary.
Recovery
- In hybrid, if the external display fails, open the lid: eDP is on amdgpu and comes up regardless of NVIDIA.
- In nvidia mode that lifeline is gone. Black screen: Ctrl+Alt+F3 to a TTY,
sudo system76-power graphics hybrid, reboot. - Full revert:
sudo apt remove system76-driver-nvidia && sudo apt autoremove, reboot (back to nouveau).
The amdgpu 6.18 crash workaround
The 780M (Phoenix3, gfx1103) has recurring crashes on kernel 6.18.x (gfxhub page faults, ring timeout, MES failure), an upstream MES/CWSR regression. Workaround on the kernel command line:
sudo kernelstub -a "amdgpu.cwsr_enable=0 amdgpu.ppfeaturemask=0xfffd7fff"
Confirm with cat /proc/cmdline. NVIDIA-primary mode also takes amdgpu mostly out of the display path, which may sidestep the bug.
Gotchas
- Never infer install history from file mtimes. dpkg preserves the .deb's mtime on conffiles, so
/etc/modprobe.d/nvidia-graphics-drivers-kms.confdated two months earlier was the upstream build date, not a previous install. Usedpkg -S,/var/log/dpkg.log,/var/log/apt/history.log*. - A user's memory that "I tried this before" may refer to another install; the logs settle it.
- kernelstub prints
invalid sys_vendor: 'HP'on non-System76 hardware; harmless. - With mixed GPUs, using the internal panel always crosses GPUs; see Powering off an HDMI monitor kills the KDE X11 session (hybrid-GPU laptop).
See also
- Powering off an HDMI monitor kills the KDE X11 session (hybrid-GPU laptop)
- "Mouse and keyboard dead" on X11: frozen display vs stuck grab
- Trackmania (2020) on Linux via Steam and Proton, plus the TICK TAS tool
- VictusPop, Justin's desktop (hardware, OS, boot, quirks)
Linked from
- "Mouse and keyboard dead" on X11: frozen display vs stuck grab
- Powering off an HDMI monitor kills the KDE X11 session (hybrid-GPU laptop)
- Self-hosted video streaming with Jellyfin and Tailscale
- Trackmania (2020) on Linux via Steam and Proton, plus the TICK TAS tool
- VictusPop, Justin's desktop (hardware, OS, boot, quirks)