You are not logged in.

#1 2021-10-24 07:27:52

860lacov
Member
Registered: 2020-05-02
Posts: 452

Loud pops when headphones are connected

When nothing plays and headphones are connected I can hear loud clicks and pops.
There is a solved topic on the forum.
Loud pops when nothing plays for a few seconds, pipewire.

The solution in this topic is:

For anyone finding this, the fix was to change session.suspend-timeout-seconds to be 0 in /etc/pipewire/media-session.d/alsa-monitor.conf

Maybe something was changed, but I don't have pipewire directory in /etc
But I've found the same file in /usr/share/pipewire/media-session.d/

But the solution from quoted topic didn't help me.
I believe that sound card or some chip/DAC is turned off and on in short intervals.

Edit.
Wiki says:

Factory config files were moved from /etc/pipewire/ to /usr/share/pipewire/. System wide config can still be done in /etc/pipewire/ and user config in $HOME/.config/pipewire/, but files must be copied from /usr/share/pipewire/

But do I have to copy only alsa-monitor.conf into the /etc/pipewire or the whole directory so it will look like this:
/etc/pipewire/
├── client.conf
├── client-rt.conf
├── filter-chain
│   ├── demonic.conf
│   ├── sink-dolby-surround.conf
│   ├── sink-eq6.conf
│   ├── sink-matrix-spatialiser.conf
│   ├── sink-virtual-surround-5.1-kemar.conf
│   ├── sink-virtual-surround-7.1-hesuvi.conf
│   └── source-rnnoise.conf
├── jack.conf
├── media-session.d
│   ├── alsa-monitor.conf
│   ├── bluez-monitor.conf
│   ├── media-session.conf
│   ├── v4l2-monitor.conf
│   ├── with-alsa
│   ├── with-jack
│   └── with-pulseaudio
├── pipewire.conf
└── pipewire-pulse.conf

Last edited by 860lacov (2022-02-06 13:39:26)

Offline

#2 2021-10-24 10:53:16

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,786

Re: Loud pops when headphones are connected

Try disabling snd_hda_intel power save via e.g. /etc/modprobe.d/disablePowerSave.conf

options snd_hda_intel power_save=0

(if you use TLP or so they might have their own config for this you'd have to adjust) and rebooting. Also make sure you actually push the jack in properly this can also happen if it's only like half connected or so.

Online

#3 2021-10-24 14:40:24

seth
Member
Registered: 2012-09-03
Posts: 51,684

Re: Loud pops when headphones are connected

What's the frequency of the artifacts (is there a steady frequency or is it more like https://www.youtube.com/watch?v=vL2TYoBYsnY )?
https://bbs.archlinux.org/viewtopic.php?pid=1999321

Offline

#4 2021-10-24 14:59:29

860lacov
Member
Registered: 2020-05-02
Posts: 452

Re: Loud pops when headphones are connected

V1del wrote:

Try disabling snd_hda_intel power save via e.g. /etc/modprobe.d/disablePowerSave.conf

options snd_hda_intel power_save=0

(if you use TLP or so they might have their own config for this you'd have to adjust) and rebooting. Also make sure you actually push the jack in properly this can also happen if it's only like half connected or so.

I use TLP
There is:

# Enable audio power saving for Intel HDA, AC97 devices (timeout in secs).
# A value of 0 disables, >= 1 enables power saving.
# Note: 1 is recommended for Linux desktop environments with PulseAudio,
# systems without PulseAudio may require 10.
# Default: 1

#SOUND_POWER_SAVE_ON_AC=1
#SOUND_POWER_SAVE_ON_BAT=1

Is this the setting that I should edit?

seth wrote:

What's the frequency of the artifacts (is there a steady frequency or is it more like https://www.youtube.com/watch?v=vL2TYoBYsnY )?
https://bbs.archlinux.org/viewtopic.php?pid=1999321

The frequency is quite random but...
There is no popping when I listen music on YouTube or watch a movie in MPV. When I stop the music, then it takes about 3 seconds and popping starts. And then the interval is random, sometimes there are 5 seconds between one or two pops. Sometimes less or more.

Last edited by 860lacov (2021-10-24 15:00:12)

Offline

#5 2021-10-24 18:12:08

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,786

Re: Loud pops when headphones are connected

Uncomment these two lines and set them to 0, plug your cable or restart tlp and check

systool -vm snd_hda_intel

that power_save is actually disabled/set to 0

Last edited by V1del (2021-10-24 18:19:35)

Online

#6 2021-10-25 20:45:18

860lacov
Member
Registered: 2020-05-02
Posts: 452

Re: Loud pops when headphones are connected

That didn't help but...
There was an update on 24.10.2021

There is something different.
When I start a song on YouTube, when I press the play button, there is a pop. When I pause the song, after about 3 seconds there is another pop.
So it seems that it actually can be a DAC thing.
The good side is that when I don't listen anything there are no pops in silence smile

Is it possible that there will be some kind of software fix, or can it be hardware related? Can I do something to check it ?

Offline

#7 2021-10-25 21:03:59

seth
Member
Registered: 2012-09-03
Posts: 51,684

Re: Loud pops when headphones are connected

Sanity check: do you have another set of HP (I assume they're BT connected)?

Offline

#8 2021-10-26 06:25:37

860lacov
Member
Registered: 2020-05-02
Posts: 452

Re: Loud pops when headphones are connected

I use two pairs of wired headphones (different brands, models and types)

Offline

#9 2021-10-27 06:25:26

seth
Member
Registered: 2012-09-03
Posts: 51,684

Offline

#10 2021-10-27 07:11:55

apaz
Member
Registered: 2018-07-23
Posts: 117

Re: Loud pops when headphones are connected

Forgive me for saying things that are probably not relevant.
I used to have some crackle and pops (but rarely!). However by way of experimentation I tried replacing pipewire-media-session with wireplumber (just a "pacman -S wireplumber" and the replacement is automatic) and I no longer have problems with headphones.

Offline

#11 2021-10-27 12:41:23

slayerking
Member
Registered: 2021-03-02
Posts: 4

Re: Loud pops when headphones are connected

860lacov wrote:

That didn't help but...
There was an update on 24.10.2021

There is something different.
When I start a song on YouTube, when I press the play button, there is a pop. When I pause the song, after about 3 seconds there is another pop.
So it seems that it actually can be a DAC thing.
The good side is that when I don't listen anything there are no pops in silence smile

Is it possible that there will be some kind of software fix, or can it be hardware related? Can I do something to check it ?

I'm getting this on youtube and twitch using firefox. It seems to be one around the start of video then every 9 or 10 seconds. It only started the last few days. If I use chrome it doesn't seem to happen, But if I use firefox it always happens and if I press the compressor in twitch ffz settings it stops in firefox on twitch but still does it for all other videos.

Offline

#12 2021-12-22 21:45:48

860lacov
Member
Registered: 2020-05-02
Posts: 452

Re: Loud pops when headphones are connected

slayerking wrote:
860lacov wrote:

That didn't help but...
There was an update on 24.10.2021

There is something different.
When I start a song on YouTube, when I press the play button, there is a pop. When I pause the song, after about 3 seconds there is another pop.
So it seems that it actually can be a DAC thing.
The good side is that when I don't listen anything there are no pops in silence smile

Is it possible that there will be some kind of software fix, or can it be hardware related? Can I do something to check it ?

I'm getting this on youtube and twitch using firefox. It seems to be one around the start of video then every 9 or 10 seconds. It only started the last few days. If I use chrome it doesn't seem to happen, But if I use firefox it always happens and if I press the compressor in twitch ffz settings it stops in firefox on twitch but still does it for all other videos.

In my situation, its little different.
When I play something on YT in Firefox then the sound is clean. When I pause the video then cracks and pops start. It doesn't need to be Firefox.
When I connect headphones on "empty" desktop and I don't play anything with sound, then I have got this problem.

Offline

#13 2021-12-28 23:16:30

860lacov
Member
Registered: 2020-05-02
Posts: 452

Re: Loud pops when headphones are connected

V1del wrote:

Try disabling snd_hda_intel power save via e.g. /etc/modprobe.d/disablePowerSave.conf

options snd_hda_intel power_save=0

(if you use TLP or so they might have their own config for this you'd have to adjust) and rebooting. Also make sure you actually push the jack in properly this can also happen if it's only like half connected or so.

This didn't work
I created disablePowerSave.conf but after restart I have:
power_save          = "1"

p.s.
Currently, I'm testing mys system without tlp

Last edited by 860lacov (2021-12-28 23:47:37)

Offline

#14 2021-12-29 07:31:17

seth
Member
Registered: 2012-09-03
Posts: 51,684

Re: Loud pops when headphones are connected

Pass

snd_hda_intel.power_save=0

to the kernel commandline, https://wiki.archlinux.org/title/Kernel_parameters

Offline

#15 2021-12-29 09:25:41

860lacov
Member
Registered: 2020-05-02
Posts: 452

Re: Loud pops when headphones are connected

seth wrote:

Pass

snd_hda_intel.power_save=0

to the kernel commandline, https://wiki.archlinux.org/title/Kernel_parameters

Thank you.
Something interesting happened.

Before adding parameter, I did a test with TLP
I disabled power save in TLP, and then I disabled TLP.

After disabling TLP power saving option stayed disabled.


But it didn't help with pops and crackling are still there.

To sum up.

When I start something with sound, there is a pop sound in headphones (headphones are tested)
When I stop/pause the movie/music after a few seconds there is another pop, and popping is continuous (between pops timer interval is random)

I tried to modify piperwire.conf and pipewire-alsa.conf.  (mostly sample rates)
power_saving kernel parameter didn't change anything.
I booted into windows. It seems that It is ok there. Maybe sometimes a little pop but barely hearable.

Offline

#16 2022-02-06 13:46:40

860lacov
Member
Registered: 2020-05-02
Posts: 452

Re: Loud pops when headphones are connected

Another update.

Today I noticed something new.

I use dual boot with Windows 10.

After rebooting into Windows and back to Arch the pops and click stopped. I checked this twice and it seems that worked both times.
But.
When I shut down my laptop start it up again directly into Arch the pops and clicks are still there.

Just to be sure, I checked with external USB card, and it is working fine.

Offline

Board footer

Powered by FluxBB