Skip to main content

Sound Setup on Void Linux

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 audio

Or, 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-lib

You can test ALSA:

aplay /usr/share/sounds/alsa/Front_Center.wav

πŸ”Ή For PulseAudio (easier desktop audio control):
#

sudo xbps-install -S pulseaudio pulsemixer pavucontrol

Enable 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 pavucontrol

Also, 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 $USER

Log 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 M to unmute anything muted

To save the settings:

sudo alsactl store

βœ… 5. Test Audio Output
#

Play a test sound:

speaker-test -c2 -t wav

Or use:

aplay somefile.wav
mpv somefile.mp3

βœ… 6. Check Permissions and Devices
#

Make sure your user can access /dev/snd/*:

ls -l /dev/snd

You should see audio as the group.


βœ… 7. Troubleshooting Tips
#

  • Use pavucontrol to 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
Youcef
Author
Youcef
My name is youcef and i’m linux user who fool in love with linux , like free and open software .