Buzzing sound, random crack from speakers

Not solved even if now the issue seems less prominent (crack sound is low now but still presented)
But al least now sound quality seems better with pipewire (installed wireplumber too). Tried with media-session before install wireplumber but same issue.
Pipewire is active i think

pactl    info                                                                                                                          ✔ 
Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 136
Tile Size: 65472
User Name: cris
Host Name: Huawei
Server Name: PulseAudio (on PipeWire 0.3.51)
Server Version: 15.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_02_00.6.analog-stereo
Default Source: alsa_input.pci-0000_02_00.6.analog-stereo
Cookie: e19c:a1db

please try the following and report if crackling disappeares. if so, i’ll post how to do this setting permanent.

echo 0 | sudo tee /sys/module/snd_hda_intel/parameters/power_save 

echo N | sudo tee /sys/module/snd_hda_intel/parameters/power_save_controller 

Untill I reboot seems that those 2 paramateres are working (even if I doesn’t have intel hardware on my system), if you can tell me how made permanent I will test better. Thanks

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

and reboot.

hope that solved your issue

P.S.: it doesn’t matter, your hardware is intel-compatible and the used driver is the intel_snd-driver.

Not solved sadly, I hope I made it permanent ( I copy your string on terminal and reboot) but after some testing nothing changed.

Hi there, it seems that I have the same issue, where I previously also had the buzzing sound issue solved here, but it suddenly appeared again. I used the dual boot, and I found this after booting to windows (but not sure if it is relevant). Also, I could not find /sys/module/snd_hda_intel, the only options related to snd_hda would be

snd_hda_codec/         snd_hda_codec_hdmi/    snd_hda_core/
snd_hda_codec_generic/ snd_hda_codec_realtek/ snd_hda_ext_core/

This is also not solved for me, and there is only one line in /etc/modprobe.d/hda.conf after this command.

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

I used xfce though.

System:
  Kernel: 5.17.9-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.17-x86_64
    root=UUID=17a57bc5-4569-4d1b-8454-2c7d491f058c rw quiet apparmor=1
    security=apparmor udev.log_priority=3 snd_hda_intel.power_save=0
    button.lid_init_state=open
  Desktop: Xfce v: 4.16.0 tk: Gtk v: 3.24.29
    info: xfce4-panel, plank, vala-panel wm: xfwm v: 4.16.1 vt: 7 dm: LightDM
    v: 1.30.0 Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: Razer product: Blade 15 (2022) - RZ09-0421 v: 8.04
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: Razer model: CH580 v: 4 serial: <superuser required> UEFI: Razer
    v: 1.09 date: 02/22/2022
Battery:
  ID-1: BAT0 charge: 81.9 Wh (100.0%) condition: 81.9/80.2 Wh (102.2%)
    volts: 17.4 min: 15.4 model: Razer Blade type: Unknown serial: <filter>
    status: full
  ID-2: hidpp_battery_0 charge: 20% condition: N/A volts: 3.7 min: N/A
    model: Logitech G903 LIGHTSPEED Wireless Gaming Mouse w/ HERO type: N/A
    serial: <filter> status: discharging
CPU:
  Info: model: 12th Gen Intel Core i7-12800H bits: 64 type: MST AMCP
    arch: Alder Lake family: 6 model-id: 0x9A (154) stepping: 3 microcode: 0x41C
  Topology: cpus: 1x cores: 14 mt: 6 tpc: 2 st: 8 threads: 20 smt: enabled
    cache: L1: 1.2 MiB desc: d-8x32 KiB, 6x48 KiB; i-6x32 KiB, 8x64 KiB
    L2: 11.5 MiB desc: 6x1.2 MiB, 2x2 MiB L3: 24 MiB desc: 1x24 MiB
  Speed (MHz): avg: 811 high: 2198 min/max: 400/2400:1800 scaling:
    driver: intel_pstate governor: powersave cores: 1: 522 2: 2198 3: 529 4: 708
    5: 958 6: 713 7: 631 8: 1188 9: 612 10: 709 11: 413 12: 874 13: 661
    14: 794 15: 873 16: 803 17: 1041 18: 517 19: 768 20: 726 bogomips: 112160
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  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: Enhanced IBRS, IBPB: conditional, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel Alder Lake-P Integrated Graphics vendor: Razer USA
    driver: i915 v: kernel ports: active: eDP-1 empty: none bus-ID: 00:02.0
    chip-ID: 8086:46a6 class-ID: 0300
  Device-2: NVIDIA GA103M [GeForce RTX 3080 Ti Laptop GPU] vendor: Razer USA
    driver: nvidia v: 510.73.05 alternate: nouveau,nvidia_drm non-free: 515.xx+
    status: current (as of 2022-05) arch: Ampere pcie: gen: 1 speed: 2.5 GT/s
    lanes: 8 link-max: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 01:00.0
    chip-ID: 10de:2460 class-ID: 0300
  Device-3: IMC Networks Integrated RGB Camera type: USB driver: uvcvideo
    bus-ID: 1-2:2 chip-ID: 13d3:5279 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.1
    compositor: xfwm v: 4.16.1 driver: X: loaded: modesetting,nvidia
    alternate: fbdev,nouveau,nv,vesa gpu: i915 display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 4608x1985 s-dpi: 96 s-size: 1219x525mm (47.99x20.67")
    s-diag: 1327mm (52.25")
  Monitor-1: HDMI-1-0 pos: primary,top-right res: 2560x1440 hz: 60 dpi: 108
    size: 600x340mm (23.62x13.39") diag: 690mm (27.15") modes: N/A
  Monitor-2: eDP-1 pos: bottom-l res: 2048x1152 hz: 60 dpi: 151
    size: 344x194mm (13.54x7.64") diag: 395mm (15.55") modes: N/A
  Message: Unable to show GL data. Required tool glxinfo missing.
Audio:
  Device-1: Intel Alder Lake PCH-P High Definition Audio vendor: Razer USA
    driver: sof-audio-pci-intel-tgl
    alternate: snd_hda_intel,snd_sof_pci_intel_tgl bus-ID: 00:1f.3
    chip-ID: 8086:51c8 class-ID: 0401
  Device-2: NVIDIA vendor: Razer USA driver: N/A alternate: snd_hda_intel
    pcie: gen: 1 speed: 2.5 GT/s lanes: 8 link-max: gen: 4 speed: 16 GT/s
    lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:2288 class-ID: 0403
  Sound Server-1: ALSA v: k5.17.9-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.21 running: no
  Sound Server-3: PulseAudio v: 15.0 running: no
  Sound Server-4: PipeWire v: 0.3.51 running: yes
Network:
  Device-1: Intel Alder Lake-P PCH CNVi WiFi vendor: Rivet Networks
    driver: iwlwifi v: kernel bus-ID: 00:14.3 chip-ID: 8086:51f0 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
Bluetooth:
  Device-1: Intel type: USB driver: btusb v: 0.8 bus-ID: 1-10:6
    chip-ID: 8087:0033 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
Drives:
  Local Storage: total: 953.87 GiB used: 164.5 GiB (17.2%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 model: NVMe CA6-8D1024 size: 953.87 GiB
    block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s lanes: 4
    type: SSD serial: <filter> rev: ERA0902 temp: 37.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 672.78 GiB size: 661.15 GiB (98.27%)
    used: 164.45 GiB (24.9%) fs: ext4 dev: /dev/nvme0n1p5 maj-min: 259:5
  ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%)
    used: 50.7 MiB (52.8%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 27.8 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 427 Uptime: 5m wakeups: 4 Memory: 31.04 GiB
  used: 4.56 GiB (14.7%) Init: systemd v: 250 tool: systemctl Compilers:
  gcc: 12.1.0 clang: 13.0.1 Packages: 1457 pacman: 1438 lib: 333 flatpak: 10
  snap: 9 Shell: Bash v: 5.1.16 running-in: xfce4-terminal inxi: 3.3.16

not sure if I need to create a new post but just sharing here for now.

just a follow-up. I booted to the windows system again, and instead of “restart”, I shut it down first and then booted to Manjaro. The first boot leads me to lose WiFi connection, but when I did a reboot, everything works fine now. no buzzing sound anymore. Does it seem because of the dual boot? really wired.

Me too dual boot but I think is not dual boot the problem.
On Arch Wiki i found that
https://wiki.archlinux.org/title/Advanced_Linux_Sound_Architecture/Troubleshooting#Pops_when_starting_and_stopping_playback

But I have not a file called modprobe.conf , I have only HDA.conf so I don’t know if create this modbrobe.conf is a good idea

thats the same thing you alredy have from @olli recommendation, but you have hda.conf instead modprobe.conf, but the parameters are the same…
whats the output from:
systemctl --user status pipewire

dsystemctl --user status pipewire                                                                                                       ✔ 
● pipewire.service - PipeWire Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; disabled; vendor preset: enabled)
     Active: active (running) since Sun 2022-05-29 08:39:47 CEST; 1h 50min ago
TriggeredBy: ● pipewire.socket
   Main PID: 1028 (pipewire)
      Tasks: 2 (limit: 8188)
     Memory: 7.3M
        CPU: 5.310s
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
             └─ 1028 /usr/bin/pipewire

mag 29 08:39:47 Huawei systemd[699]: Started PipeWire Multimedia Service.igita o incolla il codice qui

nothing there… you could try running this command, after you created the file in etc/modprobe:
sudo mkinitcpio -P
then reboot and test

sorry I don’t understand: I have to create a file (and what file) before the command? Or get the command and than reboot and the file is created by the command?

no you already created the file with @olli command above - the file hda.conf … but i think you have to recreate initframs (not 100% sure) after you create something in the etc/modprobe folder… and you do this with this commnad:
sudo mkinitcpio -P
then reboot and test

buzz sound from speaker is here when booting and when desktop is loading, and I think is normal because manjaro does not have time to load the sound setting at boot. But after that I have not buzzing sound on firefox or VLC playing somethig. So seems buzz sound now is only at startup. I test more to see if does not appear anymore during activity. Thanks

After testing the issue is not solved, but at least the buzz sound is low not disturbing and less preminent than before.

I’m guessing you mean from the laptop speakers and not external Speakers, Have you tested with ear phones and does it do the same thing, you could try editing file (with super user):

/etc/pipewire/pipewire.conf

and un-hash these lines:

default.clock.allowed-rates = [ ****** ]
default.clock.min-quantum = **
default.clock.max-quantum = ****

And as I’m not to sure about the specs of your onboard sound card try these settings first:

default.clock.allowed-rates = [ 48000 44100 ]
default.clock.min-quantum = 32
default.clock.max-quantum = 8192

If you card does upto 96k then you can try:

default.clock.allowed-rates = [ 96000 88200 48000 44100 ]

Save and reboot, not saying this will work but worth a try.

Also make sure these (user) services are running:

pipewire
pipewire-media-session or wireplumber (depends on which one your using here)
pipewire-pulse
pipewire.socket
pipewire-pulse.socket

Thanks but too complicate for me that I’m new on linux, I don’t have any "pipewire.conf " file to edit on “etc/pipewire” and I don’t know how edit a file as superuser too.

Thanks for the hint. This solved my issue. But I had to modify your command a bit, otherwise the apostrophes get copied to the conf-file.

Command working for me was:

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

EDIT: My machine is a Dell Precision 5560 (maybe that’s of interest for some)

Yes without the " " command is working for me too
echo options snd-hda-intel power_save=0 power_save_controller=N | sudo tee /etc/modprobe.d/hda.conf

No more buzzing sound from speakers

These are wrong quotes:

Straight ones work fine.