Project

General

Profile

No audio with alsa, Parabola x64 systemd VM

masochism-os - 12 months ago -

This is in a KVM VM. I have the same OS (also systemd) installed bare metal on another computer, and alsa seems to work. Both systems are up-to-date, both have the same alsa packages installed. However, the KVM alsamixer shows only Master and PCM channels (the baremetal system seems to have the usual channels, including Speaker, Headphones, Mic, etc.) Audio on the host system has always worked fine.

I had audio working with pulseaudio, but I'd rather not use it; it would randomly stop producing audio until I rebooted the VM. So I deleted everything related to pulseaudio (except libpulse, which is a requirement of a couple of media players).

I have the sliders from alsamixer maxed out and unmuted. There's no audio from any application. Speaker-test shows textual output and no errors, but gives no sound. I have just one sound card. I've tried having first alsa-state.service and then alsa-restore.service running (not at the same time). I don't have any custom audio configuration.

I've had speaker-test give output twice so far: once, after creating an .asoundrc in my home folder, running speaker-test, then deleting the .asoundrc (speaker-test produced audio after the deletion), the second time, after reinstalling every alsa package I had installed (which I found via pacman -Ss alsa | grep installed). As soon as I ran speaker-test again, seconds after these 2 scenarios, there was no audio.

I don't understand what pipewire is, but I did try installing pipewire-alsa. Still no audio.