Opening certain sites leads to crackling on audio

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
exxonin
Level 2
Level 2
Posts: 91
Joined: Tue Aug 30, 2016 1:37 am

Opening certain sites leads to crackling on audio

Post by exxonin »

When I open certain sites, crackling on audio starts. I do have to close the browser and reopen it to solve the problem. Why is this?
Now it even happens on the linux mint site! I did close a tab on my browser where I was watching video, and now the crackling on my headphones has stopped!

So, I was watching video, no crackling, but opening certain sites on another tab at the same time might cause crackling.

gibbs1984
Level 5
Level 5
Posts: 802
Joined: Mon Oct 27, 2008 2:40 pm
Location: Hemel Hempstead, England

Re: Opening certain sites leads to crackling on audio

Post by gibbs1984 »

Wow, didn't think I'd see someone else with this issue, I have it too but I just thought it was my extremely old speakers playing up, will be getting some new ones soon but maybe it's not the speakers and this issue will persist with new speakers.

Sorry, don't know how to fix the issue apart from restarting the browser but hopefully someone will know.

Let's try to narrow it down.

I use Firefox when this happens.
Seems to happen either on Facebook or YouTube, might be other apps though.
Using Mint 19.1 Cinnamon 64bit.
Linux Mint 19.0 (Cinnamon) 64bit.

exxonin
Level 2
Level 2
Posts: 91
Joined: Tue Aug 30, 2016 1:37 am

Re: Opening certain sites leads to crackling on audio

Post by exxonin »

It is the combination of running video, and simultaneously opening certain sites on other tabs. This triggers the crackling on, when shutting down the video or closing the tab it is active on, the irritating tingling stops! I did try many headphones, but that is not it! If I unplug the headphones, the rustling is also present over the laptop speakers!

User avatar
MrEen
Level 17
Level 17
Posts: 7875
Joined: Mon Jun 12, 2017 8:39 pm

Re: Opening certain sites leads to crackling on audio

Post by MrEen »

Hi gibbs1984 and exxonin.

I have a somewhat usual fix for crackling audio but I am not certain it will help in your cases. This fix is normally for those with crackling audio at all times, but your cases are unique. It's entirely reversible so we should try it anyway.

In the terminal enter xed admin:///etc/pulse/default.pa (if using Mint 18.x or 17.x use gksudo xed /etc/pulse/default.pa instead.)

Find the line that says load-module module-udev-detect and change it to load-module module-udev-detect tsched=0

Save the file, then run pulseaudio -k in the terminal and test your sound.

Let me know if that stops the issue from happening.

exxonin
Level 2
Level 2
Posts: 91
Joined: Tue Aug 30, 2016 1:37 am

Re: Opening certain sites leads to crackling on audio

Post by exxonin »

Thus far MrEen your solution works fine! Thank you so much! :D

User avatar
MrEen
Level 17
Level 17
Posts: 7875
Joined: Mon Jun 12, 2017 8:39 pm

Re: Opening certain sites leads to crackling on audio

Post by MrEen »

You're quite welcome, exxonin.

gibbs1984
Level 5
Level 5
Posts: 802
Joined: Mon Oct 27, 2008 2:40 pm
Location: Hemel Hempstead, England

Re: Opening certain sites leads to crackling on audio

Post by gibbs1984 »

Thanks MrEen,

I've done what you've said, the crackling sound was only random (at least once a week though) so I'll keep this thread updated with whether it happens again or not within a few weeks.
Linux Mint 19.0 (Cinnamon) 64bit.

User avatar
MrEen
Level 17
Level 17
Posts: 7875
Joined: Mon Jun 12, 2017 8:39 pm

Re: Opening certain sites leads to crackling on audio

Post by MrEen »

Sound good, gibbs1984. Good luck. :)

gibbs1984
Level 5
Level 5
Posts: 802
Joined: Mon Oct 27, 2008 2:40 pm
Location: Hemel Hempstead, England

Re: Opening certain sites leads to crackling on audio

Post by gibbs1984 »

Been nearly 2 weeks now and I haven't had the crackling noise once since doing this fix.
Linux Mint 19.0 (Cinnamon) 64bit.

User avatar
MrEen
Level 17
Level 17
Posts: 7875
Joined: Mon Jun 12, 2017 8:39 pm

Re: Opening certain sites leads to crackling on audio

Post by MrEen »

That's great, gibbs1984!

So glad that fix worked for both of you. :D

Norbert
Level 1
Level 1
Posts: 5
Joined: Wed Jul 09, 2014 5:23 pm

Re: Opening certain sites leads to crackling on audio

Post by Norbert »

gibbs1984 wrote:
Sun Feb 17, 2019 7:13 am
Wow, didn't think I'd see someone else with this issue, [...]
Hm, I've actually had this problem with Linux (Mint) for years...
It's one of those things where I'm wondering why it still hasn't been fixed.
I'll try the fix/workaround mentioned in this thread, and I'll add it to my list of things to run after (re)installing the OS.

User avatar
MrEen
Level 17
Level 17
Posts: 7875
Joined: Mon Jun 12, 2017 8:39 pm

Re: Opening certain sites leads to crackling on audio

Post by MrEen »

Hi Norbert.

Some years ago pulseaudio switched from interrupt based scheduling to timer based scheduling. Some systems just don't work well with this newer setting, so that modification is necessary. I honestly don't know if computer age has anything to do with the likelihood of needing the modification.

Hope it resolves your issue as well. Good luck.

Post Reply

Return to “Newbie Questions”