[Solved] Strange PC audio noise problem

Hmm. I just restarted it, and it’s still doing it.

Interesting. That’s different then. This fixes it for me every time.

Oh it is fine it was the YT video I clicked on… However I was having that problem. Funny that I just so happens to click a video with bad sound lol.

Anyway. Does the sound kinda lag for you. Like you click pause and the sound keep playing and then fade out? I’ll listen to your clip again, I don’t remember if it did that.

Yes! exactly!

I’m certain we’re have a very similar problem if not the same, but now I need it to happen again because I don’t know if my USB adapter fixed it or if it was the video I was playing.

1 Like

Yeah, I have the same problem. I always need to wait for the error to reproduce.

1 Like

I’m sure it’ll happen when I’m not expecting it and it causes an inconvenience for me, so I just need to set that scenario up and blam I’m sure I’ll have it. lol

1 Like

(also @TeckMonster) Okay, I was able to replicate the problem also with the Toslink cable. The only option that is left now is software. I know @Gnuuser suggested this earlier but I wanted to 100% be sure it is not a hardware problem. In my mind it is no good if I can’t replicate the problem afterwards and not be sure what exactly fixed it. (I hope this makes it easier to solve this problem in the future)

So, software is next. Thanks everyone for helping with troubleshooting.

Edit: okay, going to pulse-audio version 11 did not get get rid of the problem

3 Likes

Best solution for any audio problem on linux in my experience is getting a USB-audio compliant DAC. Whatever I install, I have working audio. Especially onboard audio is terrible in general. I never had a reliably working onboard audio solution … ever.

Fix it in hardware by not using onboard and never worry about audio again.

1 Like

Thank’s for the advice. I never actually had a system audio problem in Linux before.

Investigation so far points to a software issue (possibly with pulse-audio 12). So this is not a problem an USB DAC would solve.

Just as a sanity check for my testing: Does pulseaudio -k solve the problem (temporarily) for you?

1 Like

My sound was sounding like that for awhile but It turned out to be pulseaudio doing it. I wasn’t very frequent until I started using discord all the time, load discord and it would start doing it most of the time. Get discord open without it doing that then using youtube would make it do that.

1 Like

Interesting, do you have a permanent solution? At this point, I know it is pulseaudio and I think I know how to solve it but I want to find what exactly is causing it, so this doesn’t happen for anyone in the future.

Had to do with adding tsched=0 some where in the pulseaudio’s default.pa. I’ll look at what I did.

1 Like

Thanks! I’d appreciate that!

Edit:
I’m going to drop some links here for reference:

That first one was pretty much what I did and what I came up with what the problem was in the first place. I’m on manjaro so not sure on other distros. But under /etc/pulse/default.pa I added tsched=0 to…

load-module module-udev-detect
so it was
load-module module-udev-detect tsched=0

Haven’t had the problem once since then.
What the whole section looked like when I was done.

### Automatically load driver modules depending on the hardware available
.ifexists module-udev-detect.so
load-module module-udev-detect tsched=0
.else
### Use the static hardware detection module (for systems that lack udev suppor$
load-module module-detect
.endif

Was having the problem every once in awhile so I would just restart when it happened but I started using Discord all the time so I had to actually take the time to fix it.

1 Like

Thanks!

I already changed that line and will test if that solves it. Interestingly pulseaudio --cleanup-shm seems to also solve that problem but I have to verify that. It definitely has something to do with audio sync/timing …

3 Likes

I haven’t been home hardly at all this last week so I haven’t had to deal with the problem again yet, but I’ll put some music on and if it does it I’ll give it a shot.

Yup. That fixed it right up.

Before I did that I tried my USB audio adapter again, but for some reason Linux wasn’t picking it up this time.

Thanks!

It looks like there are two (permanent) solutions to the problem, the first one from @ sycpuppy:

the second one: run

pulseaudio --cleanup-shm
pulseaudio -k

however, this probably is not a long term solution (from reading what the command does)

I will keep testing and edit the thread in a week or so, when I have confirmed the problem is permanently solved.


Was it listed with the available audio devices or did it not get picked up at all?