AMDGPU HDMI Audio Fade In and Out in Gamescope Session

This is an old issue Ive never found a fix for. At present strange audio behavior happens on all 3 of my bazzite systems which all run AMD GPUs and deliver audio over the HDMI connection when in gamescope mode. All 3 systems are running 6XXX GPUs.

Problem Description:
When audio is playing from a movie or game it will intermittently fade / get quieter and then recover when in gamescope mode. Audio never seems to entirely drop out, but instead intermittently sound as if your listening under water for a second or two and then back to normal.

All my searches over the last year have pointed to stuttering or drop out, but Im not sure that is what Im experiencing and the fixes have never mitigated this. Unsure where the problem lies or how to address, but it is present on each of my 3 HTPCs running gamescope sessions and AMD 6x series GPUs experience this. Has anyone else encountered this and does anyone know of a proper fix?

It is unclear if the issue lies with pipewire/wireplumber or AMDGPUs Audio driver or with gamescope itself. Any help is appreciated.
Solution
For clarity the overrides I currently have set in the ~/.config/environment.d/gamescope-session.conf are:
# Size of the screen. If not set gamescope will detect native resolution from drm.
SCREEN_HEIGHT=2160
SCREEN_WIDTH=3840

# Override entire Steam client command line
STEAMCMD="steam \
-gamepadui \
-steamos3"
#-pipewire-dmabuf"


# Override the entire Gamescope command line
GAMESCOPECMD="/usr/bin/gamescope \
$CURSOR \
-e \
$RESOLUTION \
--xwayland-count 2 \
--adaptive-sync \
-O *,eDP-1 \
--hdr-enabled \
--hdr-sdr-content-nits=400 \
--hdr-itm-enable \
--hdr-itm-target-nits 1000 \
--default-touch-mode 4 \
--hide-cursor-delay 3000 \
--fade-out-duration 200 \
-R $socket -T $stats"
Was this page helpful?