Getting ALSA to work after suspend / hibernate
Some soundcards does not work after the computer has been suspended or hibernated. Files in /etc/pm/sleep.d/ are read when the system is entering or leaving suspend mode. Create a file telling the system to restart alsa when the computer is being brought up from suspended mode to make the audio work again.
The command /sbin/alsa force-reload will kill all running programs using the sound driver so the driver itself is able to be restarted.
sudo nano /etc/pm/sleep.d/50alsa
case "$1" in
hibernate|suspend)
# Stopping is not required
;;
thaw|resume)
/sbin/alsa force-reload
;;
*) exit $NA
;;
esac
Make the newly created script to be executable with the following command:
sudo chmod +x /etc/pm/sleep.d/50alsa
Bookmarks