ublue-os / bazzite

Bazzite is a cloud native image built upon Fedora Atomic Desktops that brings the best of Linux gaming to all of your devices - including your favorite handheld.
https://bazzite.gg
Apache License 2.0
3.99k stars 238 forks source link

Audio stutters on Steam Deck across all audio outputs #1041

Closed RodoMa92 closed 6 months ago

RodoMa92 commented 6 months ago

Describe the bug

The audio seems to periodically stutters on the latest stable build on my Steam Deck LCD, and make the audio on bluetooth completely unusable since these causes a constant desync with the buds and therefore causes audio to go chipmunk mode. I thought initially that this was just a bug for bluetooth, but it's also present in the speakers, so I'm not sure if it's just a platform stutter caused by the new 6.8 kernel that has been merged or if it's just a pipewire bug. I've opened an equivalent bug report for pipewire here: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3981 I still need to update it with the fact that the whole platform causes stuttering.

I thought that the new BIOS from Valve that enables CPPC was a possible cause, but after downgrading it back to 121 that was fine for the last four months I can reproduce the issue with no effort, so that's not the source of the problem.

What did you expect to happen?

Audio plays normally without a stutter every 10 seconds using speakers or having desync issues on bluetooth.

Output of rpm-ostree status

State: idle
Deployments:
● ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-deck:stable
                   Digest: sha256:67bb1f9dd52a420f080fd67e71a60bb6f732c12bacab7d27476dfbdca601c757
                  Version: 40.20240427.0 (2024-04-27T22:36:59Z)
          LayeredPackages: 'timidity++' aircrack-ng android-tools aspell-it bchunk
                           bluez-tools fluidsynth gh glances patch powerline-fonts
                           rasdaemon setroubleshoot-server sqlite-devel strace tldr
                           valgrind xlsclients yt-dlp zsh
                Initramfs: '"-I /etc/crypttab /etc/modprobe.d/amdgpu.conf /etc/modprobe.d/deck-blacklist.conf"' 

  ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-deck:stable
                   Digest: sha256:4e41469b61e296775d65ca85506142775ad7a927242619683de7e75b0317f233
                  Version: main (2024-04-26T01:18:26Z)
          LayeredPackages: 'timidity++' aircrack-ng android-tools aspell-it bchunk
                           bluez-tools gh glances patch powerline-fonts rasdaemon
                           sqlite-devel strace tldr valgrind xlsclients yt-dlp zsh
                Initramfs: '"-I /etc/crypttab /etc/modprobe.d/amdgpu.conf /etc/modprobe.d/deck-blacklist.conf"'

Hardware

Jupiter

Extra information or context

No response

RodoMa92 commented 6 months ago

Fixed it, the problem was coming out from my setup with Timidity server, it was causing pipewire stutters for some reason. Switching directly to fluidsynth server fixed it.