Static crackling noise in-ear headphones

Static crackling noise in wired in-ear headphones connected through audio jack to BenQ GC2870H monitor

I’ve recently reinstalled Manjaro on my system and I’m experiencing a static crackling noise in my headset speaker connected through the audio jack. I had this issue before and was able to resolve it by running yay -Sy sof-firmware. However, this time the same solution only works temporarily, and the issue returns after restarting the computer. I’m not sure how to troubleshoot this error and would appreciate any guidance. I don’t remember installing any other sound packages and I don’t know whether I’m using PipeWire, PulseAudio, ALSA or what. Here’s some system info for reference:

inxi -v7azy
System:
  Kernel: 6.5.0-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc available: hpet,acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.5-x86_64
    root=UUID=baa9b4ca-d69c-4415-a122-a7b7ae627a58 rw quiet apparmor=1
    security=apparmor resume=UUID=e7067eb1-d67d-4439-b456-e20569f068e2
    udev.log_priority=3
  Desktop: Cinnamon v: 5.8.4 tk: GTK v: 3.24.38 vt: 7 dm: LightDM v: 1.32.0
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop System: Gigabyte product: B450M DS3H v: N/A
    serial: <superuser required>
  Mobo: Gigabyte model: B450M DS3H-CF v: x.x serial: <superuser required>
    UEFI: American Megatrends LLC. v: F61c date: 05/10/2021
Battery:
  Message: No system battery data found. Is one present?
Memory:
  System RAM: total: 32 GiB note: est. available: 30.74 GiB
    used: 6.81 GiB (22.1%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: AMD Ryzen 7 5700G with Radeon Graphics bits: 64 type: MT MCP
    arch: Zen 3 gen: 4 level: v3 note: check built: 2021-22
    process: TSMC n7 (7nm) family: 0x19 (25) model-id: 0x50 (80) stepping: 0
    microcode: 0xA50000C
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB L3: 16 MiB
    desc: 1x16 MiB
  Speed (MHz): avg: 1046 high: 2994 min/max: 400/4673 scaling:
    driver: amd-pstate-epp governor: powersave cores: 1: 400 2: 400 3: 400 4: 400
    5: 400 6: 400 7: 400 8: 400 9: 2983 10: 2994 11: 2993 12: 400 13: 400
    14: 400 15: 400 16: 2981 bogomips: 121428
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
    bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy
    constant_tsc cpb cppc cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total
    cqm_occup_llc cr8_legacy cx16 cx8 de decodeassists erms extapic
    extd_apicid f16c flushbyasid fma fpu fsgsbase fsrm fxsr fxsr_opt ht
    hw_pstate ibpb ibrs ibs invpcid irperf lahf_lm lbrv lm mba mca mce
    misalignsse mmx mmxext monitor movbe msr mtrr mwaitx nonstop_tsc nopl npt
    nrip_save nx ospke osvw overflow_recov pae pat pausefilter pclmulqdq
    pdpe1gb perfctr_core perfctr_llc perfctr_nb pfthreshold pge pku pni popcnt
    pse pse36 rapl rdpid rdpru rdrand rdseed rdt_a rdtscp rep_good sep sha_ni
    skinit smap smca smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 stibp succor
    svm svm_lock syscall tce topoext tsc tsc_scale umip v_spec_ctrl
    v_vmsave_vmload vaes vgif vmcb_clean vme vmmcall vpclmulqdq wbnoinvd wdt
    xgetbv1 xsave xsavec xsaveerptr xsaveopt xsaves
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow mitigation: safe RET, no microcode
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: always-on, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
    vendor: Gigabyte driver: amdgpu v: kernel arch: GCN-5 code: Vega
    process: GF 14nm built: 2017-20 pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s ports: active: HDMI-A-1 empty: DVI-D-1
    bus-ID: 07:00.0 chip-ID: 1002:1638 class-ID: 0300 temp: 35.0 C
  Display: x11 server: X.Org v: 21.1.8 driver: X: loaded: amdgpu
    unloaded: modesetting alternate: fbdev,vesa dri: radeonsi gpu: amdgpu
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: HDMI-A-1 mapped: HDMI-A-0 model: BenQ GC2870 serial: <filter>
    built: 2017 res: 1920x1080 hz: 60 dpi: 79 gamma: 1.2
    size: 621x341mm (24.45x13.43") diag: 708mm (27.9") ratio: 16:9 modes:
    max: 1920x1080 min: 720x400
  API: OpenGL v: 4.6 Mesa 23.1.6-3 renderer: AMD Radeon Graphics (renoir
    LLVM 16.0.6 DRM 3.54 6.5.0-1-MANJARO) direct-render: Yes
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
    v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
    speed: 16 GT/s bus-ID: 07:00.1 chip-ID: 1002:1637 class-ID: 0403
  Device-2: AMD Family 17h/19h HD Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 07:00.6 chip-ID: 1022:15e3
    class-ID: 0403
  API: ALSA v: k6.5.0-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 0.3.79 status: off tools: pw-cli
  Server-3: PulseAudio v: 16.1 status: active with: pulseaudio-alsa
    type: plugin tools: pacat,pactl,pavucontrol
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Gigabyte driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: f000 bus-ID: 04:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Message: No bluetooth data found.
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 10.01 TiB used: 7.22 TiB (72.1%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital
    model: WDS100T2B0C-00PXH0 size: 931.51 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: 211210WD temp: 41.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Seagate model: Expansion size: 4.55 TiB
    block-size: physical: 4096 B logical: 512 B type: USB rev: 3.0 spd: 5 Gb/s
    lanes: 1 mode: 3.2 gen-1x1 tech: N/A serial: <filter> fw-rev: 0712
    scheme: GPT
  ID-3: /dev/sdb maj-min: 8:16 vendor: Seagate model: Portable size: 4.55 TiB
    block-size: physical: 4096 B logical: 512 B type: USB rev: 3.0 spd: 5 Gb/s
    lanes: 1 mode: 3.2 gen-1x1 tech: N/A serial: <filter> fw-rev: 0712
    scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 897.4 GiB size: 882.24 GiB (98.31%)
    used: 183.77 GiB (20.8%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2
    label: N/A uuid: baa9b4ca-d69c-4415-a122-a7b7ae627a58
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 312 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 label: N/A
    uuid: 23E6-7A2B
  ID-3: /mnt/hdd1 raw-size: 4.55 TiB size: 4.51 TiB (99.19%)
    used: 2.87 TiB (63.6%) fs: ext4 dev: /dev/sda1 maj-min: 8:1 label: S
    uuid: 1615d12a-a9fb-41a9-a84b-34c618f16832
  ID-4: /mnt/hdd2 raw-size: 4.55 TiB size: 4.51 TiB (99.19%)
    used: 4.17 TiB (92.4%) fs: ext4 dev: /dev/sdb1 maj-min: 8:17 label: T
    uuid: d605a480-f133-443c-8fe7-5b0a2d1c60c1
  ID-5: /mnt/storage raw-size: N/A size: 9.02 TiB used: 7.04 TiB (78.0%)
    fs: fuse.mergerfs source: ERR-102
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: yes
    compressor: zstd max-pool: 20%
  ID-1: swap-1 type: partition size: 33.82 GiB used: 1.2 MiB (0.0%)
    priority: -2 dev: /dev/nvme0n1p3 maj-min: 259:3 label: swap
    uuid: e7067eb1-d67d-4439-b456-e20569f068e2
Unmounted:
  Message: No unmounted partitions found.
USB:
  Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 10 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-2: 2-0:1 info: super-speed hub ports: 4 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-3: 3-0:1 info: hi-speed hub with single TT ports: 4 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-4: 4-0:1 info: super-speed hub ports: 2 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
  Device-1: 4-1:2 info: Seagate RSS LLC Expansion type: mass storage
    driver: uas interfaces: 1 rev: 3.0 speed: 5 Gb/s (596.0 MiB/s) lanes: 1
    mode: 3.2 gen-1x1 power: 896mA chip-ID: 0bc2:2343 class-ID: 0806
    serial: <filter>
  Device-2: 4-2:3 info: Seagate RSS LLC Portable type: mass storage
    driver: uas interfaces: 1 rev: 3.0 speed: 5 Gb/s (596.0 MiB/s) lanes: 1
    mode: 3.2 gen-1x1 power: 896mA chip-ID: 0bc2:2344 class-ID: 0806
    serial: <filter>
  Hub-5: 5-0:1 info: hi-speed hub with single TT ports: 4 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-6: 5-1:2 info: Genesys Logic Hub ports: 4 rev: 2.1
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 100mA
    chip-ID: 05e3:0610 class-ID: 0900
  Device-1: 5-1.1:3 info: SONiX USB Keyboard type: keyboard
    driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 12 Mb/s (1.4 MiB/s)
    lanes: 1 mode: 1.1 power: 500mA chip-ID: 2efd:7812 class-ID: 0301
  Device-2: 5-1.2:4 info: Razer USA RZ01-0321 Gaming Mouse [DeathAdder V2]
    type: mouse,keyboard driver: hid-generic,usbhid interfaces: 4 rev: 2.0
    speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 500mA
    chip-ID: 1532:0084 class-ID: 0300
  Hub-7: 6-0:1 info: super-speed hub ports: 2 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-8: 6-1:2 info: Genesys Logic Hub ports: 4 rev: 3.1
    speed: 5 Gb/s (596.0 MiB/s) lanes: 1 mode: 3.2 gen-1x1 chip-ID: 05e3:0612
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 41.2 C mobo: 37.0 C gpu: amdgpu temp: 37.0 C
  Fan Speeds (rpm): N/A
Info:
  Processes: 464 Uptime: 13h 15m wakeups: 0 Init: systemd v: 254
  default: graphical tool: systemctl Compilers: gcc: 13.2.1 clang: 16.0.6
  Packages: pm: pacman pkgs: 2391 libs: 436 tools: pamac,yay pm: flatpak
  pkgs: 0 Shell: Zsh v: 5.9 running-in: tmux: inxi: 3.3.29
pacmd list-sinks
❯ pacmd list-sinks
2 sink(s) available.
    index: 1
        name: <alsa_output.pci-0000_07_00.6.iec958-stereo>
        driver: <module-alsa-card.c>
        flags: HARDWARE HW_MUTE_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE
        priority: 9037
        volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
                balance 0.00
        base volume: 65536 / 100% / 0.00 dB
        volume steps: 65537
        muted: no
        current latency: 0.00 ms
        max request: 0 KiB
        max rewind: 0 KiB
        monitor source: 1
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Stereo
        used by: 0
        linked by: 0
        configured latency: 0.00 ms; range is 0.50 .. 1999.82 ms
        card: 1 <alsa_card.pci-0000_07_00.6>
        module: 7
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "ALC887-VD Digital"
                alsa.id = "ALC887-VD Digital"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "1"
                alsa.card = "1"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xfca80000 irq 89"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:07:00.6"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:07:00.6/sound/card1"
                device.bus = "pci"
                device.vendor.id = "1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.product.id = "15e3"
                device.product.name = "Family 17h/19h HD Audio Controller"
                device.string = "iec958:1"
                device.buffering.buffer_size = "352768"
                device.buffering.fragment_size = "176384"
                device.access_mode = "mmap+timer"
                device.profile.name = "iec958-stereo"
                device.profile.description = "Digital Stereo (IEC958)"
                device.description = "Family 17h/19h HD Audio Controller Digital Stereo (IEC958)"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        ports:
                iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
                        properties:

        active port: <iec958-stereo-output>
  * index: 3
        name: <alsa_output.pci-0000_07_00.1.hdmi-stereo>
        driver: <module-alsa-card.c>
        flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: RUNNING
        suspend cause: (none)
        priority: 9030
        volume: front-left: 42325 /  65% / -11.39 dB,   front-right: 42325 /  65% / -11.39 dB
                balance 0.00
        base volume: 65536 / 100% / 0.00 dB
        volume steps: 65537
        muted: no
        current latency: 2.02 ms
        max request: 0 KiB
        max rewind: 0 KiB
        monitor source: 3
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Stereo
        used by: 1
        linked by: 2
        configured latency: 2.51 ms; range is 0.50 .. 1999.82 ms
        card: 0 <alsa_card.pci-0000_07_00.1>
        module: 6
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "BenQ GC2870"
                alsa.id = "HDMI 0"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "3"
                alsa.card = "0"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xfca88000 irq 88"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:07:00.1"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:07:00.1/sound/card0"
                device.bus = "pci"
                device.vendor.id = "1002"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
                device.product.id = "1637"
                device.product.name = "Renoir Radeon High Definition Audio Controller"
                device.string = "hdmi:0"
                device.buffering.buffer_size = "352768"
                device.buffering.fragment_size = "176384"
                device.access_mode = "mmap+timer"
                device.profile.name = "hdmi-stereo"
                device.profile.description = "Digital Stereo (HDMI)"
                device.description = "Renoir Radeon High Definition Audio Controller Digital Stereo (HDMI)"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        ports:
                hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: yes)
                        properties:
                                device.icon_name = "video-display"
                                device.product.name = "BenQ GC2870"
        active port: <hdmi-output-0>

The first result I found when searching for static noise firmware site:https://forum.manjaro.org was this closed topic without any answers… You could remove it or rename it to make it clear it’s unsolved.

Since you are using Manjaro with the Cinnamon desktop environment, it is likely that you are using PulseAudio as the default sound server. To troubleshoot the static crackling noise issue, you can try the following steps:

  1. Check if you have the latest sof-firmware installed by running:

    sudo pacman -Syu sof-firmware
    

    This command will update the sof-firmware package if it’s not up-to-date.

  2. Check if PulseAudio is running and configured correctly by running:

    pacmd list-sinks
    

    This command will show the available audio sinks (output devices) and their configurations.

  3. If you see any issues with the configuration, you can try resetting PulseAudio settings by removing the user configuration folder:

    rm -r ~/.config/pulse
    

    After removing the folder, restart PulseAudio with:

    pulseaudio -k
    pulseaudio --start
    
  4. If the issue persists, you can try changing the audio output profile. Open the “Sound” settings in the Cinnamon settings menu, and try selecting a different profile for your audio output device.

  5. If none of the above steps resolve the issue, you can consider switching to PipeWire as an alternative to PulseAudio. To do this, first, remove PulseAudio and install PipeWire with the following commands:

    sudo pacman -Rns manjaro-pulse pulseaudio
    sudo pacman -S manjaro-pipewire
    

    Then, reboot your system for the changes to take effect.

Remember that these steps are specific to Manjaro with the Cinnamon desktop environment and PulseAudio as the default sound server. If you are using a different sound server, such as PipeWire or ALSA, the troubleshooting steps may differ.

I have been experiencing an intermittent crackling sound issue on my Manjaro system, and I have found a temporary fix for it by executing the following commands:

rm -rf ~/.config/pulse
pulseaudio -k
pulseaudio -D

After applying these commands, I also need to navigate to Sound Settings > Output to select the appropriate Device and adjust the Volume.

Additional Information:

❯ inxi -A
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
  Device-2: AMD Family 17h/19h HD Audio driver: snd_hda_intel
  API: ALSA v: k6.6.18-1-MANJARO status: kernel-api
  Server-1: PulseAudio v: 17.0 status: active

While this workaround helps resolve the problem temporarily, I am seeking a more permanent solution or any insights into why this issue occurs in the first place. If anyone has encountered a similar problem or has suggestions on how to troubleshoot and fix this crackling sound issue on Manjaro Linux, I would greatly appreciate your input.

Thank you in advance for your assistance!

Forcing deletion of ~/.config/pulse folder is not needed.
Contents of folder can be deleted without -f options

rm ~/.config/pulse/*

Manjaro uses a systemd socket and service to control PulseAudio.
To restart pulseaudio it is recommended to use

systemctl --user restart pulseaudio

instead of killing pulseaudio daemon

If audio distortion is an issue for both PulseAudio and Pipewire, there may be an underlying problem in ALSA

I suggest test audio playback direct to ALSA device:

  1. Stop pulseaudio socket and service

    systemctl --user stop pulseaudio.socket pulseaudio.service
    
  2. Use speaker-test to play audio to ALC887-VD Analog outputs

    speaker-test -D hw:1,0 -c2 -l2 -t wav
    
  3. If the headset is usually plugged in to front headphone jack it should also be tested when plugged in to rear jack
    Front jack can be more susceptible to induced noise if internal connecting cables are not well screened or are routed close to other digital cables (e.g. front USB sockets)

1 Like