Skip to content

Honor Aquamarine's GPU selection for Chromium - #1

Open
imr-git wants to merge 4 commits into
josefdc:fix/hybrid-chromium-eglfrom
imr-git:fix/chromium-aq-drm-renderer
Open

imr-git wants to merge 4 commits into
josefdc:fix/hybrid-chromium-eglfrom
imr-git:fix/chromium-aq-drm-renderer

Conversation

@imr-git

@imr-git imr-git commented Oct 10, 2026 •

Copy link
Copy Markdown

This is stacked on omacom#5312 and rebased onto its current head, 1b35ef4.

Summary

  • Treat the first entry in AQ_DRM_DEVICES as Hyprland/Aquamarine's primary renderer, ahead of boot_vga.
  • When that renderer is Intel or AMD, resolve its DRM render node through sysfs and give Chromium matching DRI_PRIME and --render-node-override values unless the caller supplied its own render-node override.
  • Leave Intel VA-API driver selection to libva, including its iHD-to-i965 compatibility fallback, while preserving explicit user choices; select radeonsi for AMD.
  • Extend the desktop-override install gate to cover an NVIDIA display GPU with an explicitly configured Intel/AMD Aquamarine primary.
  • Recognize Omarchy's trusted Chromium GPU wrapper as Chromium for browser-window focus and running-browser singleton handoff.
  • Add fixture-based regression tests for the muxed Mac layout, the existing iGPU-display path, Intel systems with both VA drivers installed, caller overrides, focus behavior, and handoff behavior.

Why boot_vga is insufficient here

This was reproduced on a MacBookPro11,3 (Intel Iris Pro/i915 + NVIDIA GT 750M/Nouveau). NVIDIA is boot_vga and owns the display connectors, while AQ_DRM_DEVICES deliberately puts Intel first so Hyprland renders there and copies frames to NVIDIA for scanout. The current omacom#5312 check therefore treats this as an NVIDIA-rendered system and skips its workaround.

Evidence from the affected machine:

  • On August 28, Chromium's GPU process crashed with SIGSEGV in libgallium 26.1.8 while launched with renderD128.
  • renderD128 maps to the Nouveau NVIDIA GPU; renderD129 maps to Intel i915.
  • Kernel logs around the failures contain bursts of Nouveau DATA_ERROR / INVALID_VALUE messages attributed to Chromium, with no OOM event.
  • A local workaround installed September 13 selected Intel with DRI_PRIME, Mesa EGL, i965, and a dynamically resolved render-node override. No later Chromium coredump or Chromium-attributed Nouveau error was present through October 10.

That before/after result is why this change carries the workaround into omacom#5312, but uses AQ_DRM_DEVICES and sysfs rather than hard-coding this machine's PCI address or render-node number.

Review findings addressed

The October 10, October 13, and October 21 reviews of omacom#5312 raised five implementation findings. This stack now addresses all five:

  • Older Intel video decoding: does not force an Intel VA driver, allowing libva's compatibility fallback and preserving an explicit user choice. The regression fixture installs both iHD and i965.
  • Links stop raising Chromium: maps omarchy-launch-chromium back to Chromium's window class.
  • Every link starts another process: lets only Omarchy's trusted Chromium GPU wrapper use the existing singleton-socket handoff; arbitrary wrappers remain rejected.
  • Inherited NVIDIA VA-API selection: clears Omarchy’s inherited nvidia value when Chromium is routed to Intel, while preserving explicit iHD and i965 choices. The regression fixture covers the inherited NVIDIA value.
  • Conflicting GPU selectors: a caller-provided --render-node-override takes priority, so the wrapper does not inject a potentially conflicting DRI_PRIME value.

Tests

The related suites pass:

  • bash test/shell.d/hybrid-chromium-test.sh
  • bash test/shell.d/launch-browser-test.sh
  • bash test/shell.d/browser-handoff-test.sh
  • bash test/shell.d/hw-nvidia-test.sh
  • bash test/shell.d/hybrid-gpu-test.sh
  • bash test/shell.d/provision-user-test.sh
  • bash test/shell.d/default-browser-lookup-test.sh
  • bash test/shell.d/webapp-install-test.sh
  • bash test/shell.d/chromium-copy-url-test.sh
  • bash -n on every changed shell file
  • git diff --check

The full CLI suite passes. The full shell suite completed all 371 files; all Chromium/browser/hybrid-GPU coverage passed, with 16 unrelated environment or baseline failures involving read-only runtime paths, a missing companion omarchy-pkgs checkout, missing local applications, and unrelated agent, background, Elsewhen, update, and USB fixtures.

@imr-git
imr-git force-pushed the fix/chromium-aq-drm-renderer branch from e43e073 to 5d8860e Compare October 12, 2026 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant