Fixing external display issues on hybrid NVIDIA laptops (and a nice VRAM bonus)

On some Linux setups, especially with NVIDIA GPUs, it’s common to fall back to running everything on the dGPU. It “just works,” but it comes with downsides, higher power usage, limited flexibility, and in some cases, excessive VRAM usage.

A common symptom that pushes people into this setup is simple: you can’t get both the internal display and an external monitor working at the same time when hybrid graphics is enabled.

This usually isn’t a hardware limitation. It’s a configuration problem.

The root cause

If your system is set to hybrid graphics (via BIOS or a vendor tool like Lenovo Vantage), but Linux still behaves like it’s dGPU-only or won’t use internal/external displays correctly, the likely cause is an old Xorg configuration file forcing NVIDIA as the primary/only GPU.

Typical signs:

The culprit is usually:

/etc/X11/xorg.conf

Especially if it was generated by nvidia-xconfig.

Why this breaks things

That file explicitly tells Xorg:

This overrides Ubuntu’s PRIME setup entirely. As a result:

The fix

Remove the forced configuration and let Xorg auto-configure.

sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
reboot

That’s it.

After reboot, verify

Run:

glxinfo | grep "OpenGL renderer"

You should see your AMD (or Intel) iGPU, not NVIDIA.

Then:

nvidia-smi

You should see:

What this fixes

Side benefit: more VRAM for CUDA

If you run CUDA workloads, this matters.

With the dGPU no longer handling:

you recover a significant chunk of VRAM that was previously unavailable.

Final note

Avoid using nvidia-xconfig or manually writing full Xorg configs on hybrid systems. Modern setups rely on dynamic configuration, and forcing a single GPU usually causes more problems than it solves.

If hybrid mode is enabled in firmware and prime-select is set to on-demand, the system should work without any custom Xorg configuration.