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