As described in this AskUbuntu post, basically every time there’s some audio playback, there is a variable delay when the audio starts. It can range from anything like a fraction of a second to a full two seconds.

I noticed this first when playing YouTube videos and then it was excruciatingly obvious and a real problem while editing audio in Audacity.

If it’s any good, I’m using an NVIDIA RTX 3070 and I’m still under X, not Wayland, and using Pulse Audio.

My audio is going to my HDMI connected monitor where my speakers are connected.

This is only happening since I did a fresh install of Kubuntu 24.04 earlier this September.

Update: Added my graphics card model.

  • Infernal_pizza@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I’ll be interested to know if you manage to fix this, I had this issue and nothing I tried worked. Setting the audio decides not to suspend would work but only for a single audio source. The closest I got to fixing it was to use the inbuilt sine wave function to play a constant 20Hz sine wave which I couldn’t hear but stopped the playback device from suspending. But that started to cause its own issues so I just got an audio extension lead and switched to using my front panel audio

    • jannesi@lemmy.ca
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 months ago

      Hey, I found a fix to this issue that worked for me! Here is what I did:

      First find your audio device name with:

      # -b so you can copy the device names from the output
      pw-top -b
      

      Then create wireplumber conf directory if needed:

      mkdir -p ~/.config/wireplumber/wireplumber.conf.d

      and create config:

      # Create config file
      touch ~/.config/wireplumber/wireplumber.conf.d/51-disable-alsa-suspend.conf
      
      # Paste this into the config file (replace node.name value with your own audio device name)
      monitor.alsa.rules = [
        {
          matches = [
            { node.name = "~alsa_output.pci-0000_01_00.1.*" }
            # Add another node.name if you need to fix multiple devices
            { node.name = "~alsa_output.usb-Logitech_PRO_X_Wireless_Gaming_Headset-00.*" }
          ]
          actions = {
            update-props = {
              session.suspend-timeout-seconds = 0
              node.pause-on-idle = false
            }
          }
        }
      ]
      

      And finally restart audio frameworks:

      systemctl --user restart wireplumber pipewire pipewire-pulse
      

      This fixed the problem completely for me, hope this helps you too :)