On one of my systems (Rocky 8.7, running on bare iron), pulseaudio seems to be starting as a system daemon, since pacmd complains, “No PulseAudio daemon running, or not running as a session daemon.” There is a pulseaudio process running, (/usr/bin/oulseaudio --daemonize=no --log-target=journal) though apparently not as a systemd service, as there is no service by that name. In order to make sound work, I have to set it up from the Sound GUI each time I log in. On a Rocky 8.7 VM, I don’t have these problems.
I suspect that the bare iron machine’s problem stem from the motherboard’s built-in sound (Alder Lake-S) not being supported by the kernel, so I have to use a separate sound card. What file do I need to edit to set up the sound configuration?