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.

  • 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 :)