Skip to content

Stop scanning out every fullscreen window directly - #21211

Merged
dhh merged 1 commit into
quattrofrom
fix/direct-scanout-default
Dec 1, 2026
Merged

dhh merged 1 commit into
quattrofrom
fix/direct-scanout-default

Conversation

@omarchybot

Copy link
Copy Markdown
Collaborator

render.direct_scanout = 1, added in #20584 for fullscreen gaming and shipped in 4.6.0-rc2, makes any solitary fullscreen window a scanout candidate. Entering scanout switches the output to the client's buffer format (AR24) and leaving it switches back (XR24), and each switch is a full modeset, so the display flashes black whenever a fullscreen window moves in or out of scanout. That has been reported on NVIDIA and, with an isolated A/B, on AMD (#20683). On Apple Silicon the display controller rejects the GPU's tiled client buffers outright, so fullscreen goes black (#21072).

This removes the setting, which returns to Hyprland 0.57.2's default of 0 (checked with hyprctl descriptions). A user who wants scanout for games can set it in their own looknfeel.lua, which loads after the packaged defaults. The packaged default reaches every install on update, so no migration is needed. The VRR and tearing parts of #20584 were already turned off in #21178 and #20932, so this finishes rolling it back. It also makes the vendor-specific #20912 (NVIDIA → 2) and #21085 (Apple Silicon → 0) unnecessary.

Fixes #20683
Fixes #21072

Reviewed by Opus 5.5 High, which found nothing else setting or depending on the option.

🤖 Generated with Claude Code

direct_scanout = 1, added by #20584 for fullscreen gaming, makes any solitary fullscreen surface a scanout candidate. Entering scanout switches the output to the client's buffer format and leaving it switches back, and each switch is a full modeset: a black flash every time a fullscreen window stops being scannable, seen on NVIDIA and AMD (#20683). On Apple Silicon the display controller rejects the GPU's tiled client buffers outright, so fullscreen goes black (#21072). Removing the setting returns to Hyprland's default of 0; a user who wants scanout for games can set it in their own config. The VRR and tearing halves of #20584 were already turned off in #21178 and #20932.

Fixes #20683
Fixes #21072

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

greptile-apps Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] This PR appears safe to merge.

Summary

Removes render.direct_scanout = 1 from the packaged Hyprland defaults.

  • Fullscreen windows are no longer forced into direct scanout.

Reviews (1) · Last reviewed commit: "Stop scanning out every fullscreen windo..." · Reviewed by Greptile

@dhh
dhh merged commit a63cb72 into quattro Dec 1, 2026
5 checks passed
@dhh
dhh deleted the fix/direct-scanout-default branch December 1, 2026 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants