From 27e2067b2dfdae17a6416a4e9b38d64c09c9a4e2 Mon Sep 17 00:00:00 2001 From: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> Date: Wed, 2 Dec 2026 13:20:02 -0500 Subject: [PATCH] fix(gamescope): SDR games keep their brightness while Steam's overlays are composited over them --- tools/linuxfs/overlay/usr/local/bin/droiddeck-session | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/linuxfs/overlay/usr/local/bin/droiddeck-session b/tools/linuxfs/overlay/usr/local/bin/droiddeck-session index c30c3098ec..a92a3b0ffd 100755 --- a/tools/linuxfs/overlay/usr/local/bin/droiddeck-session +++ b/tools/linuxfs/overlay/usr/local/bin/droiddeck-session @@ -569,6 +569,10 @@ if [ -z "${DD_INSIDE:-}" ]; then fi [ "$mode" = steam ] && args+=(--default-touch-mode 4) [ "${DD_HDR:-0}" = 1 ] && args+=(--hdr-enabled) + # An SDR game reaches Android as its own SDR buffer, but whenever gamescope composites (a Steam + # toast, the volume slider) an HDR output encodes the frame in PQ, which the display tone-maps + # darker and shifted in colour. The output turns HDR only while a window presents HDR. + export gamescope_hdr_content_driven=1 [ -n "${DD_GAMESCOPE_ARGS:-}" ] && read -r -a _dd_extra <<<"$DD_GAMESCOPE_ARGS" && args+=("${_dd_extra[@]}") if [ "$mode" = steam ] && [ "${DD_MANGOAPP:-1}" = 1 ] \ && [ "${DD_STEAM_UI:-}" != desktop ] && command -v mangoapp >/dev/null 2>&1; then