Repository navigation
Only force NVIDIA VA-API/GLX env when NVIDIA drives the display - #11690
Merged
Merged
Conversation
This was referenced Sep 22, 2026
ryanrhughes
approved these changes
Sep 25, 2026
This was referenced Oct 7, 2026
Closed
1 task done
This was referenced Oct 9, 2026
Closed
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-displaydetector that reads theboot_vgasysfs flag using the same cached-sysfs style as the otheromarchy-hw-nvidia*detectors (no lspci wakeups), and gates theLIBVA_DRIVER_NAME/__GLX_VENDOR_LIBRARY_NAMEoverrides indefault/hypr/nvidia.luaon it.NVD_BACKENDis still set unconditionally since it is harmless when NVIDIA is not the display GPU. Whenboot_vgainfo 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 3050boot_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/cli112/112 pass,luac -pon the edited lua. The 4./test/shellfailures (bar icon geometry, omarchy-pkgs checkout) reproduce on the clean tree and are unrelated.