LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Crack sound on multimedia start (https://www.linuxquestions.org/questions/linux-desktop-74/crack-sound-on-multimedia-start-4175736460/)

bialyikar 04-26-2024 06:25 PM

Crack sound on multimedia start
 
Hello,
I have a problem where there is a "cracking" sound in the speakers when starting up the computer or launching multimedia applications.
I recorded a video demonstrating the issue during the computer startup and with Spotify, but the same happens with any other multimedia application.
The problem doesn't persist afterward. For example, when I start Spotify and play a song, there is a crackle, but subsequent songs are fine. However, the issue reoccurs after closing and reopening Spotify.
The same is true for YouTube tabs in the browser, video players like SMPlayer, or editors like KDENlive...

Here is a video illustrating the problem: https://youtu.be/S6JBEOCTCtw.
The crackles in the video occur at seconds: 2, 35, 58, 1:11, 1:57.

The problem arose a few years ago when I changed the motherboard to "Asrock B450 Pro4" (Realtek ALC892).
I managed to deal with it by editing the file: "/etc/modprobe.d/snd_hda_intel.conf" and adding: "options snd_hda_intel power_save=0".
Unfortunately, today the problem has resurfaced, and nothing helps.

I found a similar issue here: https://forum.manjaro.org/t/poop-sou...start/133055/5 but the solution there didn't help me.

I've already tried:
/etc/modprobe.d/snd_hda_intel.conf
options snd_hda_intel power_save=0

/etc/modprobe.d/disablePower.conf
options snd_hda_intel power_save=0

.config/pulse/daemon.conf
default-sample-rate = 48000

/etc/pulse/daemon.conf
default-sample-rate = 48000

/etc/modprobe.d/hda-no-suspend.conf
options snd_hda_intel power_save=0 power_save_controller=N

/etc/pulse/default.pa
load-module module-suspend-on-idle > #load-module module-suspend-on-idle
My system is: Kubuntu 23.10
Motherboard: "Asrock B450 Pro4"
I'm using the built-in sound card and 5.1 speakers.

ferrari 04-30-2024 03:13 PM

Can you show the output from
Code:

inxi -Aa
That will provide information about your working audio environment.

bialyikar 04-30-2024 05:19 PM

Thanks for your response.
The issue has temporarily disappeared because I installed the latest version of Kubuntu 24.04.
I couldn't handle it, and, the latest version was released, so I decided to give it a try. Therefore, providing the result of the command 'inxi -Aa' will not be relevant now, but I will still provide it.

Code:

inxi -Aa
Audio:
  Device-1: NVIDIA TU116 High Definition Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 09:00.1 chip-ID: 10de:1aeb class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: ASRock
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 0b:00.4 chip-ID: 1022:1487 class-ID: 0403
  API: ALSA v: k6.8.0-31-generic status: kernel-api
    tools: alsactl,alsamixer,amixer
  Server-1: PipeWire v: 1.0.5 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active
    tools: pactl,pw-cat,pw-cli,wpctl

After installing the new system and editing
Quote:

/etc/modprobe.d/snd_hda_intel.conf
Quote:

options snd_hda_intel power_save=0
, it helped.
However, I would like to understand the root cause of this problem. The issue did not occur on the previous motherboard. After changing the motherboard to "B450 Pro4" and each system installation, I experience "popping" in the speakers.

ferrari 04-30-2024 06:22 PM

When you say "temporarily disappeared because I installed the latest version of Kubuntu 24.04.", what do you mean? Are you planning to return to the older Kubuntu version again?

bialyikar 04-30-2024 08:18 PM

My mistake.
I don't intend to revert to the older version or switch to a different distribution anytime soon. On the previous system version, the problem arose suddenly. I'm not sure if it was the result of any of my actions. Perhaps I installed LTP at that time, which killed some processes responsible for sound playback? But even without LTP, the problem persists on a clean system.
However, I believe that manual editing of files after a fresh system installation to fix an issue should not be necessary (I also don't consider it to be a big issue, but still ;)). That's why I would like to find out what is causing this sound problem :) Out of pure curiosity, at least.

ferrari 04-30-2024 08:51 PM

Quote:

Originally Posted by bialyikar (Post 6499146)
After changing the motherboard to "B450 Pro4" and each system installation, I experience "popping" in the speakers.

Disabling audio power saving is a commonly employed fix for affected hardware. Not distro-specific.

FWIW
https://forum.asrock.com/forum_posts...ock-b450m-pro4

Similar Manjaro thread:
https://forum.manjaro.org/t/audio-de...uration/115474


All times are GMT -5. The time now is 03:09 PM.