fix(linux/pipewire): try variable rate for non-KWin compositors - #5569
Open
psyke83 wants to merge 2 commits into
Open
fix(linux/pipewire): try variable rate for non-KWin compositors#5569psyke83 wants to merge 2 commits into
psyke83 wants to merge 2 commits into
Conversation
2 tasks
psyke83
force-pushed
the
pw_mutter_variable_rate
branch
3 times, most recently
from
August 29, 2026 03:03
c958f80 to
b18310f
Compare
Variable rate capture works better on mutter, but since GNOME 50 we encountered negotiation failures. It seems that if we negotiate maxFramerate with a default of variable rate but relaxed maximum value, the final negotiation phase actually lands on variable rate (after being constrained to the host refresh rate); mutter debug included: [2026-08-29 00:38:43.671]: Info: [pipewire] Framerate (from compositor): 0/1 [2026-08-29 00:38:43.671]: Info: [pipewire] Framerate (from compositor, max): 60/1 SCREEN_CAST: Video format changed to 1920x1080 (framerate: 0/1 (max: 60/1)) SCREEN_CAST: Video format changed to 1920x1080 (framerate: 0/1 (max: 0/1)) [2026-08-29 00:38:43.672]: Info: [pipewire] Framerate (from compositor): 0/1 (variable rate capture) Pacing does seem to be improved and Sunshine reports variable rate for the *final* negotiation phase. Upstream MR has been submitted, but doesn't seem strictly necessary: https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/5278 With upstream MR applied, output is more uniform: [2026-08-29 00:35:42.248]: Info: [pipewire] Framerate (from compositor): 0/1 (variable rate capture) [2026-08-29 00:35:42.248]: Info: [pipewire] Framerate (from compositor): 0/1 (variable rate capture) [2026-08-29 00:35:42.248]: Info: [pipewire] Framerate (from compositor): 0/1 (variable rate capture) [2026-08-29 00:35:42.248]: Info: [pipewire] Framerate (from compositor): 0/1 (variable rate capture) SCREEN_CAST: Video format changed to 1920x1080 (framerate: 0/1 (max: 0/1))
psyke83
force-pushed
the
pw_mutter_variable_rate
branch
from
August 29, 2026 03:08
b18310f to
bbfcf5f
Compare
psyke83
marked this pull request as ready for review
August 29, 2026 04:11
|
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.



Description
Variable rate capture works better on mutter, but since GNOME 50
we encountered negotiation failures.
It seems that if we negotiate maxFramerate with a default of variable rate
but relaxed maximum value, the final negotiation phase actually lands on
variable rate (after being constrained to the host refresh rate); mutter
debug included:
[2026-08-29 00:38:43.671]: Info: [pipewire] Framerate (from compositor): 0/1
[2026-08-29 00:38:43.671]: Info: [pipewire] Framerate (from compositor, max): 60/1
SCREEN_CAST: Video format changed to 1920x1080 (framerate: 0/1 (max: 60/1))
SCREEN_CAST: Video format changed to 1920x1080 (framerate: 0/1 (max: 0/1))
[2026-08-29 00:38:43.672]: Info: [pipewire] Framerate (from compositor): 0/1 (variable rate capture)
Pacing does seem to be improved and Sunshine reports variable rate for the
final negotiation phase.
Upstream MR has been submitted, but doesn't seem strictly necessary:
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/5278
With upstream MR applied, output is more uniform:
[2026-08-29 00:35:42.248]: Info: [pipewire] Framerate (from compositor): 0/1 (variable rate capture)
[2026-08-29 00:35:42.248]: Info: [pipewire] Framerate (from compositor): 0/1 (variable rate capture)
[2026-08-29 00:35:42.248]: Info: [pipewire] Framerate (from compositor): 0/1 (variable rate capture)
[2026-08-29 00:35:42.248]: Info: [pipewire] Framerate (from compositor): 0/1 (variable rate capture)
SCREEN_CAST: Video format changed to 1920x1080 (framerate: 0/1 (max: 0/1))
Screenshot
Issues Fixed or Closed
Fixes #5000
Roadmap Issues
Type of Change
Checklist
AI Usage
See our AI usage policy.