Repository navigation
Conversation
f6574b7 to
e706ca8
Compare
chessing234
left a comment
There was a problem hiding this comment.
please keep the nvidia workaround through chromium refreshes.
| "$HOME/.config/brave-origin-flags.conf" \ | ||
| "$HOME/.config/chrome-flags.conf" \ | ||
| "$HOME/.config/microsoft-edge-stable-flags.conf"; do | ||
| append_flag "$conf" |
There was a problem hiding this comment.
please also reapply this helper from omarchy-refresh-chromium: that command replaces chromium-flags.conf from the template, which has no --disable-accelerated-video-decode, and never calls this helper afterward. the flag disappears in a refresh fixture, so the black-video problem returns after a normal chromium refresh even on machines where the migration applied it.
|
| install_user=${OMARCHY_INSTALL_USER:-${SUDO_USER:-}} | ||
| if [[ -n $install_user ]]; then | ||
| install_home=$(getent passwd "$install_user" | cut -d: -f6) | ||
| if [[ -n $install_home ]]; then | ||
| sudo -u "$install_user" HOME="$install_home" omarchy-chromium-nvidia-video-flags || true |
There was a problem hiding this comment.
Deferred installs miss video flag. On a deferred NVIDIA GSP install, hardware setup runs before the owner account exists, so this lookup cannot apply the flag. User finalization does not call the helper, and fresh installs mark the migration complete without running it. Chromium can therefore still show black video until someone manually refreshes its configuration.
Knowledge Base Used:
|
|
||
| set -euo pipefail | ||
|
|
||
| omarchy-hw-nvidia-gsp >/dev/null 2>&1 || exit 0 |
There was a problem hiding this comment.
Hybrid laptops lose video acceleration. On a supported hybrid laptop with a GSP-capable NVIDIA GPU but an integrated-GPU-driven display, the session does not set
LIBVA_DRIVER_NAME=nvidia. This check still adds the flag, disabling the working integrated-GPU video decode path even though the NVIDIA VA-API condition is absent.
Knowledge Base Used: Hardware profiles and device controls
|
|
||
| # Session-wide LIBVA_DRIVER_NAME=nvidia is correct for Firefox but makes | ||
| # Chromium paint black video (issue #13188). The helper is a no-op off GSP. | ||
| omarchy-chromium-nvidia-video-flags || true |
There was a problem hiding this comment.
Failed repair is marked complete. If an existing GSP user's flag file cannot be written, the helper fails, but
|| true lets the migration succeed and receive its completion marker. The flag remains absent, Chromium can retain black video, and later migration runs skip the repair instead of retrying it.
Knowledge Base Used: Migration framework
|
|
||
| set -euo pipefail | ||
|
|
||
| omarchy-hw-nvidia-gsp >/dev/null 2>&1 || exit 0 |
There was a problem hiding this comment.
Video flag outlives GPU mode. After a supported switch from hybrid to integrated GPU mode, this helper exits without removing flags it previously added. Those browsers keep using software-only video decoding. Chromium has a config refresh that can clear its flag, but Brave, Chrome, and Edge have no corresponding refresh.
Knowledge Base Used: Hardware profiles and device controls
| grep -q 'omarchy-chromium-nvidia-video-flags' "$ROOT/install/hardware/nvidia.sh" || | ||
| fail "nvidia install applies chromium video flags" | ||
| pass "nvidia install applies chromium video flags" | ||
|
|
||
| grep -q 'omarchy-chromium-nvidia-video-flags' "$ROOT/bin/omarchy-install-browser" || | ||
| fail "browser install applies chromium video flags" | ||
| pass "browser install applies chromium video flags" |
There was a problem hiding this comment.
Install paths remain untested. These assertions only search source text for the helper's name; they do not run browser installation or the root-owned NVIDIA setup branch. They would pass even if user selection,
sudo -u, or install ordering prevented the flag from reaching the browser. Testing those paths with a configured user and flag file would catch that failure.
Knowledge Base Used: Install stages and package sets
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Co-authored-by: AnPod <AnPod@users.noreply.github.com>
d60f0f0 to
ed7d5e1
Compare
|
Thanks for this. #13189 from @jampick (who filed #13188) fixes the same black-video problem and is a few days older. It also handles the browser handoff and has a broader test set, so maintainers will probably want to pick one. A note for whichever lands: |
|
Thanks for this. #13189 fixes the same bug from #13188, the same way (appending
I checked both against Second opinion: Codex Medium compared the two diffs without my conclusion. It picked #13189 for the same two reasons, and found nothing in this one that #13189 lacks. Its independence from my review isn't guaranteed. Waiting on: the maintainer, who chooses between this and #13189. |
|
Closing as superseded by the older #13189. |
Summary
Fixes #13188
LIBVA_DRIVER_NAME=nvidiapoints Chromium at a Firefox-only VA-API driver, so video renders as a black rectangle with audio.Change
Test plan