[Solved] Very loud beeping noise when playing audio from built in speakers

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Arufonso
Level 1
Level 1
Posts: 3
Joined: Fri Nov 25, 2022 4:10 pm

[Solved] Very loud beeping noise when playing audio from built in speakers

Post by Arufonso »

so i've been using linux mint 20.3 for about half a year now without any problems and recently had to reinstall, so i decided to install linux mint 21 cinnamon as i was already using cinnamon before.
but there was a problem, every few minutes (1 to 3 minutes) audio will turn to a loud beeping noise that only stops when closing or pausing the program playing music or audio. the sound won't decrease in loudness when lowering the volume and sometimes it remains even when all programs have closed for a while
in firefox, every time it happens in youtube, the video also stops. and in the spotify linux client, the song also pauses.
i've already tried every step in Mr eren's guide showcased in viewtopic.php?t=363010 and have been trying to find a solution within forums for 3 weeks to no avail
i tried installing linux mint 20.3 again and the problem is still present (at this point, i've reinstalled linux both 21 and 20.3 numerous times and the loud noise is always present)
however, audio works completely well when playing from my tv connected with an hdmi cable. the problem is still present when using headphones
i've also tried installing different kernels from 5.4, 5.8, 5.11, 5.13 and 5.15 of which only 5.15 recognizes the built in speakers. the other ones only showed a dummy output and required mr eren's guide to have any sound at all
the audio worked before, im all out of ideas and can't seem to find any solutions to related problems
my laptop is an ASUS chromebook c202

Code: Select all

System:
  Kernel: 5.15.0-53-generic x86_64 bits: 64 compiler: N/A 
  Desktop: Cinnamon 5.2.7 wm: muffin 5.2.1 dm: LightDM 1.30.0 
  Distro: Linux Mint 20.3 Una base: Ubuntu 20.04 focal 
Machine:
  Type: Laptop System: GOOGLE product: Terra v: 1.0 serial: <filter> 
  Chassis: type: 9 serial: <filter> 
  Mobo: GOOGLE model: Terra v: 1.0 serial: <filter> UEFI: coreboot 
  v: MrChromebox-4.14 date: 07/25/2021 
Battery:
  ID-1: BAT0 charge: 13.6 Wh condition: 27.1/38.0 Wh (71%) volts: 8.2/7.6 
  model: AS19MSD C202-50 type: Li-ion serial: <filter> status: Charging 
  cycles: 438 
CPU:
  Topology: Dual Core model: Intel Celeron N3060 bits: 64 type: MCP 
  arch: Airmont rev: 4 L2 cache: 1024 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 6400 
  Speed: 1173 MHz min/max: 480/2480 MHz Core speeds (MHz): 1: 1568 2: 1283 
Graphics:
  Device-1: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx 
  Integrated Graphics 
  driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:22b1 
  Display: x11 server: X.Org 1.20.13 driver: modesetting 
  unloaded: fbdev,vesa resolution: 1366x768~60Hz 
  OpenGL: renderer: Mesa DRI Intel HD Graphics 400 (BSW) v: 4.6 Mesa 21.2.6 
  compat-v: 3.0 direct render: Yes 
Audio:
  Device-1: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series 
  High Definition Audio 
  driver: snd_hda_intel v: kernel bus ID: 00:1b.0 chip ID: 8086:2284 
  Sound Server: ALSA v: k5.15.0-53-generic 
Network:
  Device-1: Intel Wireless 7265 driver: iwlwifi v: kernel port: 1000 
  bus ID: 02:00.0 chip ID: 8086:095a 
  IF: wlp2s0 state: up mac: <filter> 
Drives:
  Local Storage: total: 74.68 GiB used: 11.40 GiB (15.3%) 
  ID-1: /dev/mmcblk0 model: HAG4a2 size: 14.68 GiB serial: <filter> rev: 0x8 
  scheme: GPT 
  ID-2: /dev/mmcblk1 model: USD size: 60.00 GiB serial: <filter> scheme: GPT 
Partition:
  ID-1: / size: 58.26 GiB used: 11.39 GiB (19.6%) fs: ext4 
  dev: /dev/mmcblk1p2 
Sensors:
  System Temperatures: cpu: 52.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Repos:
  No active apt repos in: /etc/apt/sources.list 
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
  1: deb http://packages.linuxmint.com una main upstream import backport #id:linuxmint_main
  2: deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
  3: deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
  4: deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
  5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
  6: deb http://archive.canonical.com/ubuntu/ focal partner
Info:
  Processes: 208 Uptime: 14m Memory: 3.78 GiB used: 1.15 GiB (30.5%) 
  Init: systemd v: 245 runlevel: 5 Compilers: gcc: 9.4.0 alt: 9 Shell: bash 
  v: 5.0.17 running in: gnome-terminal inxi: 3.0.38 
Last edited by LockBot on Thu May 25, 2023 10:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
vimes666
Level 6
Level 6
Posts: 1241
Joined: Tue Jan 19, 2016 6:08 pm

Re: Very loud beeping noise when playing audio from built in speakers

Post by vimes666 »

If you recognize your problem in this thread:
https://askubuntu.com/questions/1393842 ... -21-10-asu
then executing this command in the terminal possibly fixes it

Code: Select all

wget -qO- https://gist.github.com/heikomat/3fe272431b44b580c933bfb901a92257/raw | bash
As far as I understand it tries to install new audio drivers in the kernel.
If you think the issue is solved, edit your original post and add the word solved to the title.
Arufonso
Level 1
Level 1
Posts: 3
Joined: Fri Nov 25, 2022 4:10 pm

Re: Very loud beeping noise when playing audio from built in speakers

Post by Arufonso »

vimes666 wrote: Sat Nov 26, 2022 9:23 am If you recognize your problem in this thread:
https://askubuntu.com/questions/1393842 ... -21-10-asu
then executing this command in the terminal possibly fixes it

Code: Select all

wget -qO- https://gist.github.com/heikomat/3fe272431b44b580c933bfb901a92257/raw | bash
As far as I understand it tries to install new audio drivers in the kernel.
hi, thank you very much for replying
i've been testing this command alongside the steps from this guide https://github.com/heikomat/linux/tree/ ... DeqyJnL4po that was shared in the thread but still to no avail, i still hear the beeping sound every few minutes
i tried it both on mint 21 and 20.3
vimes666
Level 6
Level 6
Posts: 1241
Joined: Tue Jan 19, 2016 6:08 pm

Re: Very loud beeping noise when playing audio from built in speakers

Post by vimes666 »

Did you also produce a pulseaudio log as suggested on that github page under 'Getting a detailed pulseaudio log, for when debugging is necessary"
If so can you share it here?
If you think the issue is solved, edit your original post and add the word solved to the title.
vimes666
Level 6
Level 6
Posts: 1241
Joined: Tue Jan 19, 2016 6:08 pm

Re: Very loud beeping noise when playing audio from built in speakers

Post by vimes666 »

Another question, is the system on mains power or on battery when the beep manifests?
If you think the issue is solved, edit your original post and add the word solved to the title.
Arufonso
Level 1
Level 1
Posts: 3
Joined: Fri Nov 25, 2022 4:10 pm

Re: Very loud beeping noise when playing audio from built in speakers

Post by Arufonso »

vimes666 wrote: Sat Nov 26, 2022 5:05 pm Did you also produce a pulseaudio log as suggested on that github page under 'Getting a detailed pulseaudio log, for when debugging is necessary"
If so can you share it here?
no, but i got some time to read a bit further in the thread
Here's github issue on this problem: https://github.com/thesofproject/sof/issues/3868.

To summarize, adding options snd_sof sof_debug=1 to the /etc/modprobe.d/alsa-base.conf should help.
so i kinda brute forced my way to add options snd_sof sof_debug=1 to the file using

Code: Select all

sudo nano /etc/modprobe.d/alsa-base.conf
and it actually solved the issue within both of my mint installations
thank you for leading me to the thread!
vimes666
Level 6
Level 6
Posts: 1241
Joined: Tue Jan 19, 2016 6:08 pm

Re: [Solved] Very loud beeping noise when playing audio from built in speakers

Post by vimes666 »

Ok, I am glad its working :)
If you think the issue is solved, edit your original post and add the word solved to the title.
calderico
Level 1
Level 1
Posts: 2
Joined: Sun Dec 18, 2022 5:17 pm

Re: [Solved] Very loud beeping noise when playing audio from built in speakers

Post by calderico »

Hello, i have the same issue but i'm new to linux and i have no idea how to fix it. I've opened the
sudo nano /etc/modprobe.d/alsa-base.conf
using the terminal, but i don't know where to copy the:
options snd_sof sof_debug=1
I don't know also what to do after copying that, ctrl+0 and save it? or ctrl + t and execute it?
I could use some help. I'm enjoying my linux experience so far, but i really need to use audio :).
User avatar
karlchen
Level 23
Level 23
Posts: 18231
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: [Solved] Very loud beeping noise when playing audio from built in speakers

Post by karlchen »

Hello, calderico.

Having gone through my own file /etc/modprobe.d/alsa-base.conf, I am sure that you can simply add the line
options snd_sof sof_debug=1 at the end of the file.
Then save and close the editor nano.

I am not quite sure whether it is really required, but if want to make sure that alsa honours the new parameter, reboot.

HTH,
Karl
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 792 days now.
Lifeline
calderico
Level 1
Level 1
Posts: 2
Joined: Sun Dec 18, 2022 5:17 pm

Re: [Solved] Very loud beeping noise when playing audio from built in speakers

Post by calderico »

Thank you all, i have it solved.
snmcdonald
Level 1
Level 1
Posts: 1
Joined: Tue Feb 21, 2023 10:27 am

Re: [Solved] Very loud beeping noise when playing audio from built in speakers

Post by snmcdonald »

adding the debug option fixed my laptop sound. thank you!

Code: Select all

/etc/modprobe.d/alsa-base.conf
options snd_sof sof_debug=1
Locked

Return to “Sound”