Audio crackling on latest kernels

Hello,

It happens on all applications with all kernels after 5.4. On first boot the audio works well, but after I suspend once, the crackling starts.

Kernel 5.4 works fine.

I replaced PulseAudio with PipeWire, but the issue remains.

Any ideas?

Is it constant cracklin, or only a popping when going from no audio to starting playing audio?

It is constant, I would say it happens every 10-20 seconds when audio is playing.

did you installed also wireplumber instead of pipewire media session? check with:
pacman -Qs wireplumber
if its not installed, install it:
sudo pacman -S wireplumber
it will replace media session, reboot and see if it helped

Thank you, for the recommendation. I tried it, but the crackling is still there.

post output from:
inxi -xxxA

Audio:
  Device-1: Intel Cannon Point-LP High Definition Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:9dc8
    class-ID: 0403
  Sound API: ALSA v: k6.1.12-1-MANJARO running: yes
  Sound Interface: sndio v: N/A running: no
  Sound Server-1: JACK v: 1.9.22 running: no
  Sound Server-2: PulseAudio v: 16.1 running: no
  Sound Server-3: PipeWire v: 0.3.65 running: yes

disable power save on your audio card:

echo options snd-hda-intel power_save=0 power_save_controller=N | sudo tee /etc/modprobe.d/hda.conf

reboot and see if it helped, if not post output from:
inxi -M
what exact model you are running, maybe there will be something in arch wiki

I can’t get any audio at all after installing WirePlumber, so unfortunately I can’t test this right now.

you forgot to mention this…
post output from:
pacman -Qs 'pipewire|pulse'
inxi -M

Thank for taking the time!

[lee@leenux ~]$ pacman -Qs 'pipewire|pulse'
local/gst-plugin-pipewire 1:0.3.65-6
    Multimedia graph framework - pipewire plugin
local/kpipewire 5.26.5-1 (plasma)
    Components relating to pipewire use in Plasma
local/lib32-libcanberra 1:0.30+r2+gc0620e4-2
    A small and lightweight implementation of the XDG Sound Theme Specification
    (32-bit)
local/lib32-libpulse 16.1-1
    A featureful, general-purpose sound server (32-bit client libraries)
local/libcanberra 1:0.30+r2+gc0620e4-3
    A small and lightweight implementation of the XDG Sound Theme Specification
local/libcec 6.0.2-3
    Pulse-Eight's libcec for the Pulse-Eight USB-CEC adapter
local/libpipewire02 0.2.7-2
    Low-latency audio/video router and processor - legacy client library
local/libpulse 16.1-3
    A featureful, general-purpose sound server (client library)
local/libwireplumber 0.4.13-1
    Session / policy manager implementation for PipeWire - client library
local/manjaro-pipewire 20221015-2
    Manjaro meta package for complete PipeWire support.
local/pavucontrol 1:5.0+r61+gee77d86-2
    PulseAudio Volume Control
local/pipewire 1:0.3.65-6
    Low-latency audio/video router and processor
local/pipewire-alsa 1:0.3.65-6
    Low-latency audio/video router and processor - ALSA configuration
local/pipewire-audio 1:0.3.65-6
    Low-latency audio/video router and processor - Audio support
local/pipewire-media-session-docs 1:0.4.2-1
    Legacy session manager for PipeWire (documentation)
local/pipewire-pulse 1:0.3.65-6
    Low-latency audio/video router and processor - PulseAudio replacement
local/pulseaudio-ctl 1.70-1
    Control pulseaudio volume from the shell or mapped to keyboard shortcuts.
local/pulseaudio-qt 1.3-1
    Qt bindings for libpulse
local/python-pulse-control 20.5.1-2
    Python high-level interface and ctypes-based bindings for PulseAudio.
local/python-pulsectl 22.3.2-2
    Python high-level interface and ctypes-based bindings for PulseAudio
    (libpulse)
local/wireplumber 0.4.13-1
    Session / policy manager implementation for PipeWire

[lee@leenux ~]$ inxi -M


Machine:
  Type: Laptop System: LENOVO product: 81MV v: Lenovo IdeaPad S145-15IWL
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: NO DPK serial: <superuser required>
    UEFI: LENOVO v: ASCN40WW date: 10/11/2019

so install the pipewire media session, it will replace wireplumber, disable the power save as outlined above, reboot and see if it helped…

I did it, still no sound! :face_exhaling:

:thinking:
so switch back to pulse audio and try again…

Still, no audio. Spotify takes too long to load, YouTube does not start a video. In the audio menu in settings nothing is clickable.

did you added the power save config? if yes, remove it:

sudo rm /etc/modprobe.d/hda.conf

reboot

I had added it, and now removed it, but still there is no audio anywhere.

i have no idea whats happening here… try with the 5.4 kernel and see if it works there

Got back to 5.4 and it does not work. An empty terminal pops-up when the desktop loads, and some empty windows flash pretty quickly. Very weird.

sound like a messed up system … are you up to date?:

sudo pacman-mirrors --fasttrack 5 && sudo pacman -Syyu

boot into manjaro live usb, the latest comes with the 6.1 kernel, and just see if it has also audio issues