Here is the output of journalctl -u systemd-udevd -b -o cat --grep alsa
after logging.
Reading rules file: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-persistent-alsa.rules
Reading rules file: /nix/store/77f0hgb1wsnkd2gbv1xqc8x99ghb4v4b-udev-rules/90-alsa-restore.rules
Reading rules file: /nix/store/77f0hgb1wsnkd2gbv1xqc8x99ghb4v4b-udev-rules/90-pipewire-alsa.rules
controlC1: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-persistent-alsa.rules:11 Importing properties from results of builtin command 'path_id'
controlC1: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-persistent-alsa.rules:12 Added SYMLINK 'snd/by-path/pci-0000:30:00.1'
controlC1: /nix/store/77f0hgb1wsnkd2gbv1xqc8x99ghb4v4b-udev-rules/90-alsa-restore.rules:5 RUN '/nix/store/1g4skp69k0k3av0qrykz4dv22bl4jxzx-alsa-utils-1.2.10/sbin/alsactl restore $attr{device/number}'
controlC1: Running command "/nix/store/1g4skp69k0k3av0qrykz4dv22bl4jxzx-alsa-utils-1.2.10/sbin/alsactl restore 1"
controlC1: Starting '/nix/store/1g4skp69k0k3av0qrykz4dv22bl4jxzx-alsa-utils-1.2.10/sbin/alsactl restore 1'
event12: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-evdev.rules:25 Importing properties from results of builtin command 'hwdb 'evdev:name:HD-Audio Generic HDMI/DP,pcm=3:phys:ALSA:ev:21:dmi:bvnAmericanMegatrendsInternational,LLC.:bvr1.C2:bd05/13/2022:br5.17:svnMicro-StarInternationalCo.,Ltd.:pnMS-7C94:pvr1.0:rv>
event12: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-evdev.rules:25 Failed to run builtin 'hwdb 'evdev:name:HD-Audio Generic HDMI/DP,pcm=3:phys:ALSA:ev:21:dmi:bvnAmericanMegatrendsInternational,LLC.:bvr1.C2:bd05/13/2022:br5.17:svnMicro-StarInternationalCo.,Ltd.:pnMS-7C94:pvr1.0:rvnMicro-StarInternationalCo.,Ltd>
event14: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-evdev.rules:25 Importing properties from results of builtin command 'hwdb 'evdev:name:HD-Audio Generic HDMI/DP,pcm=8:phys:ALSA:ev:21:dmi:bvnAmericanMegatrendsInternational,LLC.:bvr1.C2:bd05/13/2022:br5.17:svnMicro-StarInternationalCo.,Ltd.:pnMS-7C94:pvr1.0:rv>
event14: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-evdev.rules:25 Failed to run builtin 'hwdb 'evdev:name:HD-Audio Generic HDMI/DP,pcm=8:phys:ALSA:ev:21:dmi:bvnAmericanMegatrendsInternational,LLC.:bvr1.C2:bd05/13/2022:br5.17:svnMicro-StarInternationalCo.,Ltd.:pnMS-7C94:pvr1.0:rvnMicro-StarInternationalCo.,Ltd>
event13: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-evdev.rules:25 Importing properties from results of builtin command 'hwdb 'evdev:name:HD-Audio Generic HDMI/DP,pcm=7:phys:ALSA:ev:21:dmi:bvnAmericanMegatrendsInternational,LLC.:bvr1.C2:bd05/13/2022:br5.17:svnMicro-StarInternationalCo.,Ltd.:pnMS-7C94:pvr1.0:rv>
event15: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-evdev.rules:25 Importing properties from results of builtin command 'hwdb 'evdev:name:HD-Audio Generic HDMI/DP,pcm=9:phys:ALSA:ev:21:dmi:bvnAmericanMegatrendsInternational,LLC.:bvr1.C2:bd05/13/2022:br5.17:svnMicro-StarInternationalCo.,Ltd.:pnMS-7C94:pvr1.0:rv>
event13: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-evdev.rules:25 Failed to run builtin 'hwdb 'evdev:name:HD-Audio Generic HDMI/DP,pcm=7:phys:ALSA:ev:21:dmi:bvnAmericanMegatrendsInternational,LLC.:bvr1.C2:bd05/13/2022:br5.17:svnMicro-StarInternationalCo.,Ltd.:pnMS-7C94:pvr1.0:rvnMicro-StarInternationalCo.,Ltd>
event15: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-evdev.rules:25 Failed to run builtin 'hwdb 'evdev:name:HD-Audio Generic HDMI/DP,pcm=9:phys:ALSA:ev:21:dmi:bvnAmericanMegatrendsInternational,LLC.:bvr1.C2:bd05/13/2022:br5.17:svnMicro-StarInternationalCo.,Ltd.:pnMS-7C94:pvr1.0:rvnMicro-StarInternationalCo.,Ltd>
event16: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-evdev.rules:25 Importing properties from results of builtin command 'hwdb 'evdev:name:HD-Audio Generic HDMI/DP,pcm=10:phys:ALSA:ev:21:dmi:bvnAmericanMegatrendsInternational,LLC.:bvr1.C2:bd05/13/2022:br5.17:svnMicro-StarInternationalCo.,Ltd.:pnMS-7C94:pvr1.0:r>
event16: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-evdev.rules:25 Failed to run builtin 'hwdb 'evdev:name:HD-Audio Generic HDMI/DP,pcm=10:phys:ALSA:ev:21:dmi:bvnAmericanMegatrendsInternational,LLC.:bvr1.C2:bd05/13/2022:br5.17:svnMicro-StarInternationalCo.,Ltd.:pnMS-7C94:pvr1.0:rvnMicro-StarInternationalCo.,Lt>
event17: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-evdev.rules:25 Importing properties from results of builtin command 'hwdb 'evdev:name:HD-Audio Generic HDMI/DP,pcm=11:phys:ALSA:ev:21:dmi:bvnAmericanMegatrendsInternational,LLC.:bvr1.C2:bd05/13/2022:br5.17:svnMicro-StarInternationalCo.,Ltd.:pnMS-7C94:pvr1.0:r>
event17: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-evdev.rules:25 Failed to run builtin 'hwdb 'evdev:name:HD-Audio Generic HDMI/DP,pcm=11:phys:ALSA:ev:21:dmi:bvnAmericanMegatrendsInternational,LLC.:bvr1.C2:bd05/13/2022:br5.17:svnMicro-StarInternationalCo.,Ltd.:pnMS-7C94:pvr1.0:rvnMicro-StarInternationalCo.,Lt>
controlC1: Process '/nix/store/1g4skp69k0k3av0qrykz4dv22bl4jxzx-alsa-utils-1.2.10/sbin/alsactl restore 1' succeeded.
event15: '/nix/store/cghsv7bd73x4l2f0lkmmlk6cmzjs8w5y-libinput-1.25.0/lib/udev/libinput-device-group /sys/devices/pci0000:00/0000:00:08.1/0000:30:00.1/sound/card1/input24/event15'(out) 'LIBINPUT_DEVICE_GROUP=0/0/0:ALSA'
event17: '/nix/store/cghsv7bd73x4l2f0lkmmlk6cmzjs8w5y-libinput-1.25.0/lib/udev/libinput-device-group /sys/devices/pci0000:00/0000:00:08.1/0000:30:00.1/sound/card1/input26/event17'(out) 'LIBINPUT_DEVICE_GROUP=0/0/0:ALSA'
event14: '/nix/store/cghsv7bd73x4l2f0lkmmlk6cmzjs8w5y-libinput-1.25.0/lib/udev/libinput-device-group /sys/devices/pci0000:00/0000:00:08.1/0000:30:00.1/sound/card1/input23/event14'(out) 'LIBINPUT_DEVICE_GROUP=0/0/0:ALSA'
event12: '/nix/store/cghsv7bd73x4l2f0lkmmlk6cmzjs8w5y-libinput-1.25.0/lib/udev/libinput-device-group /sys/devices/pci0000:00/0000:00:08.1/0000:30:00.1/sound/card1/input21/event12'(out) 'LIBINPUT_DEVICE_GROUP=0/0/0:ALSA'
event13: '/nix/store/cghsv7bd73x4l2f0lkmmlk6cmzjs8w5y-libinput-1.25.0/lib/udev/libinput-device-group /sys/devices/pci0000:00/0000:00:08.1/0000:30:00.1/sound/card1/input22/event13'(out) 'LIBINPUT_DEVICE_GROUP=0/0/0:ALSA'
event16: '/nix/store/cghsv7bd73x4l2f0lkmmlk6cmzjs8w5y-libinput-1.25.0/lib/udev/libinput-device-group /sys/devices/pci0000:00/0000:00:08.1/0000:30:00.1/sound/card1/input25/event16'(out) 'LIBINPUT_DEVICE_GROUP=0/0/0:ALSA'
controlC0: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-persistent-alsa.rules:7 Importing properties from results of builtin command 'usb_id'
controlC0: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-persistent-alsa.rules:8 Added SYMLINK 'snd/by-id/usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00'
controlC0: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-persistent-alsa.rules:11 Importing properties from results of builtin command 'path_id'
controlC2: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-persistent-alsa.rules:7 Importing properties from results of builtin command 'usb_id'
controlC3: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-persistent-alsa.rules:7 Importing properties from results of builtin command 'usb_id'
controlC0: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-persistent-alsa.rules:12 Added SYMLINK 'snd/by-path/pci-0000:30:00.4-usb-0:1.1.1:1.0'
controlC0: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-persistent-alsa.rules:13 Added SYMLINK 'snd/by-path/pci-0000:30:00.4-usbv2-0:1.1.1:1.0'
controlC2: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-persistent-alsa.rules:8 Added SYMLINK 'snd/by-id/usb-046d_081b_65801AE0-02'
controlC2: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-persistent-alsa.rules:11 Importing properties from results of builtin command 'path_id'
controlC0: /nix/store/77f0hgb1wsnkd2gbv1xqc8x99ghb4v4b-udev-rules/90-alsa-restore.rules:5 RUN '/nix/store/1g4skp69k0k3av0qrykz4dv22bl4jxzx-alsa-utils-1.2.10/sbin/alsactl restore $attr{device/number}'
controlC3: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-persistent-alsa.rules:8 Added SYMLINK 'snd/by-id/usb-SXW_Tech_SXW_CTUAD192_PRM-A_SXW_CTUAD-00'
controlC3: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-persistent-alsa.rules:11 Importing properties from results of builtin command 'path_id'
controlC2: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-persistent-alsa.rules:12 Added SYMLINK 'snd/by-path/pci-0000:30:00.4-usb-0:1.1.4.3:1.2'
controlC2: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-persistent-alsa.rules:13 Added SYMLINK 'snd/by-path/pci-0000:30:00.4-usbv2-0:1.1.4.3:1.2'
controlC0: Running command "/nix/store/1g4skp69k0k3av0qrykz4dv22bl4jxzx-alsa-utils-1.2.10/sbin/alsactl restore 0"
controlC0: Starting '/nix/store/1g4skp69k0k3av0qrykz4dv22bl4jxzx-alsa-utils-1.2.10/sbin/alsactl restore 0'
controlC3: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-persistent-alsa.rules:12 Added SYMLINK 'snd/by-path/pci-0000:30:00.4-usb-0:1.1.4.4:1.0'
controlC3: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-persistent-alsa.rules:13 Added SYMLINK 'snd/by-path/pci-0000:30:00.4-usbv2-0:1.1.4.4:1.0'
controlC2: /nix/store/77f0hgb1wsnkd2gbv1xqc8x99ghb4v4b-udev-rules/90-alsa-restore.rules:5 RUN '/nix/store/1g4skp69k0k3av0qrykz4dv22bl4jxzx-alsa-utils-1.2.10/sbin/alsactl restore $attr{device/number}'
controlC2: Running command "/nix/store/1g4skp69k0k3av0qrykz4dv22bl4jxzx-alsa-utils-1.2.10/sbin/alsactl restore 2"
controlC2: Starting '/nix/store/1g4skp69k0k3av0qrykz4dv22bl4jxzx-alsa-utils-1.2.10/sbin/alsactl restore 2'
controlC3: /nix/store/77f0hgb1wsnkd2gbv1xqc8x99ghb4v4b-udev-rules/90-alsa-restore.rules:5 RUN '/nix/store/1g4skp69k0k3av0qrykz4dv22bl4jxzx-alsa-utils-1.2.10/sbin/alsactl restore $attr{device/number}'
controlC3: Running command "/nix/store/1g4skp69k0k3av0qrykz4dv22bl4jxzx-alsa-utils-1.2.10/sbin/alsactl restore 3"
controlC3: Starting '/nix/store/1g4skp69k0k3av0qrykz4dv22bl4jxzx-alsa-utils-1.2.10/sbin/alsactl restore 3'
controlC2: Process '/nix/store/1g4skp69k0k3av0qrykz4dv22bl4jxzx-alsa-utils-1.2.10/sbin/alsactl restore 2' succeeded.
controlC0: Process '/nix/store/1g4skp69k0k3av0qrykz4dv22bl4jxzx-alsa-utils-1.2.10/sbin/alsactl restore 0' succeeded.
controlC3: Process '/nix/store/1g4skp69k0k3av0qrykz4dv22bl4jxzx-alsa-utils-1.2.10/sbin/alsactl restore 3' succeeded.
Reading rules file: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-persistent-alsa.rules
Reading rules file: /nix/store/77f0hgb1wsnkd2gbv1xqc8x99ghb4v4b-udev-rules/90-alsa-restore.rules
Reading rules file: /nix/store/77f0hgb1wsnkd2gbv1xqc8x99ghb4v4b-udev-rules/90-pipewire-alsa.rules
Reading rules file: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-persistent-alsa.rules
Reading rules file: /nix/store/77f0hgb1wsnkd2gbv1xqc8x99ghb4v4b-udev-rules/90-alsa-restore.rules
Reading rules file: /nix/store/77f0hgb1wsnkd2gbv1xqc8x99ghb4v4b-udev-rules/90-pipewire-alsa.rules
Reading rules file: /nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/udev/rules.d/60-persistent-alsa.rules
Reading rules file: /nix/store/77f0hgb1wsnkd2gbv1xqc8x99ghb4v4b-udev-rules/90-alsa-restore.rules
Reading rules file: /nix/store/77f0hgb1wsnkd2gbv1xqc8x99ghb4v4b-udev-rules/90-pipewire-alsa.rules
Note that I added these two lines to ~/.profile
to set my volume:
amixer -c "PRMA" set PCM,0 100%
amixer -c "PRMA" set PCM,1 100%