I have a problem with audio playback in EndeavourOS. My hardware setup is a bit complicated and I will get to that later, but first let me describe the issue and how I found it:
I’ve been using it for a while with no audio (no speakers attached) but recently I wanted to play an old Steam (retro) game, and attached headphones to my screen. I discovered that:
- there was a LOT of crackling in the audio
- the problem seemed to get worse as time passed by
- the audio seemed to “speed up” over time (as if I was playing back at a higher speed)
I stopped the game and opened Firefox to watch a Youtube video. The crackling was there just like in the game. As time went buy I started noticing that the seconds marker on the video seemed weird (as if it skipped one second faster than another). I then performed the following experiment:
I opened a terminal and ran
while [ "1" ]; do date ; sleep 1 ; donethen started a YouTube video at the 00 second mark synchronized with the terminal output. I saw that time on the TYoutube video was indeed advancing a bit faster than on the terminal. For example, suppose I started the video at 16:34:00, and waited. When the video reached the 1 minute marker, the time on the terminal was only 16:34:47 indicating the video had advanced 13 seconds faster than it should have.
So I think the two are related, likely some time-issue on my system?
Here’s where things get a bit complicated: I use Proxmox to run VMs on my machine and my “desktop VM” is simply one of those VMs. I use GPU-passthrough to attach a Radeon RX6800 to the desktop VM directly, so my performance is amazing. I have no issues using my desktop VM for development and it is snappy and fast. Here are the basic specs of my system:
- Ryzen 5950X with 16c/32t
- 64GB for RAM
- 1xRadeon RX6800 (passed through to the EndeavourOS VM)
- 1xRadeon RX6700XT (passed through to a Windows 10 VM)
The host system is on Proxmox 7.2 running a 5.15 kernel. EndeavourOS is on the 5.18 kernel.
Now , the reason why I think this is an EndeavourOS issue is that:
- The Windows VM using the RX6700XT works fine, including its audio
- The RX6800 is being passed through and I am using its audio which means the EndeavourOS kernel has full control of it.
- If I run an Ubuntu 22.04 LTS virtual machine instead of my regular EndeavourOS one, the audio on that is fine (I can watch youtube, there is no crackling and the time is advancing properly). This via the same RX6800 that is attached to the EndeavourOS VM.
I’m a bit at a loss on what to do. Not familiar with audio systems at all. I know that recently distros have started using something called pipewire which is supposedly better in latency, but that’s about it…
A) What is different in the audio system of Ubuntu 22.04 versus EndeavourOS? Are they using the same audio stack?
B) What can I do to further investigate (or ideally fix) this?
I am currently installing Fedora 36 to see if it has the same as EndeavourOS, or if it runs fine as Ubuntu/Windows seem to run and will report back.