omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Display flashing in Chromium on X.com on hybrid Intel+NVIDIA laptop (LIBVA_DRIVER_NAME=nvidia forces NVIDIA VA-API while Chromium renders on iGPU)

Open joebdrx opened this issue 3 months ago • 6 comments


name: About about: Hybrid-GPU laptop: X.com display flashing in Chromium caused by Omarchy's global LIBVA_DRIVER_NAME=nvidia title: 'Display flashing in Chromium on X.com on hybrid Intel+NVIDIA laptop (LIBVA_DRIVER_NAME=nvidia forces NVIDIA VA-API while Chromium renders on iGPU)' labels: bug assignees: ''

Summary

On a hybrid-graphics laptop (Intel iGPU driving the display, NVIDIA dGPU in Hybrid mode via supergfxd), Chromium exhibits rapid display flashing/flickering only on x.com (Twitter). The browser window content strobes repeatedly while video autoplays in the feed.

Root cause

Omarchy's Hyprland config (/usr/share/omarchy/default/hypr/nvidia.lua) exports session-wide env vars when an NVIDIA GPU is detected:

NVD_BACKEND=direct
LIBVA_DRIVER_NAME=nvidia
__GLX_VENDOR_LIBRARY_NAME=nvidia

These vars are appropriate for single-GPU NVIDIA systems, but on a hybrid laptop in Hybrid mode they leak into Chromium (and every other app). Chromium's GPU process renders on the Intel iGPU (--render-node-override=/dev/dri/renderD128), but LIBVA_DRIVER_NAME=nvidia forces its hardware video decoder through the NVIDIA VA-API path (libva-nvidia-driver/NVDEC on renderD129). The decoded frames must then be imported back to the iGPU compositor, and that cross-GPU buffer import fails on every video frame:

ERROR: ui/gl/angle_platform_impl.cc(47)] ImageEGL.cpp:118 (operator()): eglCreateImage failed with 0x00003009   (EGL_BAD_MATCH)
ERROR: ui/ozone/common/native_pixmap_egl_binding.cc(76)] Unable to initialize binding from pixmap
ERROR: gpu/command_buffer/service/shared_image/ozone_image_backing.cc(317)] OzoneImageBacking::ProduceSkiaGanesh failed to create GL representation
ERROR: gpu/command_buffer/service/shared_image/shared_image_manager.cc(269)] SharedImageManager::ProduceSkia: Trying to produce a Skia representation from an incompatible backing: CompoundImageBacking

~4,500 of these errors accumulated in ~3 minutes of an X.com feed scroll — one per video frame attempt. Each failed import visually manifests as a flash. The user session journal (journalctl --user) shows the identical error signature from Chromium on x.com only; other sites' video and apps are unaffected or less noticeable because X.com autoplays many back-to-back videos while scrolling.

System info

  • Omarchy 4.0.1-1, kernel 7.1.9-arch1-2
  • Chromium 151.0.7922.173 (Arch package), Wayland/ozone-wayland, Hyprland 0.56.2
  • CPU: Intel Tiger Lake-H (iGPU: UHD Graphics, i915), dGPU: NVIDIA GTX 1650 Mobile (TU117M)
  • NVIDIA driver: nvidia-open-dkms 610.57.04, nvidia-drm.modeset=1, GSP firmware loaded
  • supergfxd 5.2.7 in Hybrid mode (dGPU on-demand; iGPU drives display)
  • libva-nvidia-driver 0.0.17, intel-media-driver 26.2.4 installed

Reproduction

  1. Omarchy on hybrid Intel+NVIDIA laptop, supergfxd in Hybrid mode (iGPU drives display).
  2. Open Chromium with X.com feed with autoplaying video.
  3. Observe rapid flashing of the browser window while videos play/scroll.

Console check: journalctl --user -b | grep 'eglCreateImage failed' fills with 0x00003009 while the flashing occurs.

Verified fix / workaround

Override the VA-API driver back to the Intel one for Chromium only (no root, no session-wide change):

env LIBVA_DRIVER_NAME=iHD chromium

With this env override, flashing stops completely and the identical X.com scroll/video session produces zero eglCreateImage errors. Hardware decode still works (via intel-media-driver on the iGPU that renders the display).

Suggested fix in Omarchy

nvidia.lua should not set LIBVA_DRIVER_NAME=nvidia (and arguably not NVD_BACKEND/__GLX_VENDOR_LIBRARY_NAME session-wide) when supergfxd is in Hybrid mode and the iGPU is driving the display. Possible approaches:

  1. Detect the active graphics mode (e.g. supergfxctl -g == Hybrid) and skip the NVIDIA VA-API env vars in that case; or
  2. Only export these vars when the NVIDIA GPU is the display-driving GPU (Integrated-mode-with-dGPU / dGPU-only setups), not in Hybrid.

Happy to test patches. Thanks for a great distro!

joebdrx avatar Sep 02 '26 00:09 joebdrx

Confirming this on different hardware, and with Brave rather than Chromium — so the bug is not Chromium-specific, it follows the session-wide env var.

System

  • Omarchy, kernel 7.1.9-arch1-2, Hyprland 0.56.2
  • iGPU: Intel Alder Lake-P GT2 (Iris Xe), i915 — drives the only active output
  • dGPU: NVIDIA TU117GLM (T600 Laptop), nvidia
  • supergfxd: inactive (not installed/running) — so this reproduces without supergfxd at all, purely from nvidia.lua detecting an NVIDIA GPU
  • Display: HDMI-A-1 (ASUS VP249, 1920x1080@144) on card2 = PCI 00:02.0 = the Intel iGPU
  • Browser: Brave (brave-origin), Wayland/ozone

Confirmed the GPU split

Brave's GPU process with the stock Omarchy env:

6 fd -> /dev/dri/renderD129   (NVIDIA)
1 fd -> /dev/dri/renderD128   (Intel — the GPU driving the display)
loaded: nvidia_drv_video.so, libEGL_nvidia + libEGL_mesa,
        libnvidia-eglcore/glsi/allocator

Measurements

Same x.com feed, same scroll, 90 seconds each, only LIBVA_DRIVER_NAME differs:

nvidia (Omarchy default) iHD (workaround)
eglCreateImage failed 4188 0
EGL_BAD_MATCH 0x00003009 4190 0
native_pixmap binding fail 2095 0
ProduceSkiaGanesh fail 4192 0
total stderr lines 12758 189

With iHD the GPU process loads iHD_drv_video.so and the flickering stops. Hardware decode still works.

Note for anyone else trying to reproduce

journalctl --user shows nothing for Brave. The /opt/brave-origin-bin/brave-origin wrapper does:

exec 2> >(exec cat >&2)

so stderr goes to a pipe, not journald. I spent a while chasing zero counts before noticing. To capture it you have to relaunch with stderr redirected to a file:

LIBVA_DRIVER_NAME=nvidia /opt/brave-origin-bin/brave-origin \
  --enable-logging=stderr --app=https://x.com/ 2> /tmp/brave.log

Also worth noting: the failure is content-dependent, not just site-dependent. On the same machine, a plain YouTube video and YouTube Shorts produced 0 errors over 55s and 60s respectively — only the x.com feed triggers it here. So "can't reproduce on YouTube" should not be read as "not affected".

Workaround applied

hl.env("LIBVA_DRIVER_NAME", "iHD") in ~/.config/hypr/hyprland.lua, which loads after Omarchy's defaults and overrides nvidia.lua.

Supports the suggested fix: nvidia.lua should not set LIBVA_DRIVER_NAME=nvidia when the display is driven by the iGPU. Checking which DRM card owns the connected connectors would catch this case without depending on supergfxd being present.

symonbaikov avatar Sep 02 '26 11:09 symonbaikov

I can independently reproduce this on another Omarchy 4.0.2 hybrid Intel + NVIDIA laptop, and my environment appears to match the suspected nvidia.lua issue.

System

  • Omarchy: 4.0.2-1
  • Kernel: 7.1.9-arch1-2
  • Hyprland: 0.56.2
  • Laptop: Dell G15 5530
  • CPU: Intel Core i5-13450HX
  • iGPU: Intel UHD / i915
  • dGPU: NVIDIA GeForce RTX 3050 Laptop GPU
  • NVIDIA driver: nvidia-open-dkms 610.57.04

The internal eDP display and Hyprland compositor are running on the Intel GPU.

DRM nodes:

Intel i915:
  card2
  renderD129
  PCI 0000:00:02.0

NVIDIA RTX 3050:
  card1
  renderD128
  PCI 0000:01:00.0

Session-wide environment

My Omarchy session contains:

LIBVA_DRIVER_NAME=nvidia
NVD_BACKEND=direct
__GLX_VENDOR_LIBRARY_NAME=nvidia

This is despite the Intel iGPU being the compositor/display GPU.

Relevant packages

brave-origin-bin       1:1.94.121-1
nvidia-open-dkms       610.57.04-1
nvidia-utils           610.57.04-1
libva-nvidia-driver    0.0.17-1
intel-media-driver     26.2.4-1
mesa                   1:26.2.1-1
xdg-desktop-portal-gtk 1.15.3-1
xdg-desktop-portal-hyprland 1.4.1-1

Native Wayland reproduction

With Omarchy's normal Brave flags:

--ozone-platform=wayland
--ozone-platform-hint=wayland

Brave's final command line also contains:

--render-node-override=/dev/dri/renderD129

renderD129 is the Intel iGPU, so Chromium itself is correctly rendering on Intel.

brave://gpu reports:

GPU0: NVIDIA
GPU1: Intel *ACTIVE*
GL_VENDOR: Google Inc. (Intel)
GL_RENDERER: ANGLE (Intel, Mesa Intel(R) Graphics ...)
Ozone platform: wayland

GPU acceleration remains enabled, including hardware video decode, compositing, rasterization, WebGL and WebGPU.

However the GPU log repeatedly produces:

eglCreateImage failed with 0x00003009
Unable to initialize binding from pixmap
OzoneImageBacking::ProduceSkiaGanesh failed to create GL representation
Trying to produce a Skia representation from an incompatible backing

I captured approximately 200 occurrences of eglCreateImage failed in one brave://gpu export.

This appears consistent with cross-GPU DMA-BUF/EGLImage handling while LIBVA_DRIVER_NAME=nvidia is forced session-wide despite Intel being the active rendering GPU.

A/B test: XWayland

I then tested:

/opt/brave-origin-bin/brave \
  --user-data-dir=/tmp/brave-x11-test \
  --ozone-platform=x11 \
  --disable-extensions

With this configuration the previous EGL/pixmap/OzoneImageBacking errors disappeared.

brave://gpu then reports:

GPU0: NVIDIA ... *ACTIVE*
GPU1: Intel
GL_VENDOR: Google Inc. (NVIDIA Corporation)
GL_RENDERER: ANGLE (NVIDIA Corporation, NVIDIA GeForce RTX 3050 6GB Laptop GPU ...)
Ozone platform: x11
GPU process crash count: 0

Hardware acceleration remains enabled:

Canvas: Hardware accelerated
Compositing: Hardware accelerated
OpenGL: Enabled
Rasterization: Hardware accelerated
Video Decode: Hardware accelerated
WebGL: Hardware accelerated
WebGPU: Hardware accelerated

I then made only this user-level change:

~/.config/brave-origin-flags.conf

from:

--ozone-platform=wayland
--ozone-platform-hint=wayland

to:

--ozone-platform=x11

The workaround also succeeds with my normal Brave profile, so the result is not specific to a clean profile or extensions.

I have both brave://gpu exports available:

  1. Native Wayland + Intel, reproducing the EGL failures.
  2. XWayland + NVIDIA, with the failures absent.

This seems to independently confirm that hybrid laptops where the iGPU is the actual compositor/render GPU should not receive NVIDIA-specific VA-API/GL environment variables globally merely because an NVIDIA dGPU is present.

Happy to test a patch to default/hypr/nvidia.lua or a proposed hybrid-GPU detection change.

about-gpu-2026-09-05T18-55-29-341Z.txt --> broken Wayland

about-gpu-2026-09-05T19-07-27-701Z.txt --> working X11

Jitheswar avatar Sep 05 '26 19:09 Jitheswar

Corroborating on different silicon and newer versions — same signature, same fix.

Hardware: Intel Raptor Lake-P Iris Xe [8086:a7a0] (i915) + NVIDIA RTX 2000 Ada Generation Laptop [10de:28b8] (nvidia-open-dkms 610.57.04). The compositor renders on the iGPU: aquamarine selects /dev/dri/card2 (i915), and Chrome self-selects --render-node-override=/dev/dri/renderD129.

Versions: Omarchy 4.0.3-1, Hyprland 0.56.2-2, kernel 7.2.3-arch1-3, mesa 26.2.2, google-chrome 152.0.7977.82 — so this survives the 4.0.1 → 4.0.3 and mesa 26.2.1 → 26.2.2 bumps.

Controlled measurement. Same 10s 720p H.264 clip over file://, fresh --user-data-dir per run, one variable changed, counting eglCreateImage failed lines across 14s:

LIBVA_DRIVER_NAME failures
unset 0
nvidia 802
iHD 0

Two additions to the report:

  1. Not X.com-specific and not live-stream-specific. A plain local <video> with an H.264 file reproduces it at ~60 failures/second. Any hardware-decoded video does.
  2. Unsetting is as good as forcing iHD here — libva's DRM autodetection resolves to the Intel driver on its own. The defect is purely the forced override, not a gap in autodetection.

Pitfall for anyone applying the workaround on 4.x: commenting the vars out in ~/.config/hypr/envs.conf does nothing. Sessions on hyprland.lua never load that file — its only reference is hyprland.conf:9, pointing at ~/.local/share/omarchy/, a path that no longer exists. A persistent fix has to land somewhere loaded after default.hypr.omarchy:

-- ~/.config/hypr/hyprland.lua
hl.env("LIBVA_DRIVER_NAME", "iHD")

and, since uwsm-app launches apps through systemd --user rather than inheriting Hyprland's env:

# ~/.config/environment.d/10-hybrid-gpu-vaapi.conf
LIBVA_DRIVER_NAME=iHD

Verified on a fresh login: Chrome launched via uwsm-app records 0 failures, down from 802.

chelsii0001 avatar Sep 10 '26 02:09 chelsii0001

Independent confirmation on different silicon, with a measured A/B and a user-side workaround that survives omarchy update.

System

  • Omarchy 4.0.3, Hyprland 0.56.2, aquamarine 0.15.0, kernel 7.2.3-arch1-3
  • ASUS ROG Zephyrus S GX531GWR — Intel UHD 630 [8086:3e9b] (iGPU, 00:02.0) + NVIDIA RTX 2070 Mobile Max-Q [10de:1f10] (01:00.0), muxless
  • nvidia-open-dkms 610.57.04, mesa 26.2.2, libva-nvidia-driver 0.0.18, intel-media-driver 26.2.4
  • Chrome 153.0.8010.36 and Chromium: identical behaviour, so it is not Chrome-specific

Notably this machine has no dgpu_disable/gpu_mux_mode in asus-nb-wmi, so supergfxd's Hybrid/Integrated modes are not available at all — the bug applies to hybrid laptops regardless of the supergfxd path mentioned in the summary.

Reproduction

Open x.com in Chrome or Chromium and scroll the timeline (x.com autoplays muted videos in the feed):

  • the page flickers across its whole width while scrolling; when idle it renders consistently (8 screenshots 150 ms apart were pixel-identical, so it is not a stale-frame freeze)
  • once a timeline video starts playing, the whole page wedges
  • the flicker follows the window: moving it to the other output (this machine drives a 3440x1440 LG over the dGPU's HDMI port while the internal panel sits on the iGPU) does not change it, so it is not output-specific

Browser-side workarounds do not touch it: --disable-gpu-rasterization and --disable-lcd-text made no difference, which fits — the fault is in the decode/compositing GPU pair, not in Chromium's rasterizer.

Mechanism, confirmed on this machine

Compositor renders on the iGPU:

DEBUG from aquamarine ]: drm: gpu /dev/dri/card2 becomes primary drm
DEBUG from aquamarine ]: drm: Starting backend for /dev/dri/card1, with driver nvidia-drm with primary /dev/dri/card2
DEBUG from aquamarine ]: Creating CDRMRenderer on gpu /dev/dri/renderD129

Chromium's GPU process renders on the same iGPU node — while VA-API decode runs on the dGPU:

--type=gpu-process --ozone-platform=wayland --render-node-override=/dev/dri/renderD129

Measured A/B — no log scraping needed

fuser on the dGPU's decode device is enough to see which GPU the browser decodes on:

$ fuser -v /dev/nvidia0          # session env: LIBVA_DRIVER_NAME=nvidia
/dev/nvidia0:  michaeltanyk  1275 F...m Hyprland
               michaeltanyk  1559 F...m voxtype-osd-gtk
               michaeltanyk  6027 F...m Hermes
               michaeltanyk 69407 F...m chrome          <-- decode on the dGPU

$ env -u NVD_BACKEND LIBVA_DRIVER_NAME=iHD /opt/google/chrome/chrome \
      --ozone-platform=wayland --app="https://x.com"

$ fuser -v /dev/nvidia0          # same browser, decode moved to the iGPU
/dev/nvidia0:  michaeltanyk  1275 F...m Hyprland
               michaeltanyk  1559 F...m voxtype-osd-gtk
               michaeltanyk  6027 F...m Hermes             <-- chrome gone

With the second configuration the flicker stops completely and video playback works, with decode still hardware-accelerated (intel-media-driver provides /usr/lib/dri/iHD_drv_video.so) — no CPU fallback, and the dGPU has less to do.

User-side workaround that survives updates

/usr/share/omarchy/default/hypr/nvidia.lua is packaged and read-only, so override it from the user config, which loads after the defaults:

-- ~/.config/hypr/hyprland.lua, after require("default.hypr.omarchy")
hl.env("LIBVA_DRIVER_NAME", "iHD")

Verification steps, in case they help others:

  1. hyprctl reload && hyprctl configerrors — must be clean.
  2. hyprctl eval 'hl.exec_cmd("sh -c \"env > /tmp/e.txt\"")', then grep /tmp/e.txt for LIBVA_DRIVER_NAME=iHD — a process spawned by Hyprland must inherit the override. Note hyprctl dispatch exec fails to parse under 0.56's Lua config (')' expected near 'sh') and hyprctl setenv does not reach spawned apps, so hl.exec_cmd is the idiom that works. /proc/<pid>/environ reflects exec-time state and cannot confirm an hl.env change in the live compositor.
  3. fuser -v /dev/nvidia0 — the browser should no longer hold the decode device.

Already-running browsers keep the old VA driver until relaunched.

Triage note

This looks like one of a large duplicate cluster: #11141, #11527, #10410, #11687, #11761, #9096, #8726, #10590, #8979 all describe the same LIBVA_DRIVER_NAME=nvidia leak on hybrid machines, and at least ten open PRs attempt the fix (#9138, #11690, #9812, #7851, #9483, #10588, #10589, #8514, #7314, #10024). Consolidating on one canonical issue/PR might be worth it, since every one of them currently has zero reviews.

I did not open a new issue for this, since #9708 already carries the same symptom and root cause.

michaeltanyk avatar Sep 15 '26 14:09 michaeltanyk

Still reproduces on Omarchy 4.0.4-1, with Brave Origin.

System: Dell laptop, Intel UHD CometLake-H (00:02.0, i915, boot_vga=1, drives eDP-1) + NVIDIA GTX 1650 Ti Mobile TU117M (01:00.0, class 0x0302 3D controller, no display). nvidia-open-dkms 610.57.04, libva-nvidia-driver 0.0.18, intel-media-driver 26.2.4, Hyprland 0.56.2, kernel 7.2.5-3-omarchy, Brave Origin 1.95.102 (Chromium 153).

Symptom: scrolling a page with a live video stream (webcam player) made the Brave window glitch and eventually go fully black; other tabs were fine. Brave's GPU process had libEGL_nvidia, nvidia_drv_video.so and /dev/nvidia* loaded while the compositor ran on Intel renderD129.

Note that omarchy-hw-nvidia / omarchy-hw-nvidia-gsp match this card even though its PCI class is 0x0302 (3D controller, which can't drive a display) and boot_vga=1 is on the Intel GPU. Either check would be enough to skip forcing the NVIDIA env.

Workaround: adding this line to ~/.config/brave-origin-flags.conf and restarting Brave fixed it completely:

--disable-features=VaapiVideoDecoder,AcceleratedVideoDecodeLinuxGL,AcceleratedVideoDecodeLinuxZeroCopyGL

(It turns off hardware video decoding in Brave only, so it doesn't depend on the session env and doesn't need Hyprland config overrides; see #9902 for why user envs.lua overrides currently don't load.)

Filed by Claude Opus 5 via Claude Code.

Pozadr avatar Sep 18 '26 10:09 Pozadr

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.

bjarneo avatar Sep 20 '26 20:09 bjarneo