ublue-os / bazzite

Bazzite is a custom 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.93k stars 232 forks source link

Audio stuttering in many games in Gamescope w/ 6700XT #851

Open rayrayrayraydog opened 7 months ago

rayrayrayraydog commented 7 months ago

Describe the bug

I have been using bazzite since before Fedora 39 with this system, and I'm not sure when, but in the last few months the system has developed frequent audio stutters when running games. A number of users with 6700XT's have described similar issues -- in my case the audio just cuts out without any static for just a moment and does so very frequently in many games. Some games are impacted more than others. The stuttering is much more frequent when running games via Gamescope vs. launching them from the desktop. I also run the Kodi Flatpak through Steam in Gamescope and it doesn't ever have any audio stutter.

A few badly impacted games:

What did you expect to happen?

Audio stuttering should not be an issue with this hardware in these lightweight games. I am using the HDMI audio output of the GPU.
I have tried some fixes from some threads in Discord with no noticeable change:

Output of rpm-ostree status

root@gameboi:/home/rayray# rpm-ostree status
State: idle
Deployments:
● ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-deck:latest
                   Digest: sha256:22d963175ca12c3f19e5b6997f2fb7a273dc3451076d3459f950e6e4b3d54561
                  Version: 39.20240302.0 (2024-03-03T02:14:15Z)
          LayeredPackages: fstrcmp libcec libmicrohttpd libnfs lirc-libs monitor-edid pcre-cpp perl-Switch shairplay-libs strace terminator
                           tinyxml x2goserver
                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:latest
                   Digest: sha256:22d963175ca12c3f19e5b6997f2fb7a273dc3451076d3459f950e6e4b3d54561
                  Version: 39.20240302.0 (2024-03-03T02:14:15Z)
          LayeredPackages: fstrcmp libmicrohttpd libnfs lirc-libs monitor-edid pcre-cpp perl-Switch shairplay-libs strace terminator tinyxml
                           x2goserver
                Initramfs: '-I /etc/crypttab /etc/modprobe.d/amdgpu.conf /etc/modprobe.d/deck-blacklist.conf'

Hardware

System is a custom HTPC running bazzite-deck:

Extra information or context

No response

al12gamer commented 2 months ago

While Bazzite is the sole Linux distro that has this issue for me on the RX5700XT I have outputting HDMI audio, I'm at least glad to hear there may be fixes in the pipeline that affect Bazzite.

Tobe95 commented 2 months ago

Not sure how relevant this is for people with HDMI audio, but following the steps outlined in this reddit post completely fixed my audio issues after suspend on Steam Deck.

rayrayrayraydog commented 2 months ago

If you could update and try again I would appreciate it. May be fixed in the latest build.

I tried the latest :testing today and still got the stutters in What the Golf when I fired it up.

rayray@gameboi:~$ sudo rpm-ostree status
State: idle
Deployments:
● ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-deck:testing
                   Digest: sha256:9f9de51f786b311650f9f4e75713fea0aa6398996b0d6795b2e7debb3f28d284
                  Version: testing-v3.6-40.20240815.1 (2024-08-15T06:42:08Z)
          LayeredPackages: fstrcmp htop libmicrohttpd monitor-edid pcre-cpp perl-Switch shairplay-libs strace terminator tinyxml x2goserver
                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:latest
                   Digest: sha256:6ce12036986eb6b37658dac3d335ce826106cf46a628516be96bf966bc8f6cbf
                  Version: v3.6-40.20240809.0 (2024-08-09T21:14:34Z)
          LayeredPackages: fstrcmp htop libmicrohttpd monitor-edid pcre-cpp perl-Switch shairplay-libs strace terminator tinyxml x2goserver
                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:latest
                   Digest: sha256:0a2204f5a96e9eb14affec41d09cf6035777626d190bfaabb9de48c954aca0f5
                  Version: 39.20240311.0 (2024-03-12T08:05:37Z)
          LayeredPackages: fstrcmp libmicrohttpd libnfs lirc-libs monitor-edid pcre-cpp perl-Switch shairplay-libs strace terminator tinyxml x2goserver
                Initramfs: '-I /etc/crypttab /etc/modprobe.d/amdgpu.conf /etc/modprobe.d/deck-blacklist.conf' 
                   Pinned: yes
RayBa82 commented 2 months ago

For me the stuttering vanished after the todays update which includes Kernel 6.10.4 with the latest fixes for AMD HDMI audio! πŸ‘
7800XT

sudo rpm-ostree status
State: idle
Deployments:
● ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-deck:stable
                   Digest: sha256:aeeadaec946e4c32d803ef987db326cceb9e4702340f8950b5d28c4d7344084b
                  Version: v3.6-40.20240819.0 (2024-08-19T05:04:16Z)

  ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-deck:stable
                   Digest: sha256:4b6720ea6c3c7c3436af0dda75858ca87982abd528b1667bdfbe4a28ebdac9b1
                  Version: v3.6-40.20240815.0 (2024-08-15T15:51:01Z)
Akruidenberg commented 1 month ago

Version 3.7.0 is out! hopefully i can now switch from ChimeraOS to Bazzite. @RayBa82 did everything still working for you?

adms-hu commented 1 month ago

I'll go back from chimera soon. This fix looks promising, I hope Blender will work too with HIP rendering πŸ˜…

RayBa82 commented 1 month ago

Unfortunately bazzite switched back the Kernel to 6.9 because of other regressions. Audio stuttering was not gone completely. In Uncharted 4 it was really strong and annoying, but in the Steam menu my stuttering was gone. Did not test too much games, maybe it is better, but definitely not gone.

al12gamer commented 2 weeks ago

Still haven't figured out why only Bazzite has this issue on my all-AMD systems. ChimeraOS and Nobara Linux don't have audio stuttering.

ArnauS197 commented 2 weeks ago

I can confirm this is still an issue, I think its because Bazzite is still using kernel 6.9. I asked how to update it to 6.10, but nothing for now. RX 6800XT.

RayBa82 commented 2 weeks ago

Nope they won't update because 6.10 has a regression for ROG Alley, now we are all waiting for this device.

Providing different Kernels seems to be too much work. Update frequency gets really slow. Mesa is still on 24.1.X too...

ArnauS197 commented 2 weeks ago

Its a bit strange that all other devices are being affected just by one machine :(

ArnauS197 commented 1 week ago

Can confirm its completely fixed in Bazzite Testinh build with kernel 6.11 πŸŽ‰πŸŽ‰πŸŽ‰πŸŽ‰πŸŽ‰πŸŽ‰

rayrayrayraydog commented 1 week ago

Can confirm its completely fixed in Bazzite Testinh build with kernel 6.11 πŸŽ‰πŸŽ‰πŸŽ‰πŸŽ‰πŸŽ‰πŸŽ‰

That's great news. So sounds like the Fedora 41 update will be the fix.

adms-hu commented 1 week ago

This is good news! The kernel could be part of this issue because I had no issues on Chimera and first time ever I managed to access HIP rendering in Blender on Nobara. Currently I’m back on Bazzite because I had other issues on Nobara (there is no proper gnome setup for HTPC edition. I can’t stand KDE..). So yeah… looking forward the next update!

Sent from Outlook for iOShttps://aka.ms/o0ukef


From: rayrayrayraydog @.> Sent: Tuesday, October 15, 2024 3:01:40 PM To: ublue-os/bazzite @.> Cc: ÁdÑm Simon @.>; Comment @.> Subject: Re: [ublue-os/bazzite] Audio stuttering in many games in Gamescope w/ 6700XT (Issue #851)

Can confirm its completely fixed in Bazzite Testinh build with kernel 6.11 πŸŽ‰πŸŽ‰πŸŽ‰πŸŽ‰πŸŽ‰πŸŽ‰

That's great news. So sounds like the Fedora 41 update will be the fix.

β€” Reply to this email directly, view it on GitHubhttps://github.com/ublue-os/bazzite/issues/851#issuecomment-2413854133, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AE4RNV6MLDFI6TCXFBQAQ7DZ3UG3JAVCNFSM6AAAAABEGFYL56VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJTHA2TIMJTGM. You are receiving this because you commented.Message ID: @.***>

ArnauS197 commented 1 week ago

Yesterday it came back the stuttering :( it seems to be less in terms of quantity, but it came back, 2 times in 16 hours aprox.

Regards

HikariKnight commented 1 week ago

kernel 6.11 is in testing now, if any of you want to test that as it should have the fix for this from upstream.

ArnauS197 commented 1 week ago

In my case at this point im trying to search for an alternative audio connection, i dont wanna swap baazzite, I like it, but its frustrating.

Its very strange because it isnt consistent. I have some strange theory, if I have my PC turned on and booted for like 6 hours when I play via HDMI it does not stutter, but if I do a reboot, it starts stuttering. Veeeeery strange.

My last 5 days with both 6.9 and 6.11 kernels seems to confirm this theory, but idk at this point, im out of ideas