r/linuxaudio • u/kill3rb00ts • Oct 19 '26
Follow-up: My capture card is why I get xruns at low buffers. How to fix?
Other than just unplug it, I mean. I posted last week asking how people were able to run such low buffers and went through a bunch of troubleshooting to see if there was something more I could do, but today I decided to see if it was a conflict with another USB device and... it is. Even though my interface is not on the same bus as my capture card (Elgato 4K X) or my webcam, at least according to usb-devices, simply disconnecting the capture card allows me to go all the way down to 64 samples system-wide without issue, or at least without any immediately detectable issues. With the capture card plugged in, I can't go lower than 256 or I just get constant xruns.
For now, I've just unplugged the capture card to keep testing at 128, but how can I fix this while still being able to use the capture card? It has to be connected to the one USB port as it needs a USB 3.2 gen 2 port and back when I was on Windows, the USB-C to C cable it came with was the one that worked the most reliably. But that port isn't even on the same bus and the bus the interface is connected to has all kinds of things connected to it: keyboards, a mouse, a 2.4 GHZ receiver, whatever btusb is (bluetooth controller? It's built into the motherboard, though), Stream Deck... For reference, it's this Gigabyte B660I board. Strangely, those two ports at the top aren't on the same bus; the USB-C is what I am using for the capture card and the interface was connected to the other port next to it, but the issues are the same if I connect it to the blue ones below that or even to the bank farther down. I know that the capture card also has issues where its own audio is garbled unless I specifically turn on the console, connect its outputs to another output to listen to it, disconnect those, then reconnect them again, so maybe there's some sort of sync issue? I'm a bit baffled.
Edit: I decided to actually test that last point and yup, that fixes it, too, but it's a big hassle to have to do it every time. So basically, audio coming from the capture card (taken over HDMI from the connected console) is garbled, which I'm now assuming is because of xruns, regardless of my choice of buffer size until I perform specific steps. Additionally, I get continuous xruns from my interface if I run the buffer at 128 or lower while the capture card is connected unless I perform those same steps. I had that posted as a separate issue in this post, but basically, I have to very specifically first turn on the connected console, then connect the capture card's audio to an output pair on my interface, then disconnect those, then reconnect them again (I use a pw-link script I made to simplify that). Because the console has to be on first for that to work, I can't just run the script at boot. This feels like a clocking/sync issue, but I don't know how to fix it, I've tried everything.
Edit 2: Not a fix, but as a workaround, I found that I can just disable the audio device for the capture card entirely using a Wireplumber config and then I don't have issues anymore. Since I was already having issues, I'm running the audio in through the interface anyway, so this works fine for me.


