Quote for the day

I’m reading this and I liked this:

The obvious skill I learned was how to write tests using a fancy testing framework, but the meta-thing I learned which has been even more useful is the fact that writing a test-case generator and a checker is often much more productive than the manual test-case writing that passes for automated testing in most places.

Also good:

It’s not that these books aren’t useful, it’s that almost all of them are written to make sense without any particular background beyond what any random programmer might have, and you can only get so much out of reading your 50th book targeted at random programmers.

Ethernet on ‘trick’

Note to self: I’ve disabled my second NIC enp7s0 for now, I can enable it when its cable arrives.

-------------------
Mon Mar 28 16:34:31 [bash:5.0.17 jobs:0 error:0 time:1505]
root@trick:/home/jj5
# cat /etc/netplan/00-installer-config.yaml
# This is the network config written by 'subiquity'
network:
  ethernets:
    enp10s0:
      addresses:
      - 10.3.2.5/16
      gateway4: 10.3.1.1
      nameservers:
        addresses:
        - 10.1.1.113
        search: []
    #enp7s0:
    #  addresses:
    #  - 10.1.2.5/16
    #  nameservers:
    #    addresses: []
    #    search: []
  version: 2

-------------------

List of PLAYBACK Hardware Devices

Note to self:

-------------------
Thu Mar 24 23:58:51 [bash:5.0.17 jobs:0 error:0 time:0]
jj5@charm:/home/jj5
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: Audio [USB Audio], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Audio [USB Audio], device 1: USB Audio [USB Audio #1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Audio [USB Audio], device 2: USB Audio [USB Audio #2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Audio [USB Audio], device 3: USB Audio [USB Audio #3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
-------------------

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.