Hybrid AMD+NVIDIA laptop: forcing LIBVA_DRIVER_NAME=nvidia breaks all hardware-decoded video (black video players)
What happens
On a hybrid AMD + NVIDIA laptop where the internal panel is driven by the AMD iGPU,
Omarchy sets LIBVA_DRIVER_NAME=nvidia, which breaks all hardware-decoded video.
Video players render as a black rectangle. The media itself loads and decodes fine —
in Chromium the <video> element reports readyState=4, error=null, correct
videoWidth/videoHeight — the frames simply never reach the screen.
This affects any page with a <video> element (GitHub video attachments, YouTube, etc.)
and is present from install, on every boot.
Expected
Hardware-decoded video renders.
Root cause
/usr/share/omarchy/default/hypr/nvidia.lua sets, whenever a GSP-capable NVIDIA GPU
is detected:
hl.env("NVD_BACKEND", "direct")
hl.env("LIBVA_DRIVER_NAME", "nvidia")
hl.env("__GLX_VENDOR_LIBRARY_NAME", "nvidia")
The detector checks only whether an NVIDIA GPU exists — not whether it is the GPU the compositor renders on. On this machine the connectors are split across both GPUs:
card2-eDP-1 (internal panel) -> 0000:06:00.0 AMD HawkPoint2 iGPU
card1-HDMI-A-1 (external) -> 0000:01:00.0 NVIDIA RTX 4050 Mobile
Hyprland composites on the AMD iGPU. Forcing LIBVA_DRIVER_NAME=nvidia routes VA-API
decode to NVDEC on the dGPU, and NVDEC output carries an NVIDIA-vendor DRM modifier that
radeonsi cannot import. The zero-copy path from decoder to compositor is therefore
structurally impossible, and decoded frames are dropped instead of displayed.
The same cross-GPU import failure shows up in Hyprland's logs as repeated failed
hardware-cursor blits (GL_INVALID_OPERATION), which force a software cursor.
Steps to reproduce
- Hybrid AMD + NVIDIA laptop, internal panel wired to the AMD iGPU.
- Install Omarchy; confirm
LIBVA_DRIVER_NAME=nvidiais exported into the session. - Open any page with an HTML5
<video>element in Chromium. - The player is a black rectangle; controls work, timeline does not paint.
Verification (A/B)
Same page, same Chromium binary, ~60s apart, launched via Playwright with only the
environment differing. Screen captured with grim (a CDP screenshot does not
reproduce this — it bypasses the compositing path):
| Environment | Result |
|---|---|
LIBVA_DRIVER_NAME=nvidia (Omarchy default) |
black box |
LIBVA_DRIVER_NAME=radeonsi |
renders correctly |
LIBVA_DRIVER_NAME unset (libva auto-detects) |
renders correctly |
Isolated further: changing LIBVA_DRIVER_NAME alone is sufficient. No EGL/GLX change is
needed, so the NVIDIA-driven external output keeps working.
Unsetting the variable entirely is stable: GPU-process count held constant across page load,
no renderer crash, no browser disconnect, readyState=4 with correct dimensions.
Suggested fix
Gate the LIBVA_DRIVER_NAME=nvidia assignment on the NVIDIA GPU actually being the
render device the compositor uses, rather than merely being present.
On hybrid systems where the compositor renders on the iGPU, either option works (both verified above):
- leave
LIBVA_DRIVER_NAMEunset and let libva auto-detect per render node, or - set it to match the render GPU (
radeonsifor AMD,iHDfor Intel).
Leaving it unset is the smaller change and avoids hardcoding a per-vendor driver name.
NVD_BACKEND=direct becomes inert once the NVIDIA VA-API driver is no longer selected.
Workaround
In ~/.config/hypr/hyprland.lua, after require("default.hypr.omarchy"):
hl.env("LIBVA_DRIVER_NAME", "radeonsi")
Requires a re-login; hyprctl reload does not re-export session env.
System details
- Omarchy 4.0.1-1 (stable channel)
- CPU: AMD Ryzen 7 7445HS w/ Radeon 740M Graphics
- GPUs: NVIDIA AD107M RTX 4050 Max-Q/Mobile [10de:28a1] + AMD HawkPoint2 [1002:1901]
- Kernel 7.1.9-arch1-2
- nvidia-open-dkms 610.57.04-1, nvidia-utils 610.57.04-1, libva-nvidia-driver 0.0.17-1
- mesa 1:26.2.1-1
- Hyprland 0.56.2
- Chromium 151.0.7922.173 (Arch)
Confirming on different hardware: ASUS laptop, Ryzen 7 5800H (Cezanne iGPU) + RTX 3050 Mobile [10de:25a5], Omarchy 4.0.1-1, same stack otherwise (nvidia-utils 610.57.04-1, libva-nvidia-driver 0.0.17-1, mesa 1:26.2.1-1, Hyprland 0.56.2, Chromium 151.0.7922.173). Here both connectors (eDP-1 and HDMI-A-1) are wired to the AMD iGPU; Hyprland composites on AMD.
Same failure mode: pages with playing video in Chromium (YouTube, Google Meet) flicker, then the window goes black/transparent while audio keeps playing. Chromium's GPU process had nvidia_drv_video.so loaded while rendering with --render-node-override=/dev/dri/renderD129 (the AMD node). No amdgpu/nvidia errors in the kernel log — the frames just never reach the screen.
One data point to add, since it may explain hard-to-reproduce reports: on our machine the bug looked intermittent, and the cause is that different launch paths carry different environments. Apps launched through the Omarchy menu (quickshell) inherit LIBVA_DRIVER_NAME=nvidia captured at login, while apps exec'd directly by Hyprland inherited no LIBVA variable at all — libva then auto-detects radeonsi from the AMD render node and video plays fine. The same browser "randomly" works or breaks depending on how it was started.
The OP's workaround (hl.env("LIBVA_DRIVER_NAME", "radeonsi") in ~/.config/hypr/hyprland.lua, then re-login) fixes it here too. Also verified Cezanne's radeonsi VA-API decode path works via ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD129. +1 for gating the assignment on the GPU the compositor actually renders with — or leaving LIBVA_DRIVER_NAME unset so libva auto-detects per render node.
Adding an Intel-side confirmation while keeping this report’s AMD scope intact. My laptop has an Intel Raptor Lake-P iGPU driving the internal display plus an RTX 4060 Max-Q dGPU. Under Omarchy 4.0.2-1, the inherited NVIDIA VA-API/GL environment was also present, and Discord’s incoming stream stayed blank in the Chromium web app.
Update: using the Intel-specific LIBVA_DRIVER_NAME=iHD override restored Discord incoming-stream video. I have not assumed radeonsi is the right value for Intel; the cross-vendor signal is that video-decoder selection should follow the display/rendering device rather than merely the presence of NVIDIA.
This connects with #8989 and #4901; #9483 is the proposed upstream implementation.
Confirming on near-identical hardware, with an A/B measurement of the VA-API path on Chromium 152.
System
- ASUS laptop, Ryzen 7 5800H (Cezanne iGPU
1002:1638,card1/renderD128, driveseDP-1) - RTX 3050 Mobile
10de:25a2(card0/renderD129, zero connected outputs), supergfxctl inHybrid - Omarchy 4.0.3-1, nvidia-utils 610.57.04-1, libva-nvidia-driver 0.0.18-1, mesa 1:26.2.2-1, Hyprland 0.56.2-2, Chromium 152.0.7977.82
The session inherited LIBVA_DRIVER_NAME=nvidia, NVD_BACKEND=direct, __GLX_VENDOR_LIBRARY_NAME=nvidia, as reported. The GSP branch of nvidia.lua is the one taken here (omarchy-hw-nvidia-gsp matches; the RTX 3050 is Ampere).
A/B, same file (6 s 640×360 H.264), isolated Chromium profile with --enable-logging=stderr --vmodule='*vaapi*=2'
LIBVA_DRIVER_NAME=nvidia: GPU process maps/usr/lib/dri/nvidia_drv_video.so; the log fills with ~5,900 lines, nearly allImageEGL.cpp:118 (operator()): eglCreateImage failed with 0x00003009(EGL_BAD_MATCH).LIBVA_DRIVER_NAME=radeonsi:VaapiVideoDecoder()initializes with zero VA/EGL failures (only an unrelated XDG portal warning).
So this is not only a power/dGPU-wake issue: on an iGPU-primary muxless hybrid the forced NVIDIA VA-API path fails continuously, while the iGPU path is clean.
Working local override on 4.0.x (placed after require("default.hypr.omarchy") in ~/.config/hypr/hyprland.lua, so it wins):
hl.env("LIBVA_DRIVER_NAME", "radeonsi")
hl.env("__GLX_VENDOR_LIBRARY_NAME", "mesa")
Two long-lived processes also cache the session env and need restarting for the menu/web-app launch paths to pick the override up: systemctl --user restart wayland-wm-app-daemon.service (used by uwsm-app, otherwise it forwards its stale env), omarchy restart shell (quickshell holds the old env too), plus systemctl --user set-environment for systemd-launched apps — then restart the browser.
Re the pending detector fix (#9483): it answers "no" here — NVIDIA has no connected outputs and the built-in panel is on the AMD card — so it would resolve this machine. prime-run still works for dGPU apps with the override.
Posted with AI assistance (OpenCode agent) from the machine above; reviewed before posting.
Confirming this also reproduces on a full desktop (not a hybrid laptop) — worth broadening the scope of the fix.
Hardware: AMD Ryzen 9800X3D (iGPU) + NVIDIA GeForce RTX 3070. Single monitor, wired directly to the RTX 3070's output.
0000:01:00.0 NVIDIA GA104 [GeForce RTX 3070]: boot_vga = 0
0000:0c:00.0 AMD Granite Ridge (9800X3D iGPU): boot_vga = 1
Even though the monitor cable goes into the NVIDIA card (not the iGPU), the CPU's integrated graphics is still boot_vga, and default/hypr/nvidia.lua unconditionally sets LIBVA_DRIVER_NAME=nvidia on GSP-capable NVIDIA detection — same mismatch as the laptop cases (#8726, #10590), just via boot_vga rather than "panel wired to iGPU". Symptom identical: YouTube/any <video> element plays audio with a black frame, spinner keeps showing.
Workaround (~/.config/hypr/hyprland.lua, after require("default.hypr.omarchy")):
hl.env("LIBVA_DRIVER_NAME", "radeonsi")
confirmed this fixes video playback.
Omarchy env: Hyprland 0.56.2, nvidia-open-dkms 610.57.04-1, libva-nvidia-driver, Chromium.
The detector in PR #10589 (boot-VGA based) should already generalize correctly to this desktop case too, since it isn't laptop-specific — just flagging that the affected population is broader than "hybrid laptops."
Independent confirmation on different silicon, plus an A/B of both pending fixes.
System
- ASUS ROG Zephyrus G14 GA403WW, Ryzen AI 9 HX 370 (Radeon 890M iGPU) + RTX 5080 Max-Q (GB203M)
- Omarchy 4.0.3-1, Hyprland 0.56.2, nvidia-open-dkms / nvidia-utils 610.57.04-1, libva-nvidia-driver 0.0.18-1, mesa 26.2.2, Chrome 153.0.8010.36
NVIDIA 0000:64:00.0 card1/renderD128 class 0x030000 boot_vga=0
DP-1, HDMI-A-1, eDP-1 -> all disconnected
AMD 0000:65:00.0 card2/renderD129 class 0x038000 boot_vga ABSENT
eDP-2 (internal panel) + DP-3 connected
Both connected outputs hang off the AMD card; Hyprland and Chromium render on renderD129. So the affected population is broader than "laptop panel on the iGPU" — it is any hybrid where the compositor's card is not the NVIDIA card.
A/B, same Chrome binary, same video, same machine
Headed Chrome, --enable-logging=stderr --vmodule=vaapi*=2,video_decoder*=1, frames measured from the composited window with grim (CDP screenshots bypass the path and do not show it).
| Session env | VA driver in the GPU process | Log | Video region | dGPU |
|---|---|---|---|---|
LIBVA_DRIVER_NAME=nvidia (shipped default) |
nvidia_drv_video.so + libgallium |
3 × VaapiVideoDecoder(), 0 VA failures, 2482 × eglCreateImage failed 0x00003009 in ~15 s |
mean RGB [16,16,16], 0.0 % frame change, 126 colours |
active |
| all three unset | libgallium only |
3 × VaapiVideoDecoder(), 0 VA failures, 0 EGL failures |
[115,135,141], 0.0 % black, 63.9 % frame change, 311k colours |
suspended |
LIBVA_DRIVER_NAME unset, NVD_BACKEND/__GLX_* left set |
libgallium only |
3 × VaapiVideoDecoder(), 0 EGL failures |
[158,179,191], 99.3 % frame change |
suspended |
Root cause is as the OP describes: VA-API decodes on NVDEC and the resulting surfaces cannot be imported into the iGPU GL context (eglCreateImage → EGL_BAD_MATCH), so the video layer never paints while the clock keeps running. Hardware decode on the iGPU is roughly half the CPU of the software fallback in the same 10 s window: 29.3 % vs 50.5 % of the Chrome process tree.
Note that the minimal fix is to stop exporting the variable on these machines: libva then resolves radeonsi from the AMD render node Chromium renders with. No driver name needs to be hardcoded.
Two traps worth writing down for whoever lands the fix
- An empty value is not an unset value.
LIBVA_DRIVER_NAME=""makes libva try to load a driver literally named"":vaInitialize failed: unknown libva error. Chromium then silently software-decodes — the picture is correct, so this looks fixed, whilechrome://gpustill reports "Video Decode: Hardware accelerated" and CPU roughly doubles. A first version of our workaround used the empty string and hid the problem this way.hl.envrequires a string, so a Hyprland config cannot express "unset" — only a real driver name (or no call at all). - The session env is snapshotted per process, and some launchers forward their own copy — matching what @NamanBalaji and @Adityavijayvargiya01 reported.
uwsm apprelays the env of whatever called it, so after changing the session env you must also restartwayland-wm-app-daemon.serviceandomarchy restart shell, or log out; otherwise the menu path keeps handing out the old value while a freshly started terminal is already correct.
The two pending fixes, executed against this machine
I extracted both detectors from the PR diffs and ran them here (OMARCHY_PCI_DEVICES_PATH default):
- #9483
omarchy-hw-nvidia-drives-display→ exit 1 ("do not claim NVIDIA") — correct. The resulting session state is exactly the "all three unset" row above, which I verified renders hardware-decoded video. Gating all three variables also looks right: with__GLX_VENDOR_LIBRARY_NAME=nvidiastill exported, XWayland GLX clients are pointed at a presumably suspended dGPU, which is the same category of mistake. - #10589
omarchy-hw-nvidia-display→ exit 0 ("claims NVIDIA") — this machine would stay broken. Itsboot_vgapremise does not hold here: the AMD device is a Display controller (class 0x038000) and exposes noboot_vgaattribute at all, so the loop never observesboot_vga=1,other_bootstaysfalse, and the "no boot-VGA information exists → keep the previous behaviour" fallback fires — even though the NVIDIA device does reportboot_vga=0, i.e. arbitration information exists and says "not NVIDIA". Suggested: treat a readableboot_vgaon any display device as determinable (NVIDIA reads0⇒ do not claim), and only fall back when no display device exposes the attribute; or drop the fallback for the connected-connector check used in #9483. Separately, boot VGA is not the same as "drives the display" — see @Pieter-Uys' desktop, where the monitor is on the NVIDIA card whileboot_vgasits on the iGPU.
Attaching a before/after screenshot pair and omarchy-debug --no-sudo --print output.
Independent confirmation on Intel + NVIDIA (third vendor combo, different iGPU driver).
System
- ASUS laptop, Intel i7-12650H (Alder Lake-P UHD Graphics [8086:46a3],
boot_vga=1) + RTX 4050 Max-Q [10de:28a1] (boot_vga=0) - Omarchy 4.0.4-1, Hyprland 0.56.2, nvidia-open-dkms 610.57.04-1, libva-nvidia-driver 0.0.18-1, mesa 1:26.2.2-1, Chromium 152.0.7977.82 (Arch), kernel 7.2.5-3-omarchy
NVIDIA 0000:01:00.0 card1/renderD128 class 0x030000 boot_vga=0
DP-1 -> disconnected
Intel 0000:00:02.0 card2/renderD129 class 0x030000 boot_vga=1
eDP-1 (internal panel) + HDMI-A-1 (external) -> both connected
Both connected outputs hang off the Intel card; Hyprland composites on renderD129.
A/B
Same machine, fresh Chromium instances, env confirmed per-process via /proc/<pid>/environ:
| Session env | Result |
|---|---|
NVD_BACKEND=direct, LIBVA_DRIVER_NAME=nvidia, __GLX_VENDOR_LIBRARY_NAME=nvidia (shipped default) |
audio plays, video region stays black |
| all three unset | video renders, hardware-decoded |
LIBVA_DRIVER_NAME=iHD, other two left set |
video renders, hardware-decoded (now the permanent workaround) |
Verification was user-visual (no grim frame analysis); the env-stripped and iHD cases were confirmed working in live use, and the iHD override survived an omarchy update + reboot cycle.
Both pending detectors get this machine right
Ran the two PR detectors extracted from the diffs (OMARCHY_PCI_DEVICES_PATH/OMARCHY_DRM_CLASS_PATH defaults):
- #9483
omarchy-hw-nvidia-drives-display→ exit 1 — correct - #10589
omarchy-hw-nvidia-display→ exit 1 — correct here
Unlike @remydw's AMD machine, the boot_vga premise holds on this Intel hybrid: the iGPU is VGA class (0x030000) with a readable boot_vga=1, and the NVIDIA device reads boot_vga=0, so the "no attribute → keep previous behavior" fallback does not fire. The two PRs agree on this class of hardware; they diverge only where boot_vga info is absent or partially present.
Note on hyprctl reload re-exporting env
Contrary to the "requires re-login" expectation (and the comment above about hyprctl reload not re-exporting), on this machine hyprctl reload did re-export the session env: after adding hl.env("LIBVA_DRIVER_NAME", "iHD") to ~/.config/hypr/hyprland.lua and running hyprctl reload, a process spawned via the compositor showed the new value, and Chromium launched through the compositor picked it up without re-login, without restarting the app daemon or the shell. Caveat: this is the Hyprland-native exec path only — menu/uwsm-launched processes were not tested and may still carry a stale snapshot as described above.
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.