Skip to content

Only force NVIDIA VA-API/GLX env when NVIDIA drives the display - #11690

Merged
ryanrhughes merged 2 commits into
omacom:quattrofrom
Yarlord:fix-hybrid-nvidia-vaapi
Sep 25, 2026
Merged

ryanrhughes merged 2 commits into
omacom:quattrofrom
Yarlord:fix-hybrid-nvidia-vaapi

Conversation

@Yarlord

@Yarlord Yarlord commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Fixes #11687.

On hybrid laptops the display is usually wired to the iGPU while the NVIDIA card only handles offloaded rendering. Forcing NVIDIA's VA-API/GLX drivers globally then breaks Chromium-based browsers (black YouTube video with audio still playing, broken scrolling — reproduced in both Brave and Chromium).

This adds an omarchy-hw-nvidia-display detector that reads the boot_vga sysfs flag using the same cached-sysfs style as the other omarchy-hw-nvidia* detectors (no lspci wakeups), and gates the LIBVA_DRIVER_NAME/__GLX_VENDOR_LIBRARY_NAME overrides in default/hypr/nvidia.lua on it. NVD_BACKEND is still set unconditionally since it is harmless when NVIDIA is not the display GPU. When boot_vga info is unavailable, the detector assumes NVIDIA drives the display to preserve current behavior.

Verified on the reporter's machine (AMD Phoenix boot_vga=1 + RTX 3050 boot_vga=0): unsetting those two vars fixes playback; with this change Hyprland will no longer set them there, while NVIDIA-only machines are unaffected.

Tests: extended test/shell.d/hw-nvidia-test.sh (all 15 pass), ./test/cli 112/112 pass, luac -p on the edited lua. The 4 ./test/shell failures (bar icon geometry, omarchy-pkgs checkout) reproduce on the clean tree and are unrelated.

@Yarlord
Yarlord changed the base branch from master to quattro September 13, 2026 14:07

@csfh csfh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ryanrhughes
ryanrhughes merged commit 5bc098d into omacom:quattro Sep 25, 2026
ryanrhughes added a commit that referenced this pull request Oct 16, 2026
Only force NVIDIA VA-API/GLX env when NVIDIA drives the display

(cherry picked from commit 5bc098d)
@emirb emirb added this to the 4.0.5 milestone Oct 17, 2026
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.

nvidia.lua forces LIBVA_DRIVER_NAME=nvidia on hybrid AMD+NVIDIA laptops, breaking Chromium/Brave video

4 participants