No sound after update yesterday
Useful Programs
The program PulseAudio Volume Control is super helpful in figuring out which program is producing audio, where that audio is being routed, defaults for audio outputs, and volume levels for every source, input and output. It can be installed using the software center, or with this command:
sudo apt install pavucontrol
Useful Commands
rm -r ~/.config/pulse
This will remove the user configuration files for pulseaudio. If you hear a faint rhythmic clicking noise and are not getting speaker output (you can run the sound test from the sound settings menu) this may be the issue. The fix is to run:
killall pulseaudio; rm -r ~/.config/pulse/*
and then do a full shutdown / reboot of the computer.
sudo apt install --reinstall alsa-base alsa-utils pulseaudio linux-sound-base libasound2
This will reinstall many of the core audio packages.
pulseaudio -k
This will kill all pulseaudio instances.
sudo alsa force-reload
This reloads all of the sound driver modules.
pulseaudio --start
This starts pulseaudio after it’s been stopped. Pulseaudio will typically restart itself if killed, but this will manually start it if not.
lspci -v | grep -A6 Audio
This checks to see if the system is recognizing the audio hardware. This will be blank if the kernel hasn’t seen or initialized the audio hardware.
aplay -l