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.

Snap-confine has elevated permissions

I tried to run `chromium` on my Kubuntu 20.04.3 LTS workstation and got the following error:

Snap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks

I found this and this worked for me:

systemctl enable --now apparmor.service    
systemctl enable --now snapd.apparmor.service

Checking ashift on existing pools

Today I found: Checking ashift on existing pools. In summary:

# zpool get all | grep ashift
# zpool get all | less
# zdb -C | grep ashift
# zdb -C | less
# zdb -U /etc/zfs/zpool.cache | less

Per ZFS 101—Understanding ZFS storage and performance you *really* want to make sure your ashift value is aligned with your disk’s sector size. ashift=9 for 512; ashift=12 for 4096; I’ve heard some SSDs can be 8K, but I haven’t been able to confirm for my own disks.