Stuttering audio on Ubuntu on Asus ROG Strix Z690-F Motherboard

My new computer ‘charm‘ wasn’t playing audio, there was just some incomprehensible and quiet static coming out of the speakers (I was testing with this). I ran this search and found this and ran this:

# apt install libavcodec-dev

Then I edited /etc/modprobe.d/alsa-base.conf and added:

# 2022-03-24 jj5 - SEE: https://askubuntu.com/a/1059492
options snd-hda-intel position_fix=1

And I edited /etc/pulse/default.pa and changed:

# 2022-03-24 jj5 - NEW:
load-module module-udev-detect tsched=1
# 2022-03-24 jj5 - OLD:
#load-module module-udev-detect

And I edited /etc/pulse/daemon.conf and added this at the end:

; 2022-03-24 jj5 - SEE: https://ubuntuforums.org/showthread.php?t=766860&p=4816308#post4816308
default-sample-rate = 48000
default-fragments = 8
default-fragment-size-msec = 10

I also read this and ran this:

# apt install inxi
# inxi -SMA
# apt-get install --reinstall alsa-base pulseaudio
$ mv ~/.config/pulse ~/.config/pulse.bak

Then after a reboot or two (and enabling USB Audio in BIOS) it started working! Probably didn’t need most of that, but I’m happy to have a solution.

Disabling sound in Debian KDE

I’m having a problem whereby my KDE session is “locking up” periodically for 5 or 10 minutes at a time. I checked /var/log/syslog and dmesg and it *seems* as though the high-priority audio threads are staving other threads, so I figure I’ll try to disable sound and see if my system continues to lock up. To disable sound I used:

root@mercy:/home/jj5# alsa force-unload
Unloading ALSA sound driver modules: snd-ens1371 snd-ac97-codec snd-seq-midi snd-seq-midi-event snd-rawmidi snd-pcm snd-page-alloc snd-seq snd-seq-device snd-timer (failed: modules still loaded: snd-ens1371 snd-ac97-codec snd-rawmidi snd-pcm snd-page-alloc snd-seq-device snd-timer).