verbose debug logging

This commit is contained in:
2026-09-04 01:35:39 +02:00
parent c9725d3b78
commit 310fc047b2
@@ -14,6 +14,10 @@ in
mutter = prev.mutter.overrideAttrs (old: { mutter = prev.mutter.overrideAttrs (old: {
pname = "mutter-tearing"; pname = "mutter-tearing";
# nixpkgs leaves Mutter's verbose topics compiled out by default.
# This is required for MUTTER_DEBUG=kms to emit the async commit flags.
mesonFlags = (old.mesonFlags or [ ]) ++ [ "-Dverbose=true" ];
# The MR currently targets Mutter 51. Apply it to the packaged Mutter # The MR currently targets Mutter 51. Apply it to the packaged Mutter
# 50 source, then resolve the four small context conflicts separately. # 50 source, then resolve the four small context conflicts separately.
prePatch = '' prePatch = ''
@@ -44,7 +48,12 @@ in
}) })
]; ];
# Mutter keeps tearing support behind an experimental runtime switch. environment.sessionVariables = {
environment.sessionVariables.MUTTER_DEBUG_EXPERIMENTAL_FEATURES = # Mutter keeps tearing support behind an experimental runtime switch.
lib.mkDefault "tearing"; MUTTER_DEBUG_EXPERIMENTAL_FEATURES = lib.mkDefault "tearing";
# Temporarily expose whether async atomic commits reach KMS or fall back
# to synchronized presentation. Remove this after collecting the log.
MUTTER_DEBUG = lib.mkDefault "kms";
};
} }