Audio randomly cutting out

My audio is randomly cutting out for a short periods of time whenever I use my monitor as output (plugged into graphics card via displayport). I don’t get any issues when using wired headphones. I checked pw-top, but don’t see anything different (no errors and no spikes in times). Here’s my config: Config gile · GitHub. I tried to increase the audio clock, but it didn’t seem to help much. The audio issues seem to happen pretty much everywhere. I notice them most when watching videos or livestreams through firefox, but I’ve also noticed the music in minecraft cutting out among other things.

PS. if you find something else wrong with my config, please let me know.

Seems to work when I switch from DisplayPort to HDMI, so I assume this is some weird driver issue. I also tested on Ubuntu + DisplayPort and it worked fine. Updating to the latest kernel doesn’t seem to have helped either

okay. so it’s a monitor or a TV with speakers which you are trying to connect via DisplayPort (!)… that apparently supports 192khz:

  services.pipewire.extraConfig.pipewire = {
    "fix-clock" = {
      context.properties = {
        "default.clock.rate" = 192000;
        "default.clock.quantum" = 512;
        "default.clock.min-quantum" = 512;
        "default.clock.max-quantum" = 4096;
      };
    };
  };

so just to be clear: it’s not headphones, not studio speakers or an external DAC? audio cuts out for the internal monitor speakers?

well, the problem is in DisplayPort. as you have already tested, HDMI is able to transmit audio out-of-the-box. DP, however, is very sensitive to outdated cables (that dont have audio support), resolutions, refresh rates and, last but not least, (i/e)GPUs, because they must also be able to output audio.

everything else is dependant on your monitor’s or TV’s internal audio chip and/or DAC, so you have to literally check and see which audio specifications and/or codecs does your monitor or TV support… but you probably shouldnt set a global sample rate for every audio device… :crazy_face:

P.S. never expect good audio chips/codecs out of monitor speakers…