nvidia.lua forces LIBVA_DRIVER_NAME=nvidia on hybrid laptops where the dGPU drives no displays
Summary
On an Optimus laptop where the Intel iGPU drives the panel and the NVIDIA dGPU
drives no outputs, default/hypr/nvidia.lua sets LIBVA_DRIVER_NAME=nvidia
session-wide. Every VA-API client then decodes video on the dGPU while
rendering and compositing on the iGPU, so each decoded frame is copied across
PCIe before it can be drawn. The result is visible stutter on any page carrying
video, plus the dGPU held awake for no benefit.
Expected
VA-API decode uses the GPU that renders and drives the display — iHD on this
machine.
Actual
LIBVA_DRIVER_NAME=nvidia is exported to all clients. Chromium reports
GL_RENDERER as ANGLE (Intel, Mesa Intel(R) UHD Graphics (CML GT2)) but loads
nvidia_drv_video.so for decode.
Impact
Measured on this machine, scrolling a video-bearing page (an X timeline, which autoplays video as posts enter the viewport):
with nvidia |
with iHD |
|
|---|---|---|
| VA driver loaded by Chromium's GPU process | nvidia_drv_video.so |
iHD_drv_video.so |
| Chromium memory resident on the dGPU | 201 MiB | 4 MiB, no compute apps |
| dGPU power draw | 14 W | 9.9 W |
| Scrolling | visibly juddery | smooth |
During a 120 s trace sampled at 250 ms, Chromium's renderer peaked at 484% of one core and its GPU process at 228%, while Hyprland peaked at only 48% — the compositor was never the bottleneck. Text-only pages were smooth throughout, and Firefox was unaffected because it does not use VA-API here.
Root cause
default/hypr/nvidia.lua:
if o.shell_succeeds(o.shell_quote(nvidia)) then
if o.shell_succeeds(o.shell_quote(nvidia_gsp)) then
hl.env("NVD_BACKEND", "direct")
hl.env("LIBVA_DRIVER_NAME", "nvidia")
hl.env("__GLX_VENDOR_LIBRARY_NAME", "nvidia")
omarchy-hw-nvidia-gsp matches on vendor 0x10de, class 0x03*, and device ID
>= 0x1e00. It does not distinguish a dGPU that drives displays from a
render-only dGPU on a hybrid laptop. This machine's TU106M (10de:1f14) matches,
so the branch fires even though the NVIDIA GPU drives nothing.
Steps to reproduce
- Optimus laptop, Intel iGPU driving the internal panel, NVIDIA dGPU (device ID
>= 0x1e00) with no connected outputs. systemctl --user show-environment | grep LIBVA→LIBVA_DRIVER_NAME=nvidia.- Open a page that autoplays video while scrolling; scroll it. Judder.
- Close the browser and relaunch it as
LIBVA_DRIVER_NAME=iHD chromium --app=<url>. Smooth.
Confirm which driver is loaded with:
GP=$(pgrep -f 'chromium.*type=gpu-process' | head -1)
grep -oE '[^/]*_drv_video\.so' /proc/$GP/maps | sort -u
Suggested fix
Gate the VA-API line on whether the NVIDIA GPU actually drives a display, rather than on its presence and device ID. The kernel already exposes this — on this machine every NVIDIA connector is disconnected and the only connected output belongs to i915:
card1-DP-1 [nvidia] = disconnected
card1-DP-2 [nvidia] = disconnected
card1-DP-3 [nvidia] = disconnected
card1-HDMI-A-1 [nvidia] = disconnected
card2-eDP-1 [i915] = connected
so /sys/class/drm/card*-*/status gives a cheap sysfs-only test consistent with
the existing detectors' avoidance of lspci. NVD_BACKEND and
__GLX_VENDOR_LIBRARY_NAME may deserve the same treatment; I have not tested
those and am not claiming they are wrong.
Caveat on that gate
On this chassis all four external outputs (HDMI-A-1, DP-1/2/3) belong to the NVIDIA GPU; the iGPU owns only the internal eDP-1. So a naive "is any NVIDIA connector connected" test would flip the moment an external monitor is plugged in, changing decode behaviour under the user based on what is docked — plausibly worse than being consistently wrong. Gating on whether the dGPU drives the primary output, or simply preferring the driver that matches the GPU doing the rendering, would be steadier. I do not have a docked machine to test against and am not claiming to know the right rule, only that presence of the device is the wrong signal.
Workaround
~/.config/hypr/envs.lua containing hl.env("LIBVA_DRIVER_NAME", "iHD"),
required from hyprland.lua after require("default.hypr.omarchy").
Related
- #4901 (open, no maintainer response) — "Hybrid Intel+NVIDIA: Chromium hardware
acceleration requires manual workarounds". Same hardware class, and the
reporter found
LIBVA_DRIVER_NAME=iHDto be a partial fix, but the issue is scoped to DMA-BUF visual corruption and black screens and works around it with--disable-gpu-compositing. It does not identifydefault/hypr/nvidia.luaas the source of the setting, and does not cover the video-decode stutter. This report is narrower: a detector that fires on the presence of a dGPU rather than on whether it drives a display. - #6005 (closed) —
libva-nvidia-driveron pre-Maxwell-2 NVIDIA. Different cause; also ends in VA-API pointed at hardware that should not serve it.
Not established
Whether this is a regression. It was noticed immediately after an update to 4.0.1, but the previous package had already been pruned from the pacman cache, so there was nothing to diff. mesa 26.1.7 → 26.2.1 landed in the same update and may have changed the interop path; that is speculation, not a finding. The misconfiguration itself is reproducible regardless.
System details
- Omarchy 4.0.1-1, Hyprland 0.56.2, kernel 7.1.9-arch1-2
- Intel Core i7-10750H
- iGPU: Intel CometLake-H GT2 [UHD Graphics]
8086:9bc4 - dGPU: NVIDIA TU106M [GeForce RTX 2070 Mobile / Max-Q Refresh]
10de:1f14 - mesa 1:26.2.1-1, chromium 151.0.7922.173-1
- intel-media-driver 26.2.4-1, libva-nvidia-driver 0.0.17-1
I can reproduce the same session environment on a different Optimus laptop, and I have numbers for __GLX_VENDOR_LIBRARY_NAME and NVD_BACKEND as well as LIBVA_DRIVER_NAME.
This is a Dell XPS 14 9440 on Omarchy 4.0.1-1, Hyprland 0.56.2, kernel 7.1.9-arch1-2. The Intel Arc GPU (Meteor Lake, 8086:7d55) drives the built-in panel (eDP-1). The NVIDIA RTX 4050 Max-Q (10de:28a1) is a 3D controller. It has no DRM connectors at all: no HDMI, no DisplayPort, nothing in /sys/class/drm belonging to NVIDIA. Your machine is different in that respect. Your RTX 2070 exposes HDMI and DP, all disconnected; this 4050 does not even expose those nodes. omarchy-hw-nvidia-gsp is still true, because it only looks for an NVIDIA display-class device with a Turing-or-later ID. default/hypr/nvidia.lua therefore still sets LIBVA_DRIVER_NAME=nvidia, __GLX_VENDOR_LIBRARY_NAME=nvidia, and NVD_BACKEND=direct for the whole session.
On 4.0.0 those variables were not applied. nvidia.lua gates on o.shell_succeeds(), and inside Hyprland that helper always returned false (#6914). 4.0.1 fixed the helper (#6939), and after that reboot the three variables show up in systemctl --user show-environment. I did not meter watts on 4.0.0 versus 4.0.1 as packages. What I did meter is the configuration nvidia.lua produces on 4.0.1 versus the same machine with those three variables pointed at the iGPU instead.
Experiment
The question was: if the only change is those vendor variables, what happens to battery draw and to whether the NVIDIA GPU stays in a working PCI runtime state?
I ran the same sequence twice. The laptop, kernel, backlight (sysfs brightness 200 of 400), and running desktop (Hyprland, Omarchy bar, one existing terminal) were unchanged. The AC adapter was unplugged so the battery figures are discharge, not charge. The only intended difference was the three environment variables.
Sampling was every two seconds from sysfs: battery current and voltage, converted to watts, and the NVIDIA device’s power/runtime_status. I did not run nvidia-smi during the runs. Querying it resumes the GPU and would have made idle look busy.
Each run was:
- Three minutes idle at the desktop.
- Two minutes in a
footterminal with light scrolling output. - Four minutes in the Brave web browser, started with a throwaway
--user-data-dirso it was not my normal profile. It opened example.com, Wikipedia’s hybrid-graphics page, and Hacker News. I was not driving autoplay video; this was ordinary page load and scrolling. - Three minutes idle again.
The first run was stock 4.0.1: nvidia.lua as shipped. The second run did not edit /usr/share/omarchy. In ~/.config/hypr/hyprland.lua, after require("default.hypr.omarchy"), I loaded a user file that overwrites the three variables:
hl.env("LIBVA_DRIVER_NAME", "iHD")
hl.env("__GLX_VENDOR_LIBRARY_NAME", "mesa")
hl.env("NVD_BACKEND", "")
Then I rebooted so systemd’s user environment and new clients all saw Mesa and iHD instead of NVIDIA. I did not flip the three variables one at a time. The override matches the block nvidia.lua sets.
Results
| Phase | Stock 4.0.1 (NVIDIA as session GL/VA-API vendor) | User override (Mesa + LIBVA=iHD) |
|---|---|---|
| Idle, 3 min | 5.7 W mean; NVIDIA runtime_status=active in 0% of samples |
5.7 W mean; active 0% |
| Terminal, 2 min | 5.7 W mean; active 0% | 5.7 W mean; active 0% |
| Brave (web browser), 4 min | 13.6 W mean, 12.7 W median; active in 99% of samples | 8.1 W mean, 6.4 W median; active in 9% of samples, only short wakes at start and end |
| Idle after Brave, 3 min | 6.0 W mean; active 2% | median still about 5.6 W |
At idle and in a terminal the 4050 stays runtime-suspended in both configurations. The dGPU is not stuck on just because nvidia.lua ran. In Brave, with the stock NVIDIA vendor environment, the dGPU stays active for essentially the whole four minutes and the battery draws about six watts more than with Mesa/iHD. With the override, the dGPU is suspended for most of the browse.
That supports the issue’s point that LIBVA_DRIVER_NAME=nvidia is the wrong session default when the iGPU owns the panel. Your Chromium traces are about VA-API decode on the dGPU while rendering on the iGPU. This run was a normal Brave window without that video-scroll repro, and __GLX_VENDOR_LIBRARY_NAME=nvidia (together with the other two) was enough to keep the dGPU awake and to add those ~6 W. On this chassis the problem is not only video decode.
Detector
I agree that “is there an NVIDIA chip?” is the wrong gate. Checking sysfs for a connected NVIDIA DRM connector would stay false here, because this 4050 has no connectors. I also agree with the caveat already in the report: on a laptop where HDMI or DisplayPort is wired to NVIDIA, that same check would change when an external monitor is plugged in. I have not measured a docked setup.
Workaround
The user file quoted above, loaded after Omarchy’s Hyprland defaults, is what produced the Mesa/iHD column. I have not changed packaged files. For a single application that should use the 4050 I would still use prime-run or __NV_PRIME_RENDER_OFFLOAD=1.
Confirming the same behaviour on a third NVIDIA generation and on a non-ISO install.
System (differs from the reports so far in GPU generation, CPU and distro):
- Intel Core i5-13420H; iGPU Raptor Lake-P UHD
8086:a7a8(i915), drives the internal panel - NVIDIA AD107M / RTX 4050 Max-Q
10de:28a1— Ada, vs TU106M here and RTX 3050 Ti (Ampere) in #8215 — drives no outputs - CachyOS, kernel
7.2.0-1-cachyos,linux-cachyos-nvidia-open7.2.0-1, nvidia-utils 610.57.04 - Omarchy 4.0.1-1, installed by hand over CachyOS rather than from the ISO
- mesa
3:26.2.1-1, intel-media-driver26.2.4-1.1, libva-nvidia-driver0.0.17-1.1, libva2.24.1-1.1, hyprland0.56.2-1, chromium151.0.7922.173-1.1
Measured on this machine:
systemctl --user show-environment→LIBVA_DRIVER_NAME=nvidia,NVD_BACKEND=direct- Chromium's GPU process runs with
--render-node-override=pointed at the Intel render node while mapping/usr/lib/dri/nvidia_drv_video.so— decode on the dGPU, GL on the iGPU - Symptom here is corruption rather than only stutter, and it is intermittent: the same Reddit permalink rendered clean on one load and corrupt on the next
hl.env("LIBVA_DRIVER_NAME", "iHD") in ~/.config/hypr/hyprland.lua fixes it; the GPU process then maps iHD_drv_video.so on the Intel node. Verified persistent across two reboots, no corruption since.
One data point for the "detection criterion, not driver version" reading: this machine showed the same symptom back under the Omarchy 3.x layout, where a hand-written ~/.config/hypr/envs.conf carried env = LIBVA_DRIVER_NAME,nvidia (copied from the widely circulated Hyprland "NVIDIA stability" recipe, which assumes a desktop where the NVIDIA GPU drives the display). Same variable, same wrong GPU, same result — long before Omarchy set it automatically. I can't date the onset precisely enough to make a stronger claim than that, so treat it as anecdote, not evidence. It does suggest the advice is common enough that Optimus users may arrive here having already set it themselves.
Two things that cost time while verifying, in case they save someone else:
/proc/<pid>/environfor Chromium is all NUL bytes — Chromium overwrites its own environment block, so the variable cannot be read back that way. Read the loaded backend from/proc/<gpu-pid>/mapsinstead. Also note/proc/<pid>/environonly ever reflects the environment atexec, so a laterhl.env/setenvis invisible there and its absence is not a failure.- DRM render node numbers are not stable across boots on this machine;
renderD128andrenderD129swapped vendors between two reboots. Resolve them via/sys/class/drm/renderD*/device/ueventrather than assuming a fixed number. (And greppingmapswith a[a-z0-9_]+\.sopattern gives a false negative foriHD_drv_video.so— it needsA-Z.)
Control case: this hybrid does not get LIBVA_DRIVER_NAME=nvidia.
MSI GS70, Haswell 8086:0416 + GTX 970M 10de:13d8 (Maxwell, below omarchy-hw-nvidia-gsp's 0x1e00). Omarchy 4.0.1-1. Display is Intel eDP-1; NVIDIA is class 0x030200 3D-only.
Detectors: omarchy-hw-nvidia 0, omarchy-hw-nvidia-gsp 1, omarchy-hw-nvidia-without-gsp 0.
Quickshell environ:
NVD_BACKEND=egl
__GLX_VENDOR_LIBRARY_NAME=nvidia
No LIBVA_DRIVER_NAME. That is the nvidia.lua non-GSP branch. Intel VAAPI is i965 (libva-intel-driver); vaInitialize on /dev/dri/renderD129 succeeds as Intel i965 driver for Intel(R) Haswell Mobile - 2.4.5.
So #8328 / #8215 / #7851 are GSP-era hybrids. This #2706 laptop is the machine that already takes the safe LIBVA path. Forcing LIBVA_DRIVER_NAME=nvidia here would break the i965 we just installed.
- atavacron, Grok 4.6 (high)
Confirming on AMD iGPU + NVIDIA, Omarchy 4.0.2, with Chromium scroll stutter (Firefox-based browsers are fine).
System
- Omarchy 4.0.2-1, Hyprland 0.56.2, kernel 7.1.9-arch1-2
- Chromium 151.0.7922.173-1, mesa 26.2.1, nvidia-open-dkms / nvidia-utils 610.57.04, libva-nvidia-driver 0.0.17
- AMD Cezanne (Renoir) iGPU
1002:1638— VGA, drives botheDP-1andHDMI-A-1(card1/renderD128) - NVIDIA GA107M RTX 3050 Mobile
10de:25a2— 3D controller only, no display connectors (card0/renderD129) - Detectors:
omarchy-hw-hybrid-gpu0,omarchy-hw-nvidia0,omarchy-hw-nvidia-gsp0
Same shape as the 3D-only Optimus boxes already in this thread (Intel Arc + 4050, etc.), just AMD instead of Intel.
What Omarchy sets
systemctl --user show-environment:
LIBVA_DRIVER_NAME=nvidia
NVD_BACKEND=direct
__GLX_VENDOR_LIBRARY_NAME=nvidia
default/hypr/nvidia.lua still keys off GSP-era NVIDIA presence. It does not consult omarchy-hw-hybrid-gpu, and it does not check which DRM device actually has connected outputs. On this chassis that is always the AMD GPU.
NVIDIA power/runtime_status stays active while Chromium is open (P8, ~8 W, 0% SM util) — the dGPU is held awake for browsing.
Symptom
Chromium on native Wayland (--ozone-platform=wayland): scrolling stutters. Worst on feeds with autoplay video, but it is also visible on ordinary long pages.
Zen (Firefox) on the same session, same compositor, same env vars: scrolling is smooth.
That split matches the GPU-selection difference, not a generic NVIDIA Wayland bug:
- Hyprland composites on AMD (the panel owner).
- Firefox/WebRender binds to the compositor's DRM device, so it stays on Mesa/
radeonsi. - Chromium's GPU process follows GLVND.
10_nvidia.jsonoutranks50_mesa.json, andLIBVA_DRIVER_NAME=nvidiasends VA-API to NVDEC. Decode/EGL land on the 3050; the compositor imports those DMA-BUFs onto AMD.
chrome://gpu vs Zen about:support show that split (Mesa/AMD active in Firefox; Chromium on the NVIDIA VA/EGL path).
Expected
On a hybrid laptop whose displays are wired only to the iGPU, session VA-API/GLX should follow the iGPU (radeonsi here, iHD on Intel). LIBVA_DRIVER_NAME=nvidia is the wrong default when the dGPU drives no outputs. PR #7851 looks like the right gate.
I have not applied a local override yet, so this is stock 4.0.2 behaviour.
Related: #8215 (NVDEC-on-hybrid video glitches), #4901 (Chromium HW accel on Intel+NVIDIA). This report is the AMD-iGPU equivalent, with scroll stutter rather than only video corruption.
Confirmed in source. This is the same defect as #8215, which carries the fuller diagnosis and the regression pin — treating that as the canonical issue for the cluster, with #4901 as the older provenance report.
The mechanism, verified
Your root-cause section is correct as written. bin/omarchy-hw-nvidia-gsp:14-18 matches vendor 0x10de, class 0x03*, device >= 0x1e00, and nothing in default/hypr/nvidia.lua:10-19 asks whether that GPU renders or scans out. Worth adding that class 0x03* also matches 0x0302 ("3D controller"), which by definition drives no display — several machines in this thread are exactly that.
On whether it is a regression, which you listed under "Not established": it is, and it can be pinned. 33d7363c in 4.0.1 ("Fix o.shell_succeeds() always returning false inside Hyprland") is the commit. Under 4.0.0, os.execute() could not retrieve an exit status inside the compositor, so every branch in nvidia.lua was dead and these machines were accidentally correct. nvidia.lua is byte-identical across v4.0.0..v4.0.2, so the mesa 26.1.7 → 26.2.1 bump in the same update is not needed to explain it — your instinct to treat that as speculation was right.
@jtmorris's measurement is the part this thread should not lose
The 99%-versus-9% runtime_status=active split during browsing, and the ~6 W, isolate __GLX_VENDOR_LIBRARY_NAME as a cost independent of the video corruption. That matters for the shape of the fix: PR #7851 gates LIBVA_DRIVER_NAME alone and explicitly leaves the other two variables set, so it would close the corruption on your machine and leave that 6 W in place. It is the clearest evidence in the cluster that the predicate question and the scope question are separate.
@atavacron's control case checks out against the source: a GTX 970M (10de:13d8) is below 0x1e00, so bin/omarchy-hw-nvidia-without-gsp:20 matches instead and LIBVA_DRIVER_NAME is never set — which is why that machine is fine, and why forcing it there would break the i965 driver. And @gabrielforster's entrypoint tables add a consequence nobody had named: nvidia_drv_video.so is a decode-only NVDEC wrapper with zero VAEntrypointEnc*, so the pin also silently removes hardware encode from every VA-API client on the machine.
Your caveat on the gate is the reason this is not a one-line fix
You wrote that a naive "is any NVIDIA connector connected" test would flip the moment an external monitor is plugged in, and that this is "plausibly worse than being consistently wrong". That has held up as the sharpest objection in the cluster. nvidia.lua runs during config parse, via default/hypr/envs.lua:39, and hl.env cannot rewrite the environment of a process that is already running — so a docking event cannot be tracked by any predicate of this kind without a relogin.
Three PRs now target this line with three different predicates: #7851 (2+ display vendors), #9483 (NVIDIA owns a connected display), #8263 (the complement, for the initramfs side). Choosing between them — and deciding whether __GLX_VENDOR_LIBRARY_NAME and NVD_BACKEND come along, and what to do about the non-GSP branch at nvidia.lua:15-17 — is the maintainer's decision rather than a defect to correct, so nothing further is needed from you here.
One trap in your workaround
~/.config/hypr/envs.lua is never loaded. config/hypr/hyprland.lua requires hypr.monitors, hypr.input, hypr.bindings, hypr.looknfeel and hypr.autostart; nothing in the repository requires hypr.envs. That is #9902. Your override works only if that file is required from hyprland.lua by hand, as you describe — anyone who creates the file and stops there gets nothing and reasonably concludes the diagnosis was wrong.
Reviewed by Claude Opus 5 and independently by Codex at xhigh reasoning effort. Codex agreed on the root cause, the 4.0.1 attribution, and that the remedy is a design decision; independence is not guaranteed where it merely agrees. Neither reviewer reproduced the symptom — no triage worker has NVIDIA or hybrid graphics — so the mechanism is proven in source and the judder rests on your measurements and the others in this cluster.
Maxwell hybrid follow-up, now that the #9483 detector exists.
This GS70 (Haswell 8086:0416 + GTX 970M 10de:13d8, class 0x030200, no NVIDIA DRM connectors; Intel owns eDP-1) still takes the non-GSP branch: NVD_BACKEND=egl, __GLX_VENDOR_LIBRARY_NAME=nvidia, no LIBVA_DRIVER_NAME. That is unchanged.
Ran both open-PR detectors against live sysfs, without installing either PR:
omarchy-hw-hybrid-gpu-sysfs(#7851) → exit 0. Vendors0x8086+0x10de. A 3D-only NVIDIA card still counts. 7851 fixtures 7/7.omarchy-hw-nvidia-drives-display(#9483) → exit 1.card1has no connectors, so a connected-output gate stays false here. 9483'snvidia.luawraps the entireif nvidiablock, so it would also drop the non-GSPNVD_BACKEND/__GLX_VENDOR_LIBRARY_NAMEpair on this machine.
So #9483 does cover the no-GSP branch. #7851 does not (it only skips LIBVA_DRIVER_NAME inside the GSP arm). #8263 is a different bug: initramfs early-load vs hibernate resume (omarchy-hw-nvidia-only-display), not nvidia.lua env.
@Adityavijayvargiya01's detector 0s read as exit codes (match), which agrees with 10de:25a2 ≥ 0x1e00 and the GSP env dump. 7851's sysfs hybrid detector is the one nvidia.lua would consult, not omarchy-hw-hybrid-gpu (lspci/supergfxd). Unset LIBVA_DRIVER_NAME rather than hardcoding iHD / radeonsi / amdgpu — amdgpu is not a libva driver name.
~/.config/hypr/envs.lua is still never required from config/hypr/hyprland.lua (#9902). An override has to go in hyprland.lua after require("default.hypr.omarchy"), or in hypr.autostart.
- atavacron, Grok 4.6 (high)
Confirming this on AMD+NVIDIA (the thread so far is Intel-based), with a quantified A/B.
Machine: Ryzen 9 6900HX / Radeon 680M (iGPU, drives the panel) + RTX 3080 Mobile (drives no outputs, sits at 0% / 4MiB), Omarchy 4.0.2, Hyprland 0.56.2, kernel 7.1.9, mesa 26.2.1, nvidia-open 610.57.04, Chromium 151.
Symptom: juddery scrolling on x.com in Chromium. Firefox on the same compositor is smooth, which is what narrowed it here — both are native Wayland clients getting identical input.
Error chain, once per affected frame:
eglCreateImage failed with 0x00003009 # EGL_BAD_MATCH
Failed to create EGLImage: EGL_SUCCESS
native_pixmap_egl_binding.cc:76 Unable to initialize binding from pixmap
ozone_image_backing.cc:317 ProduceSkiaGanesh failed to create GL representation
shared_image_manager.cc:269 ProduceSkia: incompatible backing: CompoundImageBacking
NVIDIA-decoded frames can't be imported as EGLImages into the AMD/Mesa EGL context, so every one falls back to CompoundImageBacking (CPU copy). X's timeline autoplays video continuously, so the fallback runs constantly — hence scroll judder rather than the black-video symptom in #8726.
Measured, same page (two autoplaying <video> elements), same Chromium, 15s each, only LIBVA_DRIVER_NAME differing:
LIBVA_DRIVER_NAME |
eglCreateImage failures | EGL_BAD_MATCH | pixmap bind failures |
|---|---|---|---|
nvidia (Omarchy default) |
1766 | 1766 | 883 |
radeonsi |
0 | 0 | 0 |
Workaround (user config loads after Omarchy's defaults, so it wins and survives omarchy update):
-- ~/.config/hypr/hyprland.lua
hl.env("LIBVA_DRIVER_NAME", "radeonsi")
Scrolling is smooth with that applied.
Worth noting the gate in nvidia.lua keys on NVIDIA presence via omarchy-hw-nvidia, not on whether the dGPU drives any connected output — so drmModeGetResources-style output check (or reading /sys/class/drm/card*-*/status) would fix the whole class, including #8726 and #9708. __GLX_VENDOR_LIBRARY_NAME=nvidia is set by the same block and is wrong on these machines for the same reason (see #9688).
Same root cause, worse symptom: on a hybrid Intel Iris Xe + NVIDIA RTX 3050 Ti laptop, this misconfiguration caused Chromium to hit a full FATAL abort rather than just stutter.
- First-ever Chromium launch on a freshly installed machine (installed 11:22, booted 11:50, crashed 12:00:22).
nvidiaDRM confirmed not driving any output:[drm] Cannot find any crtc or sizes.- Session had
__GLX_VENDOR_LIBRARY_NAME=nvidia/LIBVA_DRIVER_NAME=nvidiafromnvidia.lua. - Chromium's own crashpad minidump captured:
FATAL:content/browser/gpu/gpu_data_manager_impl_private.cc:417] GPU process isn't usable. Goodbye.— signal SIGTRAP (IMMEDIATE_CRASH), not a segfault. coredumpctlconfirms this was a one-off (no prior/repeat crashes on this machine), consistent with the GPU process exhausting its restart budget after repeated failed inits, rather than ongoing corruption.
Omarchy 4.0.2-1, Chromium 151.0.7922.173-1. Sounds like this should also be fixed by #9483.
Filed by Sonnet 5 via Claude Code.
Another AMD iGPU + NVIDIA confirmation, but with a connector layout that differs from every report so far — and I think it breaks the detector criterion being discussed above.
System
- ASUS ProArt, Omarchy on Arch, kernel 7.1.9-arch1-2, Hyprland 0.56.2
- AMD Strix Radeon 880M/890M
1002:150e— class 0380 (Display controller),card1/renderD128 - NVIDIA AD106M RTX 4070 Max-Q
10de:2820— class 0300 (VGA),card0/renderD129 - mesa
1:26.2.1-1, nvidia-open-dkms / nvidia-utils610.57.04, libva-nvidia-driver0.0.17-1, chromium151.0.7922.173 supergfxctl -g→Hybrid
Detectors:
omarchy-hw-nvidia true
omarchy-hw-nvidia-gsp true <- fires the branch
omarchy-hw-nvidia-without-gsp false
omarchy-hw-hybrid-gpu true <- correct, and nvidia.lua never consults it
systemctl --user show-environment → LIBVA_DRIVER_NAME=nvidia, NVD_BACKEND=direct, __GLX_VENDOR_LIBRARY_NAME=nvidia.
Why this chassis is a counter-example for the connector check
Every report so far has an NVIDIA chip that is 3D-controller-only with no DRM connectors. This one is class VGA and does expose connectors — they are simply unplugged:
amdgpu card1-eDP-1 connected (internal panel)
amdgpu card1-DP-11 connected (external monitor, via USB-C dock)
nvidia card0-HDMI-A-1 disconnected
nvidia card0-DP-12 disconnected
So "does the NVIDIA device have DRM connectors?" is true here and would keep the bug.
The refined "does it have a connected connector?" check has a worse problem on this machine: amdgpu exposes no HDMI connector at all. The laptop's physical side HDMI port is wired to the dGPU. Plug a monitor into it and that check flips to nvidia — while AMD still owns the internal panel, still owns the dock outputs, and is still what Hyprland composites on. The session would go back to routing VA-API through NVDEC and the bug returns, on a machine that is even more clearly iGPU-driven than before.
That suggests output ownership is the wrong signal in either form. The question that actually matters is which DRM device the compositor renders on.
Symptom
One specific 4K VP9 YouTube video (3840x2160, 30fps, SDR): audio plays normally, but there is no picture and no player controls at all — the whole player UI is missing, not just the video surface. Scrolling or opening devtools makes the window shake until it settles. Chromium and Edge both affected; Firefox on the same session is fine. Not an extension — reproduced with uBlock Origin removed. Most other videos play fine.
Also seen as scroll judder around an inline 720p h264 <video> in a GitHub README, which I believe is the same root cause, though I did not isolate that one as carefully.
One narrowing result
I pulled the offending streams and decoded them outside the browser with ffmpeg VA-API, both drivers, on the AMD render node:
| stream | radeonsi | nvidia shim |
|---|---|---|
| VP9 1080p (the same video) | clean | clean |
| VP9 2160p (the same video) | clean | clean |
| h264 720p | clean | — |
| hevc 720p | clean | — |
| av1 720p | clean | — |
So the shim decodes these streams correctly in isolation. The failure appears to need Chromium's cross-GPU path — decode on the dGPU, import onto the iGPU for compositing — rather than being a plain libva decode bug. That may help narrow it.
Also worth noting for the fix: radeonsi covers h264 / hevc / vp9 / av1 on this iGPU, so nothing is lost by switching.
Workaround
LIBVA_DRIVER_NAME=radeonsi chromium fixes it immediately — video and controls both return. I have put the persistent form in ~/.config/hypr/hyprland.lua after require("default.hypr.omarchy"):
hl.env("LIBVA_DRIVER_NAME", "radeonsi")
Confirmed across a re-login. systemctl --user show-environment now reports LIBVA_DRIVER_NAME=radeonsi and the video plays normally — picture, controls and audio.
Isolating the dGPU wake: it is not __GLX_VENDOR_LIBRARY_NAME
Because I changed only LIBVA_DRIVER_NAME and left __GLX_VENDOR_LIBRARY_NAME=nvidia and NVD_BACKEND=direct exactly as nvidia.lua sets them, this session is the single-variable case the earlier measurement could not provide.
With Chromium running (16 processes), sampling the dGPU every 2 s for 20 s:
$ cat /sys/bus/pci/devices/0000:65:00.0/power/runtime_status # + power_state
10/10 samples: suspended D3cold
Fully powered down, in D3cold, while browsing — with the NVIDIA GLX vendor still selected. Compare @jtmorris's stock run, where the dGPU was active in 99% of samples across four minutes of ordinary browsing.
So __GLX_VENDOR_LIBRARY_NAME=nvidia is not what holds the GPU awake, and the three-variable workaround is doing more than it needs to. LIBVA_DRIVER_NAME alone both fixes the decode corruption and lets the dGPU suspend. That supports the CUDA-context reading below.
Two honest limits on this: I have not metered watts here, so I can only report the runtime power state and not confirm the ~6 W directly; and this is one chassis, where the earlier run was an Intel + 4050. Someone on that hardware flipping only LIBVA_DRIVER_NAME would confirm it generalises.
I deliberately did not override the other two variables, and I would gently push back on the three-variable workaround above:
__GLX_VENDOR_LIBRARY_NAMEselects the GLX vendor for X11 clients. Chromium under--ozone-platform=waylanduses EGL and never reads it; EGL vendor selection comes fromegl_vendor.dordering and is per-device, and NVIDIA's EGL will not claim an amdgpu node. Changing it does move XWayland GL apps off the dGPU, which is a real cost for anyone who games.- The dGPU staying
activefor the whole browsing phase in @jtmorris's measurement is, I believe, the shim's CUDA context underNVD_BACKEND=direct: a live CUDA context pins the GPU out of runtime suspend for as long as the client lives. That fits the shape of the data exactly — active only while the browser is open, suspended before and after — and it is consistent with the D3cold result above, where the shim is never loaded because VA-API resolves to radeonsi, so no CUDA context is ever created.
Extra note
supergfxctl -s here is [Integrated, Hybrid, Vfio] — there is no MUX / dGPU-only mode, so the AMD iGPU can never be switched off and radeonsi is the correct value in every mode this machine supports. On chassis that do offer a MUX mode, a static override would want revisiting when the dGPU drives the panel directly.
Investigated with Claude Code; hardware details, detector output and decode tests are from my machine.
I was also hitting this issue and fixed it with the same hl.env("LIBVA_DRIVER_NAME", "iHD") recommendation. Chromium would rapidly stutter and become unresponsive when playing video and also sometimes when opening Chrome extensions.
Before the fix:
LIBVA_DRIVER_NAME=nvidia
NVD_BACKEND=direct
__GLX_VENDOR_LIBRARY_NAME=nvidia
Launching Chrome with --disable-gpu eliminated the issue, and overriding LIBVA_DRIVER_NAME to iHD fixed it while retaining hardware acceleration.
Hardware Intel Arrow Lake-P Arc Pro 130T/140T NVIDIA RTX PRO 1000 Blackwell Laptop GPU
Fixed in https://github.com/omacom/omarchy/pull/11431 — nvidia.lua now detects hybrid GPU and uses Intel iHD for VA-API video decode instead of forcing nvidia.
Automated duplication check: this issue looks similar to #8215, which covers the same forced NVIDIA VA-API breaks hybrid laptop video. I keep that one open and close this one to keep the discussion in one place.
If you feel this is the wrong decision, please open the issue again with a note on the difference.