To set up sound on Void Linux, you usually need to install and configure ALSA, PulseAudio, or PipeWire, depending on your preferences. Hereβs a full step-by-step guide to get basic and advanced audio working:
β 1. Check Your Audio Hardware#
lspci | grep -i audioOr, for USB devices:
lsusbβ 2. Install Audio Packages#
Void Linux uses runit, so we’ll avoid systemd-specific commands.
πΉ For ALSA (basic sound):#
sudo xbps-install -S alsa-utils alsa-libYou can test ALSA:
aplay /usr/share/sounds/alsa/Front_Center.wavπΉ For PulseAudio (easier desktop audio control):#
sudo xbps-install -S pulseaudio pulsemixer pavucontrolEnable PulseAudio at login by adding this to ~/.xinitrc or your desktop session autostart:
pulseaudio --startπΉ For PipeWire (modern alternative to PulseAudio):#
sudo xbps-install -S pipewire wireplumber pipewire-pulse pavucontrolAlso, add to your autostart:
pipewire &
wireplumber &Check PipeWire status:
pw-cli ls Nodeβ
3. Add Your User to the audio Group#
sudo usermod -aG audio $USERLog out and log back in.
β
4. Unmute and Set Volumes with alsamixer#
Run:
alsamixer- Press F6 to select the sound card
- Use arrow keys to raise volumes
- Press
Mto unmute anything muted
To save the settings:
sudo alsactl storeβ 5. Test Audio Output#
Play a test sound:
speaker-test -c2 -t wavOr use:
aplay somefile.wav
mpv somefile.mp3β 6. Check Permissions and Devices#
Make sure your user can access /dev/snd/*:
ls -l /dev/sndYou should see audio as the group.
β 7. Troubleshooting Tips#
Use
pavucontrolto switch output devices.Check if HDMI or headphone output is selected.
If Firefox or another app has no sound, try:
pulseaudio -k pulseaudio --start
π§ Optional: Autostart in runit#
Create runit services for PipeWire or PulseAudio if you want them system-wide:
sudo ln -s /etc/sv/pipewire /var/service/Accessing the Sound Settings Via GUI#
pavucontrol