FS#69433 - [ALSA/pulseaudio] slight beep noise in laptop's audio jack

Attached to Project: Arch Linux
Opened by Chen Q (cstn) - Monday, 25 January 2021, 11:23 GMT
Last edited by David Runge (dvzrv) - Tuesday, 01 June 2021, 12:25 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan Alexander Steffens (heftig)
David Runge (dvzrv)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Summary:

there's a slight beep-beep sound appears when connect speaker or headphone to laptop's audio jack.
if play some music or normal sound in system, i can distinguish the beep-beep sound will disappear immediately, stop music, noise beep-beep come back again.

laptop's built-in speaker is ok, no noise occured.


more description:

i reported this in pulseaudio's community here:
https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/1099

in that post, someone suggest me: Change the line 'load-module module-suspend-on-idle' to '#load-module module-suspend-on-idle' in '/etc/pulse/default.pa'
it works for me. the noise disappeared. but the sound card usage is alway 100%, i checked it form 'powertop'.

for more test, i tried the distro manjaro on the same machine. pulseaudio's config file is default, leave the line 'load-module module-suspend-on-idle' in '/etc/pulse/default.pa'. there's no beep noise in audio jack.
so i think it's possible the bug from archlinux integration.

i tried another laptop with same software with sound card realtek ALC233 Anolog, there's no noise.

Additional info:
* arch linux kernel: 5.10.9-arch1-1
* alsa-firmware 1.2.4-2
* alsa-card-profiles 1:0.3.20-1 (ALSA card profiles shared by PipeWire)
* alsa-lib 1.2.4-3
* link to upstream pulseaudio report, https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/1099

for manjaro test, software info:
* manjaro linux kernel: 5.10.7-3-manjaro
* alsa-firmware 1.2.4-2
* alsa-card-profiles 14.2-1 (ALSA card profiles shared by PulseAudio)
* alsa-lib 1.2.4-3

hardware:
sound card: realtek ALC269VC

Steps to reproduce:
1. plug a speak or headphone to laptop's audio jack.
2. noise beep occured with no sound or music played in system.
3. start to play music in system, the noise disappear immediately.
4. stop playing music, noise come back immediately.
5. manjaro can't reproduce this bug.


This task depends upon

Closed by  David Runge (dvzrv)
Tuesday, 01 June 2021, 12:25 GMT
Reason for closing:  Won't fix
Additional comments about closing:  Hardware issues can not be reproduced anymore.

Issue has most likely been related to power savings options for the respective audio driver.
Comment by Chen Q (cstn) - Friday, 26 February 2021, 13:58 GMT
i found another similar issue post in redhat's community. some user just get the pop noise from realtek codec suspend-on-idle. but i lost that post's URL. sorry...

thet mentioned they did a kernel fix/patch and repoted to the upstream.

maybe it's realtek codec's problem. it cannot suspend right in. hope archlinux can fix that pop/bounce/beep noise issue.
Comment by David Runge (dvzrv) - Wednesday, 21 April 2021, 11:17 GMT
@cstn: Thanks for the report.

This reads like a device specific issue, when it is put to sleep.
As alsa-{firmware,lib} are the same package on both Arch and Manjaro, it is potentially a problem with the kernel (have you tried linux instead of linux-lts?) or the card not suspending properly.
Do you make use of tooling to manage power savings (e.g. powertop)? As I have no idea what Manjaro does in regards to power savings, I can't really judge there (might be that they more aggressively apply power savings).
Comment by Chen Q (cstn) - Wednesday, 28 April 2021, 07:11 GMT
@David Runge (dvzrv):Hi,

I did run linux and lunux-lts both, but noise comes also.
I didn't use powertop or other tools to manage power saving, just with PulseAudio's suspend configuration.
Yes I guess it's the specific ALC269VC codec cannot go to sleep in right way.
I think the different between Arch and Manjaro is, alsa-card-profiles package is shared by pipewire in Arch. But alsa-card-profiles package is shared by PulseAudio in manjaro.

With a long term noise disturbance, I gave up to work with it and sold the laptop. Sorry can't test that issue again.

new laptop has realtek ALC282 Analog codec, i recovered my same old Arch system from old laptop to my new one. and it sleep good, no noise anymore in audio jack. but another little problem is, every time start to play sound or just stop sound play, the built-in speakers will come a big pop-pop/da-da noise, or when connect audiojack, the built-in speaker will comes that noise.(noise not in headphones. but in built-in speakers).

and i noticed that, my new laptop has dual boot OS with Arch and Windows, every time after i boot into windows, then reboot back into Arch, the built-in speakers won't work any sound whatever i play music or make other sound, it just did't work, but the headphone jack works normally(play sound good, and no noise). the way to bring built-in speakers back to work is, connect a HDMI cable to a TV or a display monitor, then switch built-in audio profiles by using 'pavucontrol' tool, the speakers will work again(still have the pop-pop/da-da noise problem).

it looks like ALC269VC and ALC282 have the same issue with disturbing noise, though one is from headphone jack and the other one is from speakers. maybe they can't switch right between different status.

any suggestion? thanks!

Loading...