#incessant audio crackling on (probably) all distros

1 messages · Page 1 of 1 (latest)

limber fjord
#

hello everyone! i need some help getting crackling to stop on linux. i've noticed that linux runs overwatch 2 better so i want to use it for gaming, especially since windows runs so slowly. however, i've been getting crackling/popping since i've started trying to do it. i am using the built in headphone jack on my laptop, bluetooth audio works fine but bluetooth itself works terribly so i don't want to use it.

things i've done:
(on pop os):
rebooted
restarted pipewire
changed pipewire quantum size, or sample rate. defaults to 256, 512. also tried 2048, 16384. problem is not as bad at higher sample rates but never goes away.
changed sample rate from 44100 to 48000 and 192000
changed headroom and period (made it worse + made the audio itself sound terrible)
tried different apps (spotify, firefox)
tried aplay to play audio directly through alsa
scarlett 2i2 over usb (100x worse)

swapped to kubuntu

(on kubuntu):
booted (issue was NOT SOLVED after a distro change on another drive)
uninstalled pipewire (masking all of pipewire pipewire-pulse pipewire-pulse.socket pipewire.socket wireplumber)
installed pulseaudio
pulseaudio -k and pulseaudio --start
disabling powersaving
enabling automute
setting high priority, nice level to -15, default and alternate sample rates to 48000, fragments to 8 and fragment size msec to 10
rebooting again
removing speech-dispatcher
sudo hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x67 and sudo hda-verb /dev/snd/hwC0D0 0x20 SET_PROC_COEF 0x3000
echo 0 > /sys/module/snd_hda_intel/parameters/power_save and echo N > /sys/module/snd_hda_intel/parameters/power_save_controller
scarlett 2i2 over usb (still 100x worse, but on pulseaudio this time)
rebooting into windows, running powercfg /H off, also resetting scarlett 2i2 settings through the windows driver. this fixed audio for about 3 minutes, once i unplugged the scarlett 2i2 it started doing it again.

i really need help getting this clicking to stop. thanks :)

limber fjord
#

important update. endeavour with xfce4 seems to not have this issue as badly.

limber fjord
#

another important update, linux mint doesn’t have this issue at all??? aside from the clicking when skipping in a video??

daring island
#

What version of alsa on mint

limber fjord
#

i’ll check that out when i get home

limber fjord
#

how do i find

#

aplay says 1.2.6 but alsa just shows the kernel version 5.15.0-91-generic

daring island
#

where are you seeing either of those

limber fjord
#

aplay --version and cat /proc/asound/version

#

respectively

daring island
#

look at the alsa package

limber fjord
#

alsa-base is 1.0.25+dfsg

#

is that right?

daring island
#

What about on the ones where it doesn't work

limber fjord
#

let me try ubuntu 24.04 right now. is alsa-base the right package to check?

daring island
#

Possibly, you want to look at the package version that contains the drivers for the particular DAC your headphone jack is using

limber fjord
#

alsa base on 24.04 is 1.0.25+dfsg

#

so it’s probably not alsa

limber fjord
daring island
#

it'll be listed under lsmod | grep snd, though that doesn't tell you the direct association

limber fjord
#

there’s a lot of snd_x here, would it be just regular snd?

daring island
#

no

limber fjord
#

it’s not doing it on ubuntu 24.04 now bruh i’m dying (now it is idk what happened that time)

limber fjord
daring island
#

Only if you have a single device on your computer capable of producing audio, up to and including HDMI

limber fjord
#

nah i’ve got a lot

#

there’s midi, hdmi, the dummy, and i think nvidia too but i dont see it

#

which do you need

#

or just the whole thing

opaque patio
#

@limber fjord might be broken scheduler

#

If you add tsched=0 to the line “load-module” in file /etc/pulse/default.pa see if that works/breaks it

#

If it continues to work, try to turn on scheduler, if that breaks it, you got your answer

#

but usually this behaviour happens when you turn off the scheduler

#

using interrupt mode may not be too ideal but its also not gonna break your neck in any way tbh

limber fjord
#

in the working setup or the broken

#

cause the working one seems to be the pulseaudio one

opaque patio
opaque patio
limber fjord
#

i haven’t really tested audio much on my second pc cause i wanted to fix it here first and that other computer just has less problems in general. so yeah all of this is my laptop

limber fjord
#

the tsched=0 goes in the load module after that if statement right?

opaque patio
opaque patio
#

Most people that have this issue seem to just switch to pulse

limber fjord
limber fjord
#

only distros that use pulse by default work

#

that’s what leads me to think it’s the kernel

#

all versions that use pulse by default work, all versions that use pulse by default have an older kernel

#

oops

opaque patio
#

With pulse we can fix this easily

limber fjord
#

i tried out endeavor after and then ubuntu 22.04 and 24.04

#

i’ll have to get rid of ubuntu and go back to kubuntu

opaque patio
limber fjord
opaque patio
#

It would be good to have the distro in use that you plan on using in the future

limber fjord
#

so i might have to swap to mint

#

i would really rather not use a old kernel tho

opaque patio
limber fjord
#

on pop os its a dependency for pop-desktop, but before i do that i should probably go back to kubuntu and reproduce the issue where replacing pw with pa still has the same issue

opaque patio
limber fjord
#

me when i install kubuntu and it stops doing it

limber fjord
# opaque patio Yeah. Replace pw with pa and toggle scheduling

the fact i had to reboot it again to get the clicking to happen again worries me that i just got super unlucky with mint and it doesn’t work either…

anyway, it is clicking now. how do i replace them? i assume mask the pw services somehow and just apt install pulseaudio?

#

doing that rn

#

run pulseaudio daemon directly after reinstalling, same issue

limber fjord
#

probably a kernel regression

#

a driver got broken

#

/etc/pulse/default.pa line 52 reads load-module module-udev-detect tsched=0

#

i think it’s snd_hda_intel since that’s the driver handling it

#

a ubuntu wiki page from 2017 (more like 2009) says to download alsa from realtek which is of course a dead link

#

idk if that’d help us but it’s worth mentioning

#

pulseaudio -vvv shows some interesting stuff

#

my question is why doesn’t pw-top show errors when there’s a buffer underrun in pw

#

it happens only when pausing tho

opaque patio
limber fjord
#

same

#

honestly i thought it was scheduling too

#

guess not

#

tsched 1 or 0 both crackling

#

but why would the console be spammed with underruns after the song pauses

opaque patio
limber fjord
#

uhh

#

kinda

#

cause apt won’t let me install it because of some conflict

opaque patio
#

Pulse should be installed

limber fjord
#

and i can’t uninstall pw because it’s required by pop-desktop

#

pulse? it is not

opaque patio
#

damn

limber fjord
#

yeahh

#

im ok with moving to kubuntu if i have to i guess, i would really rather not, but id have to fix the issue here first

opaque patio
#

Internet suggest to remove pipewire-(…), leaving base pipewire package in place

#

Then you should be able to install pulse

limber fjord
#

on pop

opaque patio
#

Yeah

limber fjord
#

alright

opaque patio
limber fjord
#

i think it’s a driver and/or the kernel though

limber fjord
opaque patio
#

XD

limber fjord
#

i think it would be funny to find a new bug in the kernel because my laptop is stupid

#

but it’d take forever to get that fixed

#

i don’t see what else it could possibly be though

#

if we install pulseaudio on a new kernel and it has the same issue as pipewire on a new kernel

#

and we install an old distro that comes with pulseaudio and there’s no problem

#

i guess i could reinstall mint again and see if it starts happening, then it wouldn’t be the kernel and it was just a coincidence

limber fjord
#

wait how about this

#

go to ubuntu 22.04

#

and just update the kernel repeatedly

limber fjord
#

that’s why i think it’s the kernel

opaque patio
#

If possible you could report this

#

Can i have the sound card model?

#

Then i can check if theres already a report about it

limber fjord
#

uuhhhh

#

on windows hwinfo
Audio Adapter: Intel Tiger Lake PCH-H - cAVS (Audio, Voice, Speech) [B1]
High Definition Audio Codec: RealTek ALC256

#

i think im gonna spend the next couple hours downloading ubuntu ISOs and testing each one, but yeah we should check for a report

opaque patio
#

checking rn

limber fjord
#

thank you

opaque patio
#

Seems like quite a few people have similar issue with this card

limber fjord
#

fr?

opaque patio
#

But most reports are actually from 2022

#

Ill do some further digging once im home

limber fjord
#

hm i googled it quick and it seems like a lot of reports are stuff just not working entirely

#
limber fjord
#

big plot twist here

#

im gonna reboot again and see if it was one of those weird moments where it works once, but i just tried ubuntu 23.04 which comes with pipewire both installed and in use and theres no clicking

#

this cements my claim that pipewire isn’t the issue

limber fjord
#

yeah now 24.04 isn’t doing it so it sounds like it just isn’t happening now

#

meaning the hour or two i just spent version hopping was for nothing

i booted into popos and now ubuntu will crackle again… i guess just had to wake it up

version list i guess

6.6 - guaranteed broken

5.15 - likely working, mint and 22.04 tested multiple times

limber fjord
#

oop

opaque patio
#

okay i checked but i didnt find anything

limber fjord
#

alr

#

hm

#

yeah i think its gonna have to be testing kernels

#

and since the issue doesnt even happen half the time unless im on pop where it always happens

limber fjord
#

i have to get this fixed windows explorer is taking literally 4 minutes to start copying a file then crashing mid transfer

#

i cannot deal with this anymore LOL

limber fjord
#

is it possible to install ubuntu 23.04 and only upgrade the packages but jot@the kernel

limber fjord
#

admittedly a little worried it’s not happening on 23.10.1 considering i could have sword it did before…

limber fjord
#

news

limber fjord
#

just tested 6.9.3 on ubuntu 23.04. crackling.

#

6.2 does not as far as i know

#

so i may very well find a kernel regression

limber fjord
#

but i downgraded to 6.2 on pop and it’s still doing it. how does that make any sense.

limber fjord
#

i genuinely don’t know what to do anymore