Skip to content

Keep auto direct scanout when NVIDIA drives the display - #20912

Closed
vladgabrielboca wants to merge 2 commits into
omacom:quattrofrom
vladgabrielboca:nvidia-auto-scanout
Closed

vladgabrielboca wants to merge 2 commits into
omacom:quattrofrom
vladgabrielboca:nvidia-auto-scanout

Conversation

@vladgabrielboca

@vladgabrielboca vladgabrielboca commented Nov 30, 2026 •

Copy link
Copy Markdown

What changes

#20584 set render.direct_scanout = 1, which scans out every fullscreen window. On NVIDIA that breaks fullscreen windows that hold a still frame. An image in Omaview or a PDF in Papers turns black after a moment, the cursor repaints strips of it as it moves, then the whole frame flashes back and goes black again. Busy windows (video, a browser) hide it because they redraw all the time.

When NVIDIA drives the display, this keeps direct_scanout = 2 (auto), so games that send the game content-type hint still scan out. Every other machine keeps 1, as #20584 chose. Hybrid laptops where the iGPU drives the display also keep 1.

default/hypr/nvidia.lua already works out whether NVIDIA drives the display for its env vars. It now returns that answer, and looknfeel.lua, which loads after it, picks the scanout mode from it.

#20683 is another NVIDIA report against the same default (HDMI format flips and a blinking second monitor). This may help there too, but I haven't checked that setup.

Verification

  • RTX 2060, driver 620.73.04, Hyprland 0.57.2, two DisplayPort monitors. Live hyprctl eval 'hl.config({ render = { direct_scanout = 0 } })' stopped the bug in Omaview and Papers; with 2 from this change it stays fixed.
  • ./bin/omarchy-hw-nvidia-display exits 0 here, so this machine gets 2.
  • New case in test/shell.d/hyprland-default-config-test.sh checks 1 without an NVIDIA display and 2 with one.
  • ./test/all passes.
  • Not checked on AMD or Intel; no one has reported it there and those machines keep 1.

Videos

Before (direct_scanout = 1, Omaview fullscreen):

omaview-fullscreen-black.mp4

After: the image stays on screen.

screenrecording-2026-11-30_14-54-56.mp4

Forcing direct scanout on every fullscreen window (omacom#20584) leaves still
fullscreen windows on NVIDIA black: an image in Omaview or a PDF in
Papers vanishes and only repaints where the cursor moves. NVIDIA now
keeps auto, so games that ask for it still scan out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vladgabrielboca
vladgabrielboca marked this pull request as ready for review November 30, 2026 14:29
@greptile-apps

greptile-apps Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge; the connected-output check addresses the previous hybrid-laptop issue.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; the connected-output check addresses the previous hybrid-laptop issue.

Summary

Keeps automatic fullscreen scanout when NVIDIA drives a connected display.

  • Hyprland uses automatic scanout when NVIDIA drives a display.

Reviews (2) · Last reviewed commit: "Also keep auto scanout for monitors wire..." · Reviewed by Greptile

Comment thread default/hypr/looknfeel.lua Resolved
A hybrid laptop boots on its iGPU, so omarchy-hw-nvidia-display says no
even when an external monitor on its HDMI port is driven by NVIDIA. That
monitor kept forced scanout and the black fullscreen images. Check which
GPU each connected monitor is wired to as well.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chessing234

Copy link
Copy Markdown
Contributor

@dhh @omarchybot keeping auto direct scanout when NVIDIA drives the display is in #21028, including the follow-up for monitors wired to that GPU and omarchy-hw-nvidia-output.

hw-nvidia-output-test.sh passed. The shared hyprland-default-config-test.sh also contains the Omasnap close cases from #20845. That file stops here because socat is not installed, before either assertion runs.

Please consider closing this as superseded only after #21028 is accepted. Leaving the close to you.

@omarchybot

Copy link
Copy Markdown
Collaborator

Thanks for working this out. Closing in favour of #21211, which takes direct_scanout back to Hyprland's default of 0 for every GPU rather than 2 on NVIDIA: the format-switch modeset behind #20683 also shows on AMD, so a vendor gate leaves part of the problem in place. Closed at the maintainer's request; checked by Opus 5.5 in Claude Code.

@omarchybot omarchybot closed this Dec 1, 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.

3 participants